camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Willem Jiang (Commented) (JIRA)" <>
Subject [jira] [Commented] (CAMEL-5084) Error when mocking all endpoints and using cxf
Date Thu, 15 Mar 2012 06:58:17 GMT


Willem Jiang commented on CAMEL-5084:

I just debugged the code with the test case, I found the InterceptSendToEndpoint doesn't sart
the producer which it created.
After updated the code for it, the test passed.

> Error when mocking all endpoints and using cxf
> ----------------------------------------------
>                 Key: CAMEL-5084
>                 URL:
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-cxf
>    Affects Versions: 2.9.1
>         Environment: Generic windows
>            Reporter: Henrik Filtenborg Sørensen
>            Assignee: Willem Jiang
>         Attachments:
> When upgrading from Apache Camel 2.9.0 to 2.9.1 I suddently get an error when using camel-cxf
endpoints. When running my JUnit tests (extending CamelSpringTestSupport) I get this exception:
> Caused by: java.lang.NullPointerException
> 	at org.apache.camel.component.cxf.CxfProducer.getBindingOperationInfo(
> 	at org.apache.camel.component.cxf.CxfProducer.prepareBindingOperation(
> 	at org.apache.camel.component.cxf.CxfProducer.process(
> 	at org.apache.camel.impl.SynchronousDelegateProducer.process(
> 	at org.apache.camel.impl.InterceptSendToEndpoint$1.process(
> 	at org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(
> 	at org.apache.camel.util.AsyncProcessorHelper.process(
> 	at org.apache.camel.util.AsyncProcessorHelper.process(
> When I debug my test I see that the method doStart() in CxfProducer is never called,
resulting in client being null (hence the NullPointerException in ).

> I suspect the mocking all endpoints with the InterceptSendToEndpoint, 
> short-circut the startup procedure to not delegate the start call to 
> the intercepted endpoint. Or there abouts. 
> See discussion in camel user forum:

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message