You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@plc4x.apache.org by GitBox <gi...@apache.org> on 2022/11/18 16:20:11 UTC

[GitHub] [plc4x] dremsol commented on issue #626: java.lang.ClassCastException: DefaultPlcSubscriptionField cannot be cast to class OpcuaField

dremsol commented on issue #626:
URL: https://github.com/apache/plc4x/issues/626#issuecomment-1320241346

   I have a similar error using `0.10.0` and S7 driver
   ```
   [main] INFO org.apache.plc4x.java.PlcDriverManager - Instantiating new PLC Driver Manager with class loader jdk.internal.loader.ClassLoaders$AppClassLoader@5cb0d902
   [main] INFO org.apache.plc4x.java.PlcDriverManager - Registering available drivers...
   [main] INFO org.apache.plc4x.java.PlcDriverManager - 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=0, 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
   EventDispacher Bye!
   ObjectProcessor Bye!
   [main] INFO org.apache.plc4x.java.spi.connection.NettyChannelFactory - Worker Group was closed successfully!
   Exception in thread "main" java.lang.ClassCastException: class org.apache.plc4x.java.s7.readwrite.field.S7Field cannot be cast to class org.apache.plc4x.java.s7.readwrite.field.S7SubscriptionField (org.apache.plc4x.java.s7.readwrite.field.S7Field and org.apache.plc4x.java.s7.readwrite.field.S7SubscriptionField are in unnamed module of loader 'app')
           at org.apache.plc4x.java.s7.readwrite.protocol.S7ProtocolLogic.subscribe(S7ProtocolLogic.java:341)
           at org.apache.plc4x.java.spi.optimizer.BaseOptimizer.lambda$optimizedSubscribe$4(BaseOptimizer.java:120)
           at org.apache.plc4x.java.spi.optimizer.BaseOptimizer.send(BaseOptimizer.java:138)
           at org.apache.plc4x.java.spi.optimizer.BaseOptimizer.optimizedSubscribe(BaseOptimizer.java:120)
           at org.apache.plc4x.java.spi.connection.AbstractPlcConnection.subscribe(AbstractPlcConnection.java:183)
           at org.apache.plc4x.java.spi.messages.DefaultPlcSubscriptionRequest.execute(DefaultPlcSubscriptionRequest.java:66)
           at io.drebble.playground.Plc4xSubscription.run(Plc4xSubscription.java:39)
           at io.drebble.playground.Plc4xSubscription.main(Plc4xSubscription.java:68)
   ```


-- 
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