Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
2.20.0
-
None
-
Unknown
Description
I've been working on integrating the iec60870 component with WIldFly. I have an integration test here. When it's executed on its own, everything works fine. When it runs with the entire test suite, I encounter a NullPointerException in the Neoscada Client.writeCommand() method.
It seems that the Netty channel that it's trying to write to is null and that initialisation of the channel happens async in Client.handleOperationComplete(). When I debug, I see the channel gets initialised after the call to writeCommand().
Not sure if there's any way to detect whether the client connection has been established before trying to use it in the ClientProducer. Or maybe this ticket would be better placed with the neoscada project?
CrossRef
https://github.com/wildfly-extras/wildfly-camel/issues/2236
https://issues.redhat.com/browse/ENTESB-12557