[ 
https://issues.apache.org/activemq/browse/SM-1422?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ron Gavlin reopened SM-1422:
----------------------------

    Regression: [Regression]

The fix for this issue is causing a NullPointerException in 
CxfBcConsumer.stop() in the following code snippet.

     /**
      * @return the wsdl
@@ -228,6 +231,10 @@
     @Override
     public void stop() throws Exception {
         server.stop();
+        if (ei.getAddress().startsWith("https")) {
+            bus.shutdown(false);
+            bus = null;
+        }
         super.stop();
     }

The NPE occurs when a CXF-BC SU is undeployed, the SU contains a consumer 
endpoint, and the CXF bus is configured to use the jms transport.

When the jms transport is used, ei.getAddress()is null. 

In order to fix the problem, an (ei.getAddress() == null) check must be 
performed before the startsWith() method is invoked.

Please fix ASAP.

Thanks,

- Ron

> Jetty engine not stopped when CXF BC is undeployed
> --------------------------------------------------
>
>                 Key: SM-1422
>                 URL: https://issues.apache.org/activemq/browse/SM-1422
>             Project: ServiceMix
>          Issue Type: Bug
>          Components: servicemix-cxf-bc
>    Affects Versions: 3.2.1
>         Environment: Win XP, IONA FUSE 3.3.1
>            Reporter: Doug Harmon
>            Assignee: Freeman Fang
>
> I'm able to successfully configure a CXF BC SU consumer to listen for 
> requests via SSL. I set the busCfg attribute to a configuration file that is 
> similar to the one found on the Apache CXF site[1] that configures the jetty 
> engine to accept SSL requests. However, after undeploying my service assembly 
> containing this su, the jetty engine is still running on the configured SSL 
> port (my WSDL is no longer available as expected, but jetty is still 
> listening on the port). Therefore all subsequent redeployments of this 
> service assembly fail with the error: "Jetty server: Address already in use: 
> JVM_BIND". I'm forced to stop and start the servicemix JVM in order to deploy 
> and changes that I make to my service assembly.
> After undeploying the SA containing the CXF BC, the jetty engine should also 
> be shutdown.
> [1]http://cwiki.apache.org/CXF20DOC/standalone-http-transport.html

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