[ https://issues.apache.org/jira/browse/CAMEL-4503?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13131432#comment-13131432 ]
Claus Ibsen commented on CAMEL-4503: ------------------------------------ Willem I have committed an unit tests that reproduces the issue tests/camel-itest/src/test/java/org/apache/camel/itest/greeter/RecipientListCxf2Test.java With your recent fix on trunk (eg the clone) the problem with picking up the wrong bean is resolved as far. But we get a NPE exception later. {code} Caused by: java.lang.NullPointerException at org.apache.camel.component.cxf.CxfProducer.prepareRequest(CxfProducer.java:168) at org.apache.camel.component.cxf.CxfProducer.process(CxfProducer.java:89) at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73) at org.apache.camel.processor.RedeliveryErrorHandler.processErrorHandler(RedeliveryErrorHandler.java:321) at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:212) at org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:102) at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73) at org.apache.camel.processor.MulticastProcessor.doProcessSequential(MulticastProcessor.java:575) {code} The CxfBinding is null on the endpoint. So I guess a little more fix is needed. Do you mind digging into this? > Recipient List cannot vary destination by changing property in an expression > ---------------------------------------------------------------------------- > > Key: CAMEL-4503 > URL: https://issues.apache.org/jira/browse/CAMEL-4503 > Project: Camel > Issue Type: Bug > Affects Versions: 2.8.1 > Reporter: Jonathan Anstey > Assignee: Willem Jiang > > This is probably due to producers being cached based on unresolved endpoint > URI, rather than the resolved endpoint URI. Haven't tested this theory out > though. > See message on user list http://markmail.org/message/sdysp6sspq5lomf4 -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira