[ 
https://issues.apache.org/jira/browse/CAMEL-16377?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17304893#comment-17304893
 ] 

Claus Ibsen commented on CAMEL-16377:
-------------------------------------

Can you build a reproducer example or show some code / route what you are 
doing. And what component/endpoint do you use in the recipient list.

> CaughtExceptionType: org.apache.camel.FailedToCreateProducerException  
> CaughtExceptionMessage: Failed to create Producer for endpoint
> -------------------------------------------------------------------------------------------------------------------------------------
>
>                 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: Major
>
> 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)

Reply via email to