[ 
https://issues.apache.org/jira/browse/CAMEL-12286?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16374371#comment-16374371
 ] 

ASF GitHub Bot commented on CAMEL-12286:
----------------------------------------

ctron opened a new pull request #2233: CAMEL-12286: Fix camel-milo client 
component
URL: https://github.com/apache/camel/pull/2233
 
 
   This change adapts the client to the changed behavior of
   Eclipse Milo 0.2.x. It does an explicit call to connect and also allows
   to configure the allowed security policies in order to still support
   anonymous access when no keys are used.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> Milo client broken
> ------------------
>
>                 Key: CAMEL-12286
>                 URL: https://issues.apache.org/jira/browse/CAMEL-12286
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-milo
>    Affects Versions: 2.21.0
>            Reporter: Jens Reimann
>            Assignee: Jens Reimann
>            Priority: Major
>
> 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:
> {code:java}
> 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
> {code}
> And no more connections are possible.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to