From issues-return-49622-archive-asf-public=cust-asf.ponee.io@camel.apache.org Fri Feb 23 14:59:05 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id DD243180652 for ; Fri, 23 Feb 2018 14:59:04 +0100 (CET) Received: (qmail 73525 invoked by uid 500); 23 Feb 2018 13:59:03 -0000 Mailing-List: contact issues-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list issues@camel.apache.org Received: (qmail 73516 invoked by uid 99); 23 Feb 2018 13:59:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Feb 2018 13:59:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 503D6C2B97 for ; Fri, 23 Feb 2018 13:59:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -109.511 X-Spam-Level: X-Spam-Status: No, score=-109.511 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, KAM_ASCII_DIVIDERS=0.8, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id hInefNqiZiCd for ; Fri, 23 Feb 2018 13:59:02 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 578A45F369 for ; Fri, 23 Feb 2018 13:59:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 9F738E041A for ; Fri, 23 Feb 2018 13:59:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 3319E218FA for ; Fri, 23 Feb 2018 13:59:00 +0000 (UTC) Date: Fri, 23 Feb 2018 13:59:00 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: issues@camel.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CAMEL-12286) Milo client broken MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CAMEL-12286?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D163= 74371#comment-16374371 ]=20 ASF GitHub Bot commented on CAMEL-12286: ---------------------------------------- ctron opened a new pull request #2233: CAMEL-12286: Fix camel-milo client c= omponent URL: https://github.com/apache/camel/pull/2233 =20 =20 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. =20 For queries about this service, please contact Infrastructure at: users@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 v= ersion 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=C2=A0 INFO 30400 --- [=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 main] o.e.milo.opcua.sdk.client.OpcUaClie= nt=C2=A0=C2=A0=C2=A0 : Eclipse Milo OPC UA Stack version: 0.2.1 > 2018-02-22 11:56:45.248=C2=A0 INFO 30400 --- [=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 main] o.e.milo.opcua.sdk.client.OpcUaClie= nt=C2=A0=C2=A0=C2=A0 : Eclipse Milo OPC UA Client SDK version: 0.2.1 > 2018-02-22 11:56:45.407=C2=A0 INFO 30400 --- [=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 main] o.a.c.c.m.c.i.SubscriptionManager= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 : Failed to connect > java.util.concurrent.ExecutionException: UaException: status=3DBad_Sessio= nClosed, message=3DThe session was closed by the client. > =C2=A0=C2=A0 =C2=A0at java.util.concurrent.CompletableFuture.reportGet(Co= mpletableFuture.java:357) ~[na:1.8.0_161] > =C2=A0=C2=A0 =C2=A0at java.util.concurrent.CompletableFuture.get(Completa= bleFuture.java:1895) ~[na:1.8.0_161] > =C2=A0=C2=A0 =C2=A0at org.apache.camel.component.milo.client.internal.Sub= scriptionManager.performConnect(SubscriptionManager.java:450) [camel-milo-2= .21.0-SNAPSHOT.jar:2.21.0-SNAPSHOT] > =C2=A0=C2=A0 =C2=A0at org.apache.camel.component.milo.client.internal.Sub= scriptionManager.performAndEvalConnect(SubscriptionManager.java:375) [camel= -milo-2.21.0-SNAPSHOT.jar:2.21.0-SNAPSHOT] > =C2=A0=C2=A0 =C2=A0at org.apache.camel.component.milo.client.internal.Sub= scriptionManager.connect(SubscriptionManager.java:370) [camel-milo-2.21.0-S= NAPSHOT.jar:2.21.0-SNAPSHOT] > =C2=A0=C2=A0 =C2=A0at org.apache.camel.component.milo.client.internal.Sub= scriptionManager.(SubscriptionManager.java:340) [camel-milo-2.21.0-SN= APSHOT.jar:2.21.0-SNAPSHOT] > =C2=A0=C2=A0 =C2=A0at org.apache.camel.component.milo.client.MiloClientCo= nnection.init(MiloClientConnection.java:52) [camel-milo-2.21.0-SNAPSHOT.jar= :2.21.0-SNAPSHOT] > =C2=A0=C2=A0 =C2=A0at org.apache.camel.component.milo.client.MiloClientCo= nnection.checkInit(MiloClientConnection.java:69) [camel-milo-2.21.0-SNAPSHO= T.jar:2.21.0-SNAPSHOT] > =C2=A0=C2=A0 =C2=A0at org.apache.camel.component.milo.client.MiloClientCo= nnection.monitorValue(MiloClientConnection.java:86) [camel-milo-2.21.0-SNAP= SHOT.jar:2.21.0-SNAPSHOT] > =C2=A0=C2=A0 =C2=A0at org.apache.camel.component.milo.client.MiloClientCo= nsumer.doStart(MiloClientConsumer.java:57) [camel-milo-2.21.0-SNAPSHOT.jar:= 2.21.0-SNAPSHOT] > =C2=A0=C2=A0 =C2=A0at org.apache.camel.support.ServiceSupport.start(Servi= ceSupport.java:61) [camel-core-2.20.2.jar:2.20.2] > =C2=A0=C2=A0 =C2=A0at org.apache.camel.impl.DefaultCamelContext.startServ= ice(DefaultCamelContext.java:3701) [camel-core-2.20.2.jar:2.20.2] > =C2=A0=C2=A0 =C2=A0at org.apache.camel.impl.DefaultCamelContext.doStartOr= ResumeRouteConsumers(DefaultCamelContext.java:4019) [camel-core-2.20.2.jar:= 2.20.2] > =C2=A0=C2=A0 =C2=A0at org.apache.camel.impl.DefaultCamelContext.doStartRo= uteConsumers(DefaultCamelContext.java:3954) [camel-core-2.20.2.jar:2.20.2] > =C2=A0=C2=A0 =C2=A0at org.apache.camel.impl.DefaultCamelContext.safelySta= rtRouteServices(DefaultCamelContext.java:3874) [camel-core-2.20.2.jar:2.20.= 2] > =C2=A0=C2=A0 =C2=A0at org.apache.camel.impl.DefaultCamelContext.doStartOr= ResumeRoutes(DefaultCamelContext.java:3638) [camel-core-2.20.2.jar:2.20.2] > =C2=A0=C2=A0 =C2=A0at org.apache.camel.impl.DefaultCamelContext.doStartCa= mel(DefaultCamelContext.java:3490) [camel-core-2.20.2.jar:2.20.2] > =C2=A0=C2=A0 =C2=A0at org.apache.camel.impl.DefaultCamelContext.access$00= 0(DefaultCamelContext.java:208) [camel-core-2.20.2.jar:2.20.2] > =C2=A0=C2=A0 =C2=A0at org.apache.camel.impl.DefaultCamelContext$2.call(De= faultCamelContext.java:3249) [camel-core-2.20.2.jar:2.20.2] > =C2=A0=C2=A0 =C2=A0at org.apache.camel.impl.DefaultCamelContext$2.call(De= faultCamelContext.java:3245) [camel-core-2.20.2.jar:2.20.2] > =C2=A0=C2=A0 =C2=A0at org.apache.camel.impl.DefaultCamelContext.doWithDef= inedClassLoader(DefaultCamelContext.java:3268) [camel-core-2.20.2.jar:2.20.= 2] > =C2=A0=C2=A0 =C2=A0at org.apache.camel.impl.DefaultCamelContext.doStart(D= efaultCamelContext.java:3245) [camel-core-2.20.2.jar:2.20.2] > =C2=A0=C2=A0 =C2=A0at org.apache.camel.support.ServiceSupport.start(Servi= ceSupport.java:61) [camel-core-2.20.2.jar:2.20.2] > =C2=A0=C2=A0 =C2=A0at org.apache.camel.impl.DefaultCamelContext.start(Def= aultCamelContext.java:3168) [camel-core-2.20.2.jar:2.20.2] > =C2=A0=C2=A0 =C2=A0at org.apache.camel.spring.SpringCamelContext.start(Sp= ringCamelContext.java:133) [camel-spring-2.20.2.jar:2.20.2] > =C2=A0=C2=A0 =C2=A0at org.apache.camel.spring.SpringCamelContext.onApplic= ationEvent(SpringCamelContext.java:174) [camel-spring-2.20.2.jar:2.20.2] > =C2=A0=C2=A0 =C2=A0at org.springframework.context.event.SimpleApplication= EventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:17= 2) [spring-context-4.3.12.RELEASE.jar:4.3.12.RELEASE] > =C2=A0=C2=A0 =C2=A0at org.springframework.context.event.SimpleApplication= EventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:165)= [spring-context-4.3.12.RELEASE.jar:4.3.12.RELEASE] > =C2=A0=C2=A0 =C2=A0at org.springframework.context.event.SimpleApplication= EventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139)= [spring-context-4.3.12.RELEASE.jar:4.3.12.RELEASE] > =C2=A0=C2=A0 =C2=A0at org.springframework.context.support.AbstractApplica= tionContext.publishEvent(AbstractApplicationContext.java:393) [spring-conte= xt-4.3.12.RELEASE.jar:4.3.12.RELEASE] > =C2=A0=C2=A0 =C2=A0at org.springframework.context.support.AbstractApplica= tionContext.publishEvent(AbstractApplicationContext.java:347) [spring-conte= xt-4.3.12.RELEASE.jar:4.3.12.RELEASE] > =C2=A0=C2=A0 =C2=A0at org.springframework.context.support.AbstractApplica= tionContext.finishRefresh(AbstractApplicationContext.java:883) [spring-cont= ext-4.3.12.RELEASE.jar:4.3.12.RELEASE] > =C2=A0=C2=A0 =C2=A0at org.springframework.context.support.AbstractApplica= tionContext.refresh(AbstractApplicationContext.java:546) [spring-context-4.= 3.12.RELEASE.jar:4.3.12.RELEASE] > =C2=A0=C2=A0 =C2=A0at org.springframework.boot.SpringApplication.refresh(= SpringApplication.java:693) [spring-boot-1.5.8.RELEASE.jar:1.5.8.RELEASE] > =C2=A0=C2=A0 =C2=A0at org.springframework.boot.SpringApplication.refreshC= ontext(SpringApplication.java:360) [spring-boot-1.5.8.RELEASE.jar:1.5.8.REL= EASE] > =C2=A0=C2=A0 =C2=A0at org.springframework.boot.SpringApplication.run(Spri= ngApplication.java:303) [spring-boot-1.5.8.RELEASE.jar:1.5.8.RELEASE] > =C2=A0=C2=A0 =C2=A0at org.springframework.boot.SpringApplication.run(Spri= ngApplication.java:1118) [spring-boot-1.5.8.RELEASE.jar:1.5.8.RELEASE] > =C2=A0=C2=A0 =C2=A0at org.springframework.boot.SpringApplication.run(Spri= ngApplication.java:1107) [spring-boot-1.5.8.RELEASE.jar:1.5.8.RELEASE] > =C2=A0=C2=A0 =C2=A0at de.dentrassi.bcx18.opcua.Application.main(Applicati= on.java:19) [classes/:na] > Caused by: org.eclipse.milo.opcua.stack.core.UaException: status=3DBad_Se= ssionClosed, description=3DThe session was closed by the client. > =C2=A0=C2=A0 =C2=A0at org.eclipse.milo.opcua.stack.core.util.FutureUtils.= failedUaFuture(FutureUtils.java:100) ~[stack-core-0.2.1.jar:0.2.1] > =C2=A0=C2=A0 =C2=A0at org.eclipse.milo.opcua.stack.core.util.FutureUtils.= failedUaFuture(FutureUtils.java:88) ~[stack-core-0.2.1.jar:0.2.1] > =C2=A0=C2=A0 =C2=A0at org.eclipse.milo.opcua.sdk.client.session.states.In= active.(Inactive.java:28) ~[sdk-client-0.2.1.jar:0.2.1] > =C2=A0=C2=A0 =C2=A0at org.eclipse.milo.opcua.sdk.client.session.SessionFs= m.(SessionFsm.java:69) ~[sdk-client-0.2.1.jar:0.2.1] > =C2=A0=C2=A0 =C2=A0at org.eclipse.milo.opcua.sdk.client.OpcUaClient.(OpcUaClient.java:159) ~[sdk-client-0.2.1.jar:0.2.1] > =C2=A0=C2=A0 =C2=A0at org.apache.camel.component.milo.client.internal.Sub= scriptionManager.performConnect(SubscriptionManager.java:447) [camel-milo-2= .21.0-SNAPSHOT.jar:2.21.0-SNAPSHOT] > =C2=A0=C2=A0 =C2=A0... 36 common frames omitted > {code} > And no more connections are possible. -- This message was sent by Atlassian JIRA (v7.6.3#76005)