Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-11947

Race condition in iec60870 producer

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.20.0
    • Fix Version/s: 3.1.0
    • Component/s: camel-iec60870
    • Labels:
      None
    • Estimated Complexity:
      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

       

       

        Attachments

          Activity

            People

            • Assignee:
              tdiesler Thomas Diesler
              Reporter:
              jamesnetherton James Netherton
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 1h
                1h