You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2021/03/19 13:26:00 UTC

[jira] [Updated] (CAMEL-16377) camel-core - Recipient List EIP - Failed to create Producer for endpoint - NPE in ServicePool

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

Claus Ibsen updated CAMEL-16377:
--------------------------------
    Summary: camel-core - Recipient List EIP - Failed to create Producer for endpoint - NPE in ServicePool  (was: CaughtExceptionType: org.apache.camel.FailedToCreateProducerException  CaughtExceptionMessage: Failed to create Producer for endpoint)

> camel-core - Recipient List EIP - Failed to create Producer for endpoint - NPE in ServicePool
> ---------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-16377
>                 URL: https://issues.apache.org/jira/browse/CAMEL-16377
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 3.7.3
>            Reporter: Dmytro Chasovskyi
>            Priority: Minor
>             Fix For: 3.7.4, 3.10.0
>
>
> 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|https://stackoverflow.com/questions/66692194/how-to-solve-org-apache-camel-failedtocreateproducerexception-caughtexceptionmes]
> 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?



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