GitHub user mjoseph909 added a comment to the discussion: PLC4J EIP
Hi,
Here is the whole console message when I run my project:
```
[main] INFO org.apache.plc4x.java.DefaultPlcDriverManager - Instantiating new
PLC Driver Manager with class loader
jdk.internal.loader.ClassLoaders$AppClassLoader@5c29bfd
[main] INFO org.apache.plc4x.java.DefaultPlcDriverManager - Registering
available drivers...
[main] INFO org.apache.plc4x.java.DefaultPlcDriverManager - Registering driver
for Protocol ab-eth (Allen Bradley ETH)
[main] INFO org.apache.plc4x.java.DefaultPlcDriverManager - Registering driver
for Protocol ads (Beckhoff TwinCat ADS)
[main] INFO org.apache.plc4x.java.DefaultPlcDriverManager - Registering driver
for Protocol bacnet-ip (BACnet/IP)
[main] INFO org.apache.plc4x.java.DefaultPlcDriverManager - Registering driver
for Protocol c-bus (Clipsal C-Bus)
[main] INFO org.apache.plc4x.java.DefaultPlcDriverManager - Registering driver
for Protocol genericcan (Generic CAN)
[main] INFO org.apache.plc4x.java.DefaultPlcDriverManager - Registering driver
for Protocol canopen (CAN open)
[main] INFO org.apache.plc4x.java.DefaultPlcDriverManager - Registering driver
for Protocol eip (EthernetIP)
[main] INFO org.apache.plc4x.java.DefaultPlcDriverManager - Registering driver
for Protocol logix (Logix CIP)
[main] INFO org.apache.plc4x.java.DefaultPlcDriverManager - Registering driver
for Protocol firmata (Firmata)
[main] INFO org.apache.plc4x.java.DefaultPlcDriverManager - Registering driver
for Protocol iec-60870-5-104 (IEC 60870-5-104)
[main] INFO org.apache.plc4x.java.DefaultPlcDriverManager - Registering driver
for Protocol knxnet-ip (KNXNet/IP)
[main] INFO org.apache.plc4x.java.DefaultPlcDriverManager - Registering driver
for Protocol open-protocol (Open-Protocol)
[main] INFO org.apache.plc4x.java.DefaultPlcDriverManager - Registering driver
for Protocol modbus-ascii (Modbus ASCII)
[main] INFO org.apache.plc4x.java.DefaultPlcDriverManager - Registering driver
for Protocol modbus-rtu (Modbus RTU)
[main] INFO org.apache.plc4x.java.DefaultPlcDriverManager - Registering driver
for Protocol modbus-tcp (Modbus TCP)
[main] INFO org.apache.plc4x.java.DefaultPlcDriverManager - Registering driver
for Protocol opcua (Opcua)
[main] INFO org.apache.plc4x.java.DefaultPlcDriverManager - Registering driver
for Protocol plc4x (PLC4X (Proxy-Protocol))
[main] INFO org.apache.plc4x.java.DefaultPlcDriverManager - Registering driver
for Protocol profinet (Profinet)
[main] INFO org.apache.plc4x.java.DefaultPlcDriverManager - Registering driver
for Protocol s7 (Siemens S7 (Basic))
[main] INFO org.apache.plc4x.java.DefaultPlcDriverManager - Registering driver
for Protocol simulated (Simulated PLC4X Datasource)
[nioEventLoopGroup-2-1] WARN io.netty.channel.DefaultChannelPipeline - An
exceptionCaught() event was fired, and it reached at the tail of the pipeline.
It usually means the last handler in the pipeline did not handle the exception.
io.netty.handler.codec.DecoderException:
org.apache.plc4x.java.api.exceptions.PlcRuntimeException: The remote device
doesn't seem to use BIG_ENDIAN byte order.
at
io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:98)
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:1410)
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:919)
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:997)
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:834)
Caused by: org.apache.plc4x.java.api.exceptions.PlcRuntimeException: The remote
device doesn't seem to use BIG_ENDIAN byte order.
at
org.apache.plc4x.java.eip.base.protocol.EipProtocolLogic.lambda$4(EipProtocolLogic.java:200)
at
java.base/java.util.function.Consumer.lambda$andThen$0(Consumer.java:65)
at
org.apache.plc4x.java.spi.Plc4xNettyWrapper.decode(Plc4xNettyWrapper.java:183)
at
io.netty.handler.codec.MessageToMessageCodec$2.decode(MessageToMessageCodec.java:81)
at
io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:88)
... 28 more
[nioEventLoopGroup-2-1] ERROR
org.apache.plc4x.java.spi.connection.DefaultNettyPlcConnection - unknown error,
close the connection
java.io.IOException: An existing connection was forcibly closed by the remote
host
at java.base/sun.nio.ch.SocketDispatcher.read0(Native Method)
at java.base/sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:43)
at java.base/sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:276)
at java.base/sun.nio.ch.IOUtil.read(IOUtil.java:233)
at java.base/sun.nio.ch.IOUtil.read(IOUtil.java:223)
at
java.base/sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:358)
at io.netty.buffer.PooledByteBuf.setBytes(PooledByteBuf.java:255)
at io.netty.buffer.AbstractByteBuf.writeBytes(AbstractByteBuf.java:1132)
at
io.netty.channel.socket.nio.NioSocketChannel.doReadBytes(NioSocketChannel.java:357)
at
io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:151)
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:997)
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:834)
[main] ERROR iwt.Pipe - PLC Connection Exception:
java.util.concurrent.ExecutionException:
org.apache.plc4x.java.api.exceptions.PlcIoException: Connection terminated by
remote
[nioEventLoopGroup-2-1] WARN io.netty.channel.DefaultChannelPipeline - An
exceptionCaught() event was fired, and it reached at the tail of the pipeline.
It usually means the last handler in the pipeline did not handle the exception.
java.io.IOException: An existing connection was forcibly closed by the remote
host
at java.base/sun.nio.ch.SocketDispatcher.write0(Native Method)
at java.base/sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:51)
at java.base/sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:113)
at java.base/sun.nio.ch.IOUtil.write(IOUtil.java:58)
at java.base/sun.nio.ch.IOUtil.write(IOUtil.java:50)
at
java.base/sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:466)
at
io.netty.channel.socket.nio.NioSocketChannel.doWrite(NioSocketChannel.java:415)
at
io.netty.channel.AbstractChannel$AbstractUnsafe.flush0(AbstractChannel.java:931)
at
io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.flush0(AbstractNioChannel.java:355)
```
Let me know if this helps. If not, I can provide more information. I appreciate
the help.
GitHub link:
https://github.com/apache/plc4x/discussions/1982#discussioncomment-11934565
----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: [email protected]