You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Henrik Filtenborg Sørensen (Created JIRA)" <ji...@apache.org> on 2012/03/14 15:32:38 UTC

[jira] [Created] (CAMEL-5084) Error when mocking all endpoints and using cxf

Error when mocking all endpoints and using cxf
----------------------------------------------

                 Key: CAMEL-5084
                 URL: https://issues.apache.org/jira/browse/CAMEL-5084
             Project: Camel
          Issue Type: Bug
          Components: camel-cxf
    Affects Versions: 2.9.1
         Environment: Generic windows
            Reporter: Henrik Filtenborg Sørensen


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(CxfProducer.java:331)
	at org.apache.camel.component.cxf.CxfProducer.prepareBindingOperation(CxfProducer.java:202)
	at org.apache.camel.component.cxf.CxfProducer.process(CxfProducer.java:141)
	at org.apache.camel.impl.SynchronousDelegateProducer.process(SynchronousDelegateProducer.java:61)
	at org.apache.camel.impl.InterceptSendToEndpoint$1.process(InterceptSendToEndpoint.java:144)
	at org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:61)
	at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:99)
	at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:56)
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 CxfProducer.java:331 ). 

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: http://camel.465427.n5.nabble.com/Error-using-apache-cxf-w-Camel-2-9-1-tc5560906.html



--
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

       

[jira] [Commented] (CAMEL-5084) Error when mocking all endpoints and using cxf

Posted by "Willem Jiang (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAMEL-5084?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13229942#comment-13229942 ] 

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: https://issues.apache.org/jira/browse/CAMEL-5084
>             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: hefiso-test.zip
>
>
> 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(CxfProducer.java:331)
> 	at org.apache.camel.component.cxf.CxfProducer.prepareBindingOperation(CxfProducer.java:202)
> 	at org.apache.camel.component.cxf.CxfProducer.process(CxfProducer.java:141)
> 	at org.apache.camel.impl.SynchronousDelegateProducer.process(SynchronousDelegateProducer.java:61)
> 	at org.apache.camel.impl.InterceptSendToEndpoint$1.process(InterceptSendToEndpoint.java:144)
> 	at org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:61)
> 	at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:99)
> 	at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:56)
> 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 CxfProducer.java:331 ). 
> 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: http://camel.465427.n5.nabble.com/Error-using-apache-cxf-w-Camel-2-9-1-tc5560906.html

--
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

       

[jira] [Resolved] (CAMEL-5084) Error when mocking all endpoints and using cxf

Posted by "Willem Jiang (Resolved) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-5084?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Willem Jiang resolved CAMEL-5084.
---------------------------------

       Resolution: Fixed
    Fix Version/s: 2.9.2

It should be resolve in camel 2.9.2, before that you can applied the patch of CAMEL-5089 yourself.
                
> Error when mocking all endpoints and using cxf
> ----------------------------------------------
>
>                 Key: CAMEL-5084
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5084
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-cxf
>    Affects Versions: 2.9.1
>         Environment: Generic windows
>            Reporter: Henrik Filtenborg Sørensen
>            Assignee: Willem Jiang
>             Fix For: 2.9.2
>
>         Attachments: hefiso-test.zip
>
>
> 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(CxfProducer.java:331)
> 	at org.apache.camel.component.cxf.CxfProducer.prepareBindingOperation(CxfProducer.java:202)
> 	at org.apache.camel.component.cxf.CxfProducer.process(CxfProducer.java:141)
> 	at org.apache.camel.impl.SynchronousDelegateProducer.process(SynchronousDelegateProducer.java:61)
> 	at org.apache.camel.impl.InterceptSendToEndpoint$1.process(InterceptSendToEndpoint.java:144)
> 	at org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:61)
> 	at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:99)
> 	at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:56)
> 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 CxfProducer.java:331 ). 
> 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: http://camel.465427.n5.nabble.com/Error-using-apache-cxf-w-Camel-2-9-1-tc5560906.html

--
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

       

[jira] [Assigned] (CAMEL-5084) Error when mocking all endpoints and using cxf

Posted by "Willem Jiang (Assigned) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-5084?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Willem Jiang reassigned CAMEL-5084:
-----------------------------------

    Assignee: Willem Jiang
    
> Error when mocking all endpoints and using cxf
> ----------------------------------------------
>
>                 Key: CAMEL-5084
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5084
>             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: hefiso-test.zip
>
>
> 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(CxfProducer.java:331)
> 	at org.apache.camel.component.cxf.CxfProducer.prepareBindingOperation(CxfProducer.java:202)
> 	at org.apache.camel.component.cxf.CxfProducer.process(CxfProducer.java:141)
> 	at org.apache.camel.impl.SynchronousDelegateProducer.process(SynchronousDelegateProducer.java:61)
> 	at org.apache.camel.impl.InterceptSendToEndpoint$1.process(InterceptSendToEndpoint.java:144)
> 	at org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:61)
> 	at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:99)
> 	at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:56)
> 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 CxfProducer.java:331 ). 
> 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: http://camel.465427.n5.nabble.com/Error-using-apache-cxf-w-Camel-2-9-1-tc5560906.html

--
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

       

[jira] [Updated] (CAMEL-5084) Error when mocking all endpoints and using cxf

Posted by "Henrik Filtenborg Sørensen (Updated JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-5084?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Henrik Filtenborg Sørensen updated CAMEL-5084:
----------------------------------------------

    Attachment: hefiso-test.zip

Example showing the error. Downgrade to version 2.9.0 removes the error.
                
> Error when mocking all endpoints and using cxf
> ----------------------------------------------
>
>                 Key: CAMEL-5084
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5084
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-cxf
>    Affects Versions: 2.9.1
>         Environment: Generic windows
>            Reporter: Henrik Filtenborg Sørensen
>         Attachments: hefiso-test.zip
>
>
> 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(CxfProducer.java:331)
> 	at org.apache.camel.component.cxf.CxfProducer.prepareBindingOperation(CxfProducer.java:202)
> 	at org.apache.camel.component.cxf.CxfProducer.process(CxfProducer.java:141)
> 	at org.apache.camel.impl.SynchronousDelegateProducer.process(SynchronousDelegateProducer.java:61)
> 	at org.apache.camel.impl.InterceptSendToEndpoint$1.process(InterceptSendToEndpoint.java:144)
> 	at org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:61)
> 	at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:99)
> 	at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:56)
> 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 CxfProducer.java:331 ). 
> 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: http://camel.465427.n5.nabble.com/Error-using-apache-cxf-w-Camel-2-9-1-tc5560906.html

--
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