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

NPE when NATS server not configured

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 3.0.1, 3.1.0
    • None
    • None
    • Unknown

    Description

      
      SEVERE: Failed: org.wildfly.camel.test.nats.NatsIntegrationTest.testNatsRoutes
      java.lang.NullPointerException
       at org.apache.camel.component.nats.NatsConfiguration.splitServers(NatsConfiguration.java:376)
       at org.apache.camel.component.nats.NatsConfiguration.createOptions(NatsConfiguration.java:343)
       at org.apache.camel.component.nats.NatsEndpoint.getConnection(NatsEndpoint.java:71)
       at org.apache.camel.component.nats.NatsConsumer.doStart(NatsConsumer.java:58)
       at org.apache.camel.support.service.ServiceSupport.start(ServiceSupport.java:117)
       at org.apache.camel.impl.engine.AbstractCamelContext.startService(AbstractCamelContext.java:2905)
       at org.apache.camel.impl.engine.AbstractCamelContext.doStartOrResumeRouteConsumers(AbstractCamelContext.java:3232)
       at org.apache.camel.impl.engine.AbstractCamelContext.doStartRouteConsumers(AbstractCamelContext.java:3166)
       at org.apache.camel.impl.engine.AbstractCamelContext.safelyStartRouteServices(AbstractCamelContext.java:3076)
       at org.apache.camel.impl.engine.AbstractCamelContext.doStartOrResumeRoutes(AbstractCamelContext.java:2841)
       at org.apache.camel.impl.engine.AbstractCamelContext.doStartCamel(AbstractCamelContext.java:2645)
       at org.apache.camel.impl.engine.AbstractCamelContext.lambda$doStart$2(AbstractCamelContext.java:2450)
       at org.apache.camel.impl.engine.AbstractCamelContext.doWithDefinedClassLoader(AbstractCamelContext.java:2467)
       at org.apache.camel.impl.engine.AbstractCamelContext.doStart(AbstractCamelContext.java:2448)
       at org.apache.camel.support.service.ServiceSupport.start(ServiceSupport.java:117)
       at org.apache.camel.impl.engine.AbstractCamelContext.start(AbstractCamelContext.java:2357)
       at org.wildfly.camel.test.nats.NatsIntegrationTest.testNatsRoutes(NatsIntegrationTest.java:98)
      
      

      Attachments

        Issue Links

          Activity

            People

              tdiesler Thomas Diesler
              tdiesler Thomas Diesler
              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 - 20m
                  20m