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

camel-core - Recipient List EIP - Failed to create Producer for endpoint - NPE in ServicePool

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Information Provided
    • 3.7.3
    • 3.7.4, 3.10.0
    • camel-core
    • None
    • Unknown

    Description

      Hi, this is more like a question.

      I am switching from the 2.24 version to 3.7.3, and I am getting an error in the .recepietnList. StackOverflow question

      The error itself:

      CaughtExceptionType: org.apache.camel.FailedToCreateProducerException  CaughtExceptionMessage: Failed to create Producer for endpoint: direct:xyz. Reason: java.lang.NullPointerException  StackTrace: org.apache.camel.FailedToCreateProducerException: Failed to create Producer for endpoint: direct:xyz Reason: java.lang.NullPointerExceptionCaughtExceptionType: org.apache.camel.FailedToCreateProducerException  CaughtExceptionMessage: Failed to create Producer for endpoint: direct:xyz. Reason: java.lang.NullPointerException  StackTrace: org.apache.camel.FailedToCreateProducerException: Failed to create Producer for endpoint: direct:xyz. Reason: java.lang.NullPointerException at org.apache.camel.support.cache.DefaultProducerCache.acquireProducer(DefaultProducerCache.java:154) at org.apache.camel.processor.RecipientListProcessor.createProcessorExchangePairs(RecipientListProcessor.java:219) at org.apache.camel.processor.MulticastProcessor.process(MulticastProcessor.java:276) at org.apache.camel.processor.RecipientList.sendToRecipientList(RecipientList.java:222) at org.apache.camel.processor.RecipientList.process(RecipientList.java:185) at org.apache.camel.processor.Pipeline$PipelineTask.run(Pipeline.java:90) at org.apache.camel.impl.engine.DefaultReactiveExecutor$Worker.schedule(DefaultReactiveExecutor.java:148) at org.apache.camel.impl.engine.DefaultReactiveExecutor.scheduleMain(DefaultReactiveExecutor.java:60) at org.apache.camel.processor.Pipeline.process(Pipeline.java:147) at org.apache.camel.impl.engine.CamelInternalProcessor.process(CamelInternalProcessor.java:312) at org.apache.camel.component.seda.SedaConsumer.sendToConsumers(SedaConsumer.java:274) at org.apache.camel.component.seda.SedaConsumer.doRun(SedaConsumer.java:187) at org.apache.camel.component.seda.SedaConsumer.run(SedaConsumer.java:130) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630) at java.base/java.lang.Thread.run(Thread.java:832)Caused by: java.lang.NullPointerException at org.apache.camel.support.cache.ServicePool$SinglePool.acquire(ServicePool.java:210) at org.apache.camel.support.cache.ServicePool$SinglePool.acquire(ServicePool.java:193) at org.apache.camel.support.cache.ServicePool.acquire(ServicePool.java:109) at org.apache.camel.support.cache.DefaultProducerCache.acquireProducer(DefaultProducerCache.java:125) ... 15 more

      It looks like the behavior changed between versions. Is there a way how I can address it? I walked through the migration guide, search StackOverflow, but there is no progress. Any idea?

      Attachments

        Activity

          People

            Unassigned Unassigned
            ChameleonTartu Dmytro Chasovskyi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: