parthgoel06 commented on issue #2072:
URL: https://github.com/apache/plc4x/issues/2072#issuecomment-2858362632

   @splatch 
   The connection string I used in my code -> 
`opcua:tcp://192.168.0.96:62640/IntegrationObjects/ServerSimulator?discovery=false&username=test&password=test&endpoint-host=parthpc`
   
   Server's endpoint -> 
`opc.tcp://parthpc:62640/IntegrationObjects/ServerSimulator`
   
   This did not work. Still gave me the same error as before -> 
   ```
   io-data-reader  | 11:34:19.205 ERROR o.a.p.j.o.p.OpcuaProtocolLogic - Failed 
to establish connection
   io-data-reader  | java.util.concurrent.CompletionException: 
org.apache.plc4x.java.api.exceptions.PlcRuntimeException: Unable to find 
endpoint matching  
opc.tcp://192.168.0.96:62640/IntegrationObjects/ServerSimulator
   io-data-reader  |    at 
java.base/java.util.concurrent.CompletableFuture.wrapInCompletionException(CompletableFuture.java:325)
   io-data-reader  |    at 
java.base/java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:361)
   io-data-reader  |    at 
java.base/java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:366)
   io-data-reader  |    at 
java.base/java.util.concurrent.CompletableFuture$UniCompose.tryFire(CompletableFuture.java:1205)
   io-data-reader  |    at 
java.base/java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:556)
   io-data-reader  |    at 
java.base/java.util.concurrent.CompletableFuture.complete(CompletableFuture.java:2231)
   io-data-reader  |    at 
org.apache.plc4x.java.opcua.context.Conversation.lambda$38(Conversation.java:342)
   io-data-reader  |    at 
java.base/java.util.function.Consumer.lambda$andThen$0(Consumer.java:65)
   io-data-reader  |    at 
org.apache.plc4x.java.spi.Plc4xNettyWrapper.decode(Plc4xNettyWrapper.java:194)
   io-data-reader  |    at 
io.netty.handler.codec.MessageToMessageCodec$1.decode(MessageToMessageCodec.java:67)
   io-data-reader  |    at 
io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:91)
   io-data-reader  |    at 
io.netty.handler.codec.MessageToMessageCodec.channelRead(MessageToMessageCodec.java:120)
   io-data-reader  |    at 
io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:442)
   io-data-reader  |    at 
io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)
   io-data-reader  |    at 
io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)
   io-data-reader  |    at 
io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:107)
   io-data-reader  |    at 
io.netty.handler.codec.MessageToMessageCodec.channelRead(MessageToMessageCodec.java:120)
   io-data-reader  |    at 
io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:442)
   io-data-reader  |    at 
io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)
   io-data-reader  |    at 
io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)
   io-data-reader  |    at 
io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:346)
   io-data-reader  |    at 
io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:318)
   io-data-reader  |    at 
io.netty.handler.codec.ByteToMessageCodec.channelRead(ByteToMessageCodec.java:103)
   io-data-reader  |    at 
io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:442)
   io-data-reader  |    at 
io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)
   io-data-reader  |    at 
io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)
   io-data-reader  |    at 
io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1357)
   io-data-reader  |    at 
io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:440)
   io-data-reader  |    at 
io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)
   io-data-reader  |    at 
io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:868)
   io-data-reader  |    at 
io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:166)
   io-data-reader  |    at 
io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:796)
   io-data-reader  |    at 
io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:732)
   io-data-reader  |    at 
io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:658)
   io-data-reader  |    at 
io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:562)
   io-data-reader  |    at 
io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:998)
   io-data-reader  |    at 
io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
   io-data-reader  |    at 
io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
   io-data-reader  |    at java.base/java.lang.Thread.run(Thread.java:1447)
   io-data-reader  | Caused by: 
org.apache.plc4x.java.api.exceptions.PlcRuntimeException: Unable to find 
endpoint matching  
opc.tcp://192.168.0.96:62640/IntegrationObjects/ServerSimulator
   io-data-reader  |    at 
org.apache.plc4x.java.opcua.context.SecureChannel.onConnectActivateSessionRequest(SecureChannel.java:304)
   io-data-reader  |    at 
org.apache.plc4x.java.opcua.context.SecureChannel.lambda$3(SecureChannel.java:137)
   io-data-reader  |    at 
java.base/java.util.concurrent.CompletableFuture$UniCompose.tryFire(CompletableFuture.java:1196)
   io-data-reader  |    ... 35 common frames omitted
   io-data-reader  | 11:34:19.204 ERROR o.a.p.j.o.p.OpcuaProtocolLogic - Failed 
to establish connection
   io-data-reader  | java.util.concurrent.CompletionException: 
org.apache.plc4x.java.api.exceptions.PlcRuntimeException: Unable to find 
endpoint matching  
opc.tcp://192.168.0.96:62640/IntegrationObjects/ServerSimulator
   ```
   
   Would using endpoint-port with endpoint-host option make a difference? 
(Although it's same as the one I am connecting to.)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@plc4x.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to