[ 
https://issues.apache.org/activemq/browse/SMX4-195?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=48829#action_48829
 ] 

Willem Jiang commented on SMX4-195:
-----------------------------------

Hi Gert,

I did some chang on the camel-cxf  CAMEL-1275 and it broken the 
WSAddressingTest.WSAddressingTest
The fix it to set the defaultBus to null.

Gert, please apply it when you got time ;)

Index: 
src/test/java/org/apache/servicemix/camel/nmr/ws/addressing/WSAddressingTest.java
===================================================================
--- 
src/test/java/org/apache/servicemix/camel/nmr/ws/addressing/WSAddressingTest.java
   (revision 67364)
+++ 
src/test/java/org/apache/servicemix/camel/nmr/ws/addressing/WSAddressingTest.java
   (working copy)
@@ -176,6 +176,7 @@
         verified = null;
         messageIDs.clear();
         super.tearDown();
+        BusFactory.setDefaultBus(null);
         Thread.sleep(5000);
     }

> servicemix-camel unit tests fail when using latest SNAPSHOT of the Camel 1.5 
> branch
> -----------------------------------------------------------------------------------
>
>                 Key: SMX4-195
>                 URL: https://issues.apache.org/activemq/browse/SMX4-195
>             Project: ServiceMix 4
>          Issue Type: Bug
>    Affects Versions: 4.0-m1
>            Reporter: Gert Vanthienen
>            Assignee: Gert Vanthienen
>             Fix For: 4.0-m2
>
>
> When running the features' servicemix-camel component unit tests with the 
> latest SNAPSHOT of the Camel 1.5.x branch, several tests fail with 
> {noformat}
> java.lang.NullPointerException
>       at 
> org.apache.camel.component.cxf.transport.CamelDestination.activate(CamelDestination.java:100)
>       at 
> org.apache.cxf.transport.AbstractObservable.setMessageObserver(AbstractObservable.java:48)
>       at 
> org.apache.cxf.binding.AbstractBindingFactory.addListener(AbstractBindingFactory.java:166)
>       at 
> org.apache.cxf.binding.soap.SoapBindingFactory.addListener(SoapBindingFactory.java:734)
>       at org.apache.cxf.endpoint.ServerImpl.start(ServerImpl.java:122)
>       at 
> org.apache.camel.component.cxf.CxfConsumer.doStart(CxfConsumer.java:108)
>         ..
> {noformat}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to