You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2020/01/20 12:40:00 UTC

[jira] [Work logged] (CAMEL-11947) Possible race condition in iec60870 producer

     [ https://issues.apache.org/jira/browse/CAMEL-11947?focusedWorklogId=374539&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-374539 ]

ASF GitHub Bot logged work on CAMEL-11947:
------------------------------------------

                Author: ASF GitHub Bot
            Created on: 20/Jan/20 12:39
            Start Date: 20/Jan/20 12:39
    Worklog Time Spent: 10m 
      Work Description: tdiesler commented on pull request #3502: [CAMEL-11947] Possible race condition in iec60870 producer
URL: https://github.com/apache/camel/pull/3502
 
 
   
 
----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Issue Time Tracking
-------------------

            Worklog Id:     (was: 374539)
    Remaining Estimate: 0h
            Time Spent: 10m

> Possible race condition in iec60870 producer
> --------------------------------------------
>
>                 Key: CAMEL-11947
>                 URL: https://issues.apache.org/jira/browse/CAMEL-11947
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-iec60870
>    Affects Versions: 2.20.0
>            Reporter: James Netherton
>            Assignee: Thomas Diesler
>            Priority: Minor
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> I've been working on integrating the iec60870 component with WIldFly. I have an integration test [here|https://github.com/wildfly-extras/wildfly-camel/blob/master/itests/standalone/basic/src/test/java/org/wildfly/camel/test/iec60870/Iec60870IntegrationTest.java]. 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()|https://github.com/eclipse/neoscada/blob/master/protocols/org.eclipse.neoscada.protocol.iec60870.client/src/org/eclipse/neoscada/protocol/iec60870/client/Client.java#L259] 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()|https://github.com/eclipse/neoscada/blob/master/protocols/org.eclipse.neoscada.protocol.iec60870.client/src/org/eclipse/neoscada/protocol/iec60870/client/Client.java#L138]. 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|https://github.com/apache/camel/blob/master/components/camel-iec60870/src/main/java/org/apache/camel/component/iec60870/client/ClientProducer.java#L49]. 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]
>  
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)