[ 
https://issues.apache.org/jira/browse/CAMEL-15834?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

James Netherton resolved CAMEL-15834.
-------------------------------------
    Resolution: Fixed

> NATS consumer throws NullPointerException on connection failure
> ---------------------------------------------------------------
>
>                 Key: CAMEL-15834
>                 URL: https://issues.apache.org/jira/browse/CAMEL-15834
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-nats
>    Affects Versions: 3.4.4, 3.6.0
>            Reporter: James Netherton
>            Assignee: James Netherton
>            Priority: Major
>             Fix For: 3.4.5, 3.7.0
>
>
> 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().
> {code}
> [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)
> {code}



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

Reply via email to