Hi all,
I'm currently trying to WRITE a BOOL value to an Allen Bradley over Ethernet/IP.
Reading the values works just fine. Reading and WRITING DINT values works as
well.
However, when writing a BOOL it hangs and then fails with:
2022-07-04 16:08:38.289 [nioEventLoopGroup-5-1] WARN
i.n.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.net.SocketException: Connection reset
at
java.base/sun.nio.ch.SocketChannelImpl.throwConnectionReset(SocketChannelImpl.java:394)
at
java.base/sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:426)
at
io.netty.buffer.PooledByteBuf.setBytes(PooledByteBuf.java:258)
at
io.netty.buffer.AbstractByteBuf.writeBytes(AbstractByteBuf.java:1132)
at
io.netty.channel.socket.nio.NioSocketChannel.doReadBytes(NioSocketChannel.java:350)
at
io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:151)
at
io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:722)
at
io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:658)
at
io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:584)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:496)
at
io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:986)
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:833)
In fact all those values (see image) works for reading (ALL WORK) and writing
(BOOL ONLY FAILS):
[cid:[email protected]]
My connection string is: eip://x.x.x.x?backplane=1&slot=0
For example: trying to WRITE to: %Rejet_Boite_OK:BOOL fails. Reading works.
Any input on this ?
Ty all for your help really appreciated
Patrick Boisclair
Analyste - Programmeur senior
Senior Analyst Programmer
noovelia.com