floka94 commented on issue #702:
URL: https://github.com/apache/plc4x/issues/702#issuecomment-1407473848

   Unfortunately the same Exception with your demo project.
   
   ```bash
   [main] INFO org.apache.plc4x.java.DefaultPlcDriverManager - Instantiating 
new PLC Driver Manager with class loader 
jdk.internal.loader.ClassLoaders$AppClassLoader@4b1210ee
   [main] INFO org.apache.plc4x.java.DefaultPlcDriverManager - Registering 
available drivers...
   [main] INFO org.apache.plc4x.java.DefaultPlcDriverManager - Registering 
driver for Protocol s7 (Siemens S7 (Basic))
   [main] INFO org.apache.plc4x.java.transport.tcp.TcpChannelFactory - 
Configuring Bootstrap with Configuration{local-rack=1, local-slot=1, 
local-tsap=0, remote-rack=0, remote-slot=2, remote-tsap=0, pduSize=1024, 
maxAmqCaller=8, maxAmqCallee=8, controllerType='null'}
   [nioEventLoopGroup-2-1] INFO 
org.apache.plc4x.java.s7.readwrite.protocol.S7ProtocolLogic - S7 Driver running 
in ACTIVE mode.
   [main] INFO org.apache.plc4x.java.spi.connection.NettyChannelFactory - 
Channel is closed, closing worker Group also
   [main] INFO org.apache.plc4x.java.spi.connection.NettyChannelFactory - 
Worker Group was closed successfully!
   java.util.concurrent.ExecutionException: java.lang.NullPointerException: 
Cannot invoke 
"org.apache.plc4x.java.s7.readwrite.S7PayloadReadVarResponse.getItems()" 
because "payload" is null
        at 
java.base/java.util.concurrent.CompletableFuture.reportGet(CompletableFuture.java:396)
        at 
java.base/java.util.concurrent.CompletableFuture.get(CompletableFuture.java:2096)
        at com.ceos.plc4x.s7.PLCReadTags.main(PLCReadTags.java:32)
   Caused by: java.lang.NullPointerException: Cannot invoke 
"org.apache.plc4x.java.s7.readwrite.S7PayloadReadVarResponse.getItems()" 
because "payload" is null
        at 
org.apache.plc4x.java.s7.readwrite.protocol.S7ProtocolLogic.decodeReadResponse(S7ProtocolLogic.java:765)
        at 
org.apache.plc4x.java.s7.readwrite.protocol.S7ProtocolLogic.lambda$16(S7ProtocolLogic.java:231)
        at 
java.base/java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:646)
        at 
java.base/java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:510)
        at 
java.base/java.util.concurrent.CompletableFuture.complete(CompletableFuture.java:2147)
        at 
org.apache.plc4x.java.s7.readwrite.protocol.S7ProtocolLogic.lambda$23(S7ProtocolLogic.java:269)
        at 
org.apache.plc4x.java.spi.Plc4xNettyWrapper.decode(Plc4xNettyWrapper.java:187)
        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.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:833)
   EventDispacher Bye!
   ObjectProcessor Bye!
   ```
   
   Here is ma recorded pcapng file, I hobe this can help you to find out the 
problem:
   [s7_real.zip](https://github.com/apache/plc4x/files/10528144/s7_real.zip)
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to