Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-12286

Milo client broken

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.21.0
    • 2.21.0
    • camel-milo
    • None
    • Unknown
    • Regression

    Description

      It looks to me as if the camel-milo client is broken in the most recent version of camel (2.21.x). Running a working example from camel 2.20.x (and 2.19.x) with Camel 2.21-SNAPSHOT results in:

      2018-02-22 11:56:45.248  INFO 30400 --- [           main] o.e.milo.opcua.sdk.client.OpcUaClient    : Eclipse Milo OPC UA Stack version: 0.2.1
      2018-02-22 11:56:45.248  INFO 30400 --- [           main] o.e.milo.opcua.sdk.client.OpcUaClient    : Eclipse Milo OPC UA Client SDK version: 0.2.1
      2018-02-22 11:56:45.407  INFO 30400 --- [           main] o.a.c.c.m.c.i.SubscriptionManager        : Failed to connect
      
      java.util.concurrent.ExecutionException: UaException: status=Bad_SessionClosed, message=The session was closed by the client.
          at java.util.concurrent.CompletableFuture.reportGet(CompletableFuture.java:357) ~[na:1.8.0_161]
          at java.util.concurrent.CompletableFuture.get(CompletableFuture.java:1895) ~[na:1.8.0_161]
          at org.apache.camel.component.milo.client.internal.SubscriptionManager.performConnect(SubscriptionManager.java:450) [camel-milo-2.21.0-SNAPSHOT.jar:2.21.0-SNAPSHOT]
          at org.apache.camel.component.milo.client.internal.SubscriptionManager.performAndEvalConnect(SubscriptionManager.java:375) [camel-milo-2.21.0-SNAPSHOT.jar:2.21.0-SNAPSHOT]
          at org.apache.camel.component.milo.client.internal.SubscriptionManager.connect(SubscriptionManager.java:370) [camel-milo-2.21.0-SNAPSHOT.jar:2.21.0-SNAPSHOT]
          at org.apache.camel.component.milo.client.internal.SubscriptionManager.<init>(SubscriptionManager.java:340) [camel-milo-2.21.0-SNAPSHOT.jar:2.21.0-SNAPSHOT]
          at org.apache.camel.component.milo.client.MiloClientConnection.init(MiloClientConnection.java:52) [camel-milo-2.21.0-SNAPSHOT.jar:2.21.0-SNAPSHOT]
          at org.apache.camel.component.milo.client.MiloClientConnection.checkInit(MiloClientConnection.java:69) [camel-milo-2.21.0-SNAPSHOT.jar:2.21.0-SNAPSHOT]
          at org.apache.camel.component.milo.client.MiloClientConnection.monitorValue(MiloClientConnection.java:86) [camel-milo-2.21.0-SNAPSHOT.jar:2.21.0-SNAPSHOT]
          at org.apache.camel.component.milo.client.MiloClientConsumer.doStart(MiloClientConsumer.java:57) [camel-milo-2.21.0-SNAPSHOT.jar:2.21.0-SNAPSHOT]
          at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61) [camel-core-2.20.2.jar:2.20.2]
          at org.apache.camel.impl.DefaultCamelContext.startService(DefaultCamelContext.java:3701) [camel-core-2.20.2.jar:2.20.2]
          at org.apache.camel.impl.DefaultCamelContext.doStartOrResumeRouteConsumers(DefaultCamelContext.java:4019) [camel-core-2.20.2.jar:2.20.2]
          at org.apache.camel.impl.DefaultCamelContext.doStartRouteConsumers(DefaultCamelContext.java:3954) [camel-core-2.20.2.jar:2.20.2]
          at org.apache.camel.impl.DefaultCamelContext.safelyStartRouteServices(DefaultCamelContext.java:3874) [camel-core-2.20.2.jar:2.20.2]
          at org.apache.camel.impl.DefaultCamelContext.doStartOrResumeRoutes(DefaultCamelContext.java:3638) [camel-core-2.20.2.jar:2.20.2]
          at org.apache.camel.impl.DefaultCamelContext.doStartCamel(DefaultCamelContext.java:3490) [camel-core-2.20.2.jar:2.20.2]
          at org.apache.camel.impl.DefaultCamelContext.access$000(DefaultCamelContext.java:208) [camel-core-2.20.2.jar:2.20.2]
          at org.apache.camel.impl.DefaultCamelContext$2.call(DefaultCamelContext.java:3249) [camel-core-2.20.2.jar:2.20.2]
          at org.apache.camel.impl.DefaultCamelContext$2.call(DefaultCamelContext.java:3245) [camel-core-2.20.2.jar:2.20.2]
          at org.apache.camel.impl.DefaultCamelContext.doWithDefinedClassLoader(DefaultCamelContext.java:3268) [camel-core-2.20.2.jar:2.20.2]
          at org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:3245) [camel-core-2.20.2.jar:2.20.2]
          at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61) [camel-core-2.20.2.jar:2.20.2]
          at org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:3168) [camel-core-2.20.2.jar:2.20.2]
          at org.apache.camel.spring.SpringCamelContext.start(SpringCamelContext.java:133) [camel-spring-2.20.2.jar:2.20.2]
          at org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:174) [camel-spring-2.20.2.jar:2.20.2]
          at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:172) [spring-context-4.3.12.RELEASE.jar:4.3.12.RELEASE]
          at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:165) [spring-context-4.3.12.RELEASE.jar:4.3.12.RELEASE]
          at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139) [spring-context-4.3.12.RELEASE.jar:4.3.12.RELEASE]
          at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:393) [spring-context-4.3.12.RELEASE.jar:4.3.12.RELEASE]
          at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:347) [spring-context-4.3.12.RELEASE.jar:4.3.12.RELEASE]
          at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:883) [spring-context-4.3.12.RELEASE.jar:4.3.12.RELEASE]
          at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:546) [spring-context-4.3.12.RELEASE.jar:4.3.12.RELEASE]
          at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:693) [spring-boot-1.5.8.RELEASE.jar:1.5.8.RELEASE]
          at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:360) [spring-boot-1.5.8.RELEASE.jar:1.5.8.RELEASE]
          at org.springframework.boot.SpringApplication.run(SpringApplication.java:303) [spring-boot-1.5.8.RELEASE.jar:1.5.8.RELEASE]
          at org.springframework.boot.SpringApplication.run(SpringApplication.java:1118) [spring-boot-1.5.8.RELEASE.jar:1.5.8.RELEASE]
          at org.springframework.boot.SpringApplication.run(SpringApplication.java:1107) [spring-boot-1.5.8.RELEASE.jar:1.5.8.RELEASE]
          at de.dentrassi.bcx18.opcua.Application.main(Application.java:19) [classes/:na]
      Caused by: org.eclipse.milo.opcua.stack.core.UaException: status=Bad_SessionClosed, description=The session was closed by the client.
          at org.eclipse.milo.opcua.stack.core.util.FutureUtils.failedUaFuture(FutureUtils.java:100) ~[stack-core-0.2.1.jar:0.2.1]
          at org.eclipse.milo.opcua.stack.core.util.FutureUtils.failedUaFuture(FutureUtils.java:88) ~[stack-core-0.2.1.jar:0.2.1]
          at org.eclipse.milo.opcua.sdk.client.session.states.Inactive.<init>(Inactive.java:28) ~[sdk-client-0.2.1.jar:0.2.1]
          at org.eclipse.milo.opcua.sdk.client.session.SessionFsm.<init>(SessionFsm.java:69) ~[sdk-client-0.2.1.jar:0.2.1]
          at org.eclipse.milo.opcua.sdk.client.OpcUaClient.<init>(OpcUaClient.java:159) ~[sdk-client-0.2.1.jar:0.2.1]
          at org.apache.camel.component.milo.client.internal.SubscriptionManager.performConnect(SubscriptionManager.java:447) [camel-milo-2.21.0-SNAPSHOT.jar:2.21.0-SNAPSHOT]
          ... 36 common frames omitted
      
      

      And no more connections are possible.

      Attachments

        Activity

          People

            dentrassi Jens Reimann
            ctron Jens Reimann
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: