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?