Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-12557

Race condition in iec60870 producer

    XMLWordPrintable

Details

    • Task
    • Resolution: Done
    • Major
    • fuse-7.6-GA
    • None
    • Fuse EAP
    • None
    • % %

    Description

      2019-12-18 15:40:11,415 INFO  [org.wildfly.extension.camel] (pool-487-thread-1) Camel context starting: camel-483
      2019-12-18 15:40:11,415 INFO  [org.wildfly.extension.camel] (MSC service thread 1-6) Bound camel naming object: java:jboss/camel/context/camel-483
      2019-12-18 15:40:11,467 INFO  [org.apache.camel.component.iec60870.AbstractIecComponent] (pool-487-thread-1) Create endpoint - uri: iec60870-client://localhost:1100/0-1-2-3-4, remaining: localhost:1100/0-1-2-3-4, parameters: {}
      2019-12-18 15:40:11,497 INFO  [org.apache.camel.component.iec60870.AbstractIecComponent] (pool-487-thread-1) Create endpoint - uri: iec60870-server://localhost:1100/0-1-2-3-4, remaining: localhost:1100/0-1-2-3-4, parameters: {}
      2019-12-18 15:40:11,511 INFO  [org.apache.camel.impl.DefaultCamelContext] (pool-487-thread-1) StreamCaching is not in use. If using streams then its recommended to enable stream caching. See more details at http://camel.apache.org/stream-caching.html
      2019-12-18 15:40:11,511 INFO  [org.apache.camel.impl.HeadersMapFactoryResolver] (pool-487-thread-1) Detected and using custom HeadersMapFactory: org.apache.camel.component.headersmap.FastHeadersMapFactory@347c43f5
      2019-12-18 15:40:11,512 INFO  [org.apache.camel.component.iec60870.AbstractConnectionMultiplexor] (pool-487-thread-1) Calling performStart()
      2019-12-18 15:40:11,556 INFO  [org.eclipse.neoscada.protocol.iec60870.client.AutoConnectClient] (localhost/1100/1/1) State changed: LOOKUP
      2019-12-18 15:40:11,558 INFO  [org.eclipse.neoscada.protocol.iec60870.client.AutoConnectClient] (localhost/1100/1/1) State changed: CONNECTING
      2019-12-18 15:40:11,565 INFO  [org.apache.camel.component.iec60870.AbstractConnectionMultiplexor] (pool-487-thread-1) Calling performStart()
      2019-12-18 15:40:11,571 INFO  [org.apache.camel.component.iec60870.server.ServerInstance] (pool-487-thread-1) Creating instant change model
      2019-12-18 15:40:11,573 INFO  [org.apache.camel.component.iec60870.server.ServerInstance] (pool-487-thread-1) Creating background scan model: 60000 ms
      2019-12-18 15:40:11,589 INFO  [org.apache.camel.impl.DefaultCamelContext] (pool-487-thread-1) Route: route779 started and consuming from: direct://start
      2019-12-18 15:40:11,591 INFO  [org.apache.camel.impl.DefaultCamelContext] (pool-487-thread-1) Route: route780 started and consuming from: iec60870-server://localhost:1100/0-1-2-3-4
      2019-12-18 15:40:11,591 INFO  [org.apache.camel.impl.DefaultCamelContext] (pool-487-thread-1) Total 2 routes, of which 2 are started
      2019-12-18 15:40:11,591 INFO  [org.apache.camel.impl.DefaultCamelContext] (pool-487-thread-1) Apache Camel 2.21.0.fuse-760016 (CamelContext: camel-483) started in 0.179 seconds
      2019-12-18 15:40:11,592 ERROR [org.apache.camel.processor.DefaultErrorHandler] (pool-487-thread-1) Failed delivery for (MessageId: ID-ovpn-121-65-rdu2-redhat-com-1576679548497-482-2 on ExchangeId: ID-ovpn-121-65-rdu2-redhat-com-1576679548497-482-1). Exhausted after delivery attempt: 1 caught: java.lang.NullPointerException
      
      Message History
      ---------------------------------------------------------------------------------------------------------------------------------------
      RouteId              ProcessorId          Processor                                                                        Elapsed (ms)
      [route779          ] [route779          ] [direct://start                                                                ] [         0]
      [route779          ] [to915             ] [iec60870-client:localhost:1100/0-1-2-3-4                                      ] [         0]
      
      Stacktrace
      ---------------------------------------------------------------------------------------------------------------------------------------: java.lang.NullPointerException
      	at org.eclipse.neoscada.protocol.iec60870.client.Client.writeCommand(Client.java:259)
      	at org.eclipse.neoscada.protocol.iec60870.client.AutoConnectClient.writeCommand(AutoConnectClient.java:192)
      	at org.apache.camel.component.iec60870.client.ClientConnection.executeCommand(ClientConnection.java:130)
      	at org.apache.camel.component.iec60870.client.ClientProducer.process(ClientProducer.java:49)
      	at org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:61)
      	at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:148)
      	at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:548)
      	at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:201)
      	at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:201)
      	at org.apache.camel.component.direct.DirectBlockingProducer.process(DirectBlockingProducer.java:53)
      	at org.apache.camel.processor.SharedCamelInternalProcessor.process(SharedCamelInternalProcessor.java:186)
      	at org.apache.camel.processor.SharedCamelInternalProcessor.process(SharedCamelInternalProcessor.java:86)
      	at org.apache.camel.impl.ProducerCache$1.doInProducer(ProducerCache.java:541)
      	at org.apache.camel.impl.ProducerCache$1.doInProducer(ProducerCache.java:506)
      	at org.apache.camel.impl.ProducerCache.doInProducer(ProducerCache.java:369)
      	at org.apache.camel.impl.ProducerCache.sendExchange(ProducerCache.java:506)
      	at org.apache.camel.impl.ProducerCache.send(ProducerCache.java:229)
      	at org.apache.camel.impl.DefaultProducerTemplate.send(DefaultProducerTemplate.java:144)
      	at org.apache.camel.impl.DefaultProducerTemplate.sendBody(DefaultProducerTemplate.java:161)
      	at org.apache.camel.impl.DefaultProducerTemplate.sendBody(DefaultProducerTemplate.java:168)
      	at org.wildfly.camel.test.iec60870.Iec60870IntegrationTest.testIec60870ClientServer(Iec60870IntegrationTest.java:70)
      

      CrossRefs
      https://github.com/wildfly-extras/wildfly-camel/issues/2236
      https://issues.apache.org/jira/browse/CAMEL-11947

      Attachments

        Activity

          People

            tdiesler@redhat.com Thomas Diesler
            tdiesler@redhat.com Thomas Diesler
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: