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

NATS consumer throws NullPointerException on connection failure

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.4.4, 3.6.0
    • Fix Version/s: 3.4.5, 3.7.0
    • Component/s: camel-nats
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      Something I observed in camel-quarkus, when the NATS integration test occasionally fails with connection errors, there's also NullPointerException thrown from the consumer doStop().

      [INFO] Caused by: java.lang.NullPointerException
      [INFO] 	at org.apache.camel.component.nats.NatsConsumer.doStop(NatsConsumer.java:71)
      [INFO] 	at org.apache.camel.support.service.BaseService.stop(BaseService.java:156)
      [INFO] 	at org.apache.camel.support.service.ServiceHelper.stopService(ServiceHelper.java:133)
      [INFO] 	at org.apache.camel.support.service.ServiceHelper.stopAndShutdownService(ServiceHelper.java:198)
      [INFO] 	at org.apache.camel.impl.engine.RouteService.stopChildService(RouteService.java:352)
      [INFO] 	at org.apache.camel.impl.engine.RouteService.doStop(RouteService.java:240)
      [INFO] 	at org.apache.camel.support.ChildServiceSupport.stop(ChildServiceSupport.java:86)
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jamesnetherton James Netherton
                Reporter:
                jamesnetherton James Netherton
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: