You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@plc4x.apache.org by "gustavoschewinski (via GitHub)" <gi...@apache.org> on 2024/09/09 15:14:30 UTC
Re: [I] [Bug]: Version update plc4j-apache-kafka
gustavoschewinski commented on issue #125:
URL: https://github.com/apache/plc4x-extras/issues/125#issuecomment-2338398966
Hello @chrisdutz,
I have found some additional logs that might be helpful, but I still haven't identified the cause of the issue.
As you can see, it can't find the endpoint. However, the endpoint is reachable. I was able to ping it from inside the container and retrieve data using a simple python script.
Could it be that a recent update caused this conflict? If you have any ideas on how to fix, please let me know :)
Thanks!
```
[2024-09-09 15:06:49,548] DEBUG Sending activate session request to opc.tcp://Yoshi.lab.mtu-digilab.io:53530/OPCUA/SimulationServer (org.apache.plc4x.java.opcua.context.SecureChannel)
[2024-09-09 15:06:49,548] TRACE Using Endpoint Yoshi.mshome.net 53530 /OPCUA/SimulationServer (org.apache.plc4x.java.opcua.context.SecureChannel)
[2024-09-09 15:06:49,548] TRACE Using Endpoint Yoshi.mshome.net 53530 /OPCUA/SimulationServer (org.apache.plc4x.java.opcua.context.SecureChannel)
[2024-09-09 15:06:49,548] TRACE Using Endpoint Yoshi.mshome.net 53530 /OPCUA/SimulationServer (org.apache.plc4x.java.opcua.context.SecureChannel)
[2024-09-09 15:06:49,548] TRACE Using Endpoint Yoshi.mshome.net 53530 /OPCUA/SimulationServer (org.apache.plc4x.java.opcua.context.SecureChannel)
[2024-09-09 15:06:49,549] TRACE Using Endpoint Yoshi.mshome.net 53530 /OPCUA/SimulationServer (org.apache.plc4x.java.opcua.context.SecureChannel)
[2024-09-09 15:06:49,549] TRACE Using Endpoint Yoshi.mshome.net 53530 /OPCUA/SimulationServer (org.apache.plc4x.java.opcua.context.SecureChannel)
[2024-09-09 15:06:49,549] TRACE Using Endpoint Yoshi.mshome.net 53530 /OPCUA/SimulationServer (org.apache.plc4x.java.opcua.context.SecureChannel)
[2024-09-09 15:06:49,549] TRACE Using Endpoint Yoshi.mshome.net 53530 /OPCUA/SimulationServer (org.apache.plc4x.java.opcua.context.SecureChannel)
[2024-09-09 15:06:49,549] TRACE Using Endpoint Yoshi.mshome.net 53530 /OPCUA/SimulationServer (org.apache.plc4x.java.opcua.context.SecureChannel)
[2024-09-09 15:06:49,549] TRACE Using Endpoint Yoshi.mshome.net 53530 /OPCUA/SimulationServer (org.apache.plc4x.java.opcua.context.SecureChannel)
[2024-09-09 15:06:49,549] TRACE Using Endpoint Yoshi.mshome.net 53530 /OPCUA/SimulationServer (org.apache.plc4x.java.opcua.context.SecureChannel)
[2024-09-09 15:06:49,549] ERROR Failed to establish connection (org.apache.plc4x.java.opcua.protocol.OpcuaProtocolLogic)
java.util.concurrent.CompletionException: org.apache.plc4x.java.api.exceptions.PlcRuntimeException: Unable to find endpoint - 10.1.10.84
at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:314)
at java.base/java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:319)
at java.base/java.util.concurrent.CompletableFuture$UniCompose.tryFire(CompletableFuture.java:1081)
at java.base/java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:506)
at java.base/java.util.concurrent.CompletableFuture.complete(CompletableFuture.java:2079)
at org.apache.plc4x.java.opcua.context.Conversation.lambda$38(Conversation.java:342)
at java.base/java.util.function.Consumer.lambda$andThen$0(Consumer.java:65)
at org.apache.plc4x.java.spi.Plc4xNettyWrapper.decode(Plc4xNettyWrapper.java:185)
at io.netty.handler.codec.MessageToMessageCodec$2.decode(MessageToMessageCodec.java:81)
at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:88)
at io.netty.handler.codec.MessageToMessageCodec.channelRead(MessageToMessageCodec.java:111)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:442)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)
at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103)
at io.netty.handler.codec.MessageToMessageCodec.channelRead(MessageToMessageCodec.java:111)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:442)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)
at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:346)
at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:318)
at io.netty.handler.codec.ByteToMessageCodec.channelRead(ByteToMessageCodec.java:103)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:442)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)
at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1407)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:440)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)
at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:918)
at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:166)
at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:788)
at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:724)
at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:650)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:562)
at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:994)
at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
at java.base/java.lang.Thread.run(Thread.java:829)
Caused by: org.apache.plc4x.java.api.exceptions.PlcRuntimeException: Unable to find endpoint - 10.1.10.84
at org.apache.plc4x.java.opcua.context.SecureChannel.selectEndpoint(SecureChannel.java:524)
at org.apache.plc4x.java.opcua.context.SecureChannel.onConnectActivateSessionRequest(SecureChannel.java:327)
at org.apache.plc4x.java.opcua.context.SecureChannel.lambda$3(SecureChannel.java:150)
at java.base/java.util.concurrent.CompletableFuture$UniCompose.tryFire(CompletableFuture.java:1072)
... 35 more
[2024-09-09 15:06:49,564] DEBUG Job statistics (jobA, machineA) number of requests: 2 (0 success, 100.0 % failed, NaN % too slow), min latency: NaN ms, mean latency: NaN ms, median: NaN ms (org.apache.plc4x.java.scraper.triggeredscraper.TriggeredScraperImpl)
[2024-09-09 15:06:49,585] TRACE Additional Info from caller acquiring data collecting connection to (machineA,jobA) (org.apache.plc4x.java.scraper.triggeredscraper.TriggeredScraperImpl)
java.util.concurrent.ExecutionException: java.util.concurrent.TimeoutException
at java.base/java.util.concurrent.CompletableFuture.reportGet(CompletableFuture.java:395)
at java.base/java.util.concurrent.CompletableFuture.get(CompletableFuture.java:2005)
at org.apache.plc4x.java.scraper.triggeredscraper.TriggeredScraperImpl.getPlcConnection(TriggeredScraperImpl.java:330)
at org.apache.plc4x.java.scraper.triggeredscraper.TriggeredScraperTask.run(TriggeredScraperTask.java:112)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305)
at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:829)
Caused by: java.util.concurrent.TimeoutException
at java.base/java.util.concurrent.CompletableFuture$Timeout.run(CompletableFuture.java:2798)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304)
... 3 more
```
--
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-unsubscribe@plc4x.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org