Hi,

Because your two route are using same port , you need let the CXF endpoint 
share the same Bus to avoid shutting down the Jetty engine when you remove the 
route1.

<beans xmlns="http://www.springframework.org/schema/beans";  
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xmlns:cxf="http://camel.apache.org/schema/cxf";
xmlns:cxfcore="http://cxf.apache.org/core";
xmlns:http-conf="http://cxf.apache.org/transports/http/configuration";
xsi:schemaLocation="
http://www.springframework.org/schema/beans 
http://www.springframework.org/schema/beans/spring-beans.xsd
http://camel.apache.org/schema/cxf 
http://camel.apache.org/schema/cxf/camel-cxf.xsd
http://cxf.apache.org/transports/http/configuration 
http://cxf.apache.org/schemas/configuration/http-conf.xsd
http://camel.apache.org/schema/spring 
http://camel.apache.org/schema/spring/camel-spring.xsd
http://cxf.apache.org/core http://cxf.apache.org/schemas/core.xsd
">

<import resource="classpath:META-INF/cxf/cxf.xml" />  

<!-- configure the bus -->
<cxfcore:bus bus=“cxf1"/>



<camel:camelContext id="camelContext ">
<camel:route id="route1">
<camel:from
uri="cxf://http://0.0.0.0:5100/proxy1?dataFormat=MESSAGE&amp;bus=#cxf1&amp;wsdlURL=http://192.168.0.218:8500/ws?wsdl";
/>
<camel:to
uri="cxf://http://192.168.0.218:8500/ws?dataFormat=MESSAGE"; />
</camel:route>
<camel:route id="route2">
<camel:from
uri="cxf://http://0.0.0.0:5100/proxy2?dataFormat=MESSAGE&amp;bus=#cxf1&amp;wsdlURL=http://192.168.0.218:8500/ws?wsdl";
/>
<camel:to
uri="cxf://http://192.168.0.218:8500/ws?dataFormat=MESSAGE"; />
</camel:route>
</camel:camelContext>


--  
Willem Jiang

Red Hat, Inc.
Web: http://www.redhat.com
Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) 
(English)
          http://jnn.iteye.com (http://jnn.javaeye.com/) (Chinese)
Twitter: willemjiang  
Weibo: 姜宁willem





On Tuesday, November 5, 2013 at 11:03 AM, Ernest Lu wrote:

> Hi,  
>  
> *I'm using Camel 2.10.7*
>  
> *My Spring configuration file like this as follow*
>  
>  
> <?xml version="1.0" encoding="UTF-8"?>  
> <beans xmlns="http://www.springframework.org/schema/beans";  
> xmlns:jaxws="http://cxf.apache.org/jaxws";  
> xmlns:camel="http://camel.apache.org/schema/spring";  
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> xmlns:cxf="http://cxf.apache.org/core";
> xsi:schemaLocation="http://www.springframework.org/schema/beans  
> http://www.springframework.org/schema/beans/spring-beans.xsd
> http://cxf.apache.org/jaxws  
> http://cxf.apache.org/schemas/jaxws.xsd
> http://camel.apache.org/schema/spring  
> http://camel.apache.org/schema/spring/camel-spring.xsd  
> http://cxf.apache.org/core  
> http://cxf.apache.org/schemas/core.xsd";>
>  
> <camel:camelContext id="camelContext ">
> <camel:route id="route1">
> <camel:from
> uri="cxf://http://0.0.0.0:5100/proxy1?dataFormat=MESSAGE&amp;wsdlURL=http://192.168.0.218:8500/ws?wsdl";
> />
> <camel:to
> uri="cxf://http://192.168.0.218:8500/ws?dataFormat=MESSAGE"; />
> </camel:route>
> <camel:route id="route2">
> <camel:from
> uri="cxf://http://0.0.0.0:5100/proxy2?dataFormat=MESSAGE&amp;wsdlURL=http://192.168.0.218:8500/ws?wsdl";
> />
> <camel:to
> uri="cxf://http://192.168.0.218:8500/ws?dataFormat=MESSAGE"; />
> </camel:route>
> </camel:camelContext>
>  
> <bean id="webServiceTest" class="WebServiceTestImpl">
> <property name="camelContext" ref="camelContext" />
> </bean>
> <jaxws:endpoint id="webServiceTestEndpoint"
> implementor="#webServiceTest" address="http://0.0.0.0:8100/service"; />
>  
> </beans>
>  
>  
> *I remove the route1 by Web Service,but an exception is thrown as follow.*
>  
> 2013-11-05 10:55:17 INFO org.apache.camel.impl.DefaultShutdownStrategy:165
> --> Starting to graceful shutdown 1 routes (timeout 300 seconds)  
> 2013-11-05 10:55:17 INFO  
> org.eclipse.jetty.server.handler.ContextHandler:698 --> stopped
> o.e.j.s.h.ContextHandler{,null}  
> 2013-11-05 10:55:17 INFO org.apache.camel.impl.DefaultShutdownStrategy:561
> --> Route: route1 shutdown complete, was consuming from:
> Endpoint[cxf://http://0.0.0.0:5100/proxy1?dataFormat=MESSAGE&wsdlURL=http%3A%2F%2F192.168.0.218%3A8500%2Fws%3Fwsdl]
>   
> 2013-11-05 10:55:17 INFO org.apache.camel.impl.DefaultShutdownStrategy:210
> --> Graceful shutdown of 1 routes completed in 0 seconds  
> 2013-11-05 10:55:17 INFO org.apache.camel.spring.SpringCamelContext:1880
> --> Route: route1 is stopped, was consuming from:
> Endpoint[cxf://http://0.0.0.0:5100/proxy1?dataFormat=MESSAGE&wsdlURL=http%3A%2F%2F192.168.0.218%3A8500%2Fws%3Fwsdl]
> 2013-11-05 10:55:17 INFO org.apache.camel.component.cxf.CxfEndpoint:844 -->
> shutdown the bus ... org.apache.cxf.bus.spring.SpringBus@734d246  
> 2013-11-05 10:55:17 INFO  
> org.eclipse.jetty.server.handler.ContextHandler:698 --> stopped
> o.e.j.s.h.ContextHandler{,null}  
> 2013-11-05 10:55:17 INFO  
> org.eclipse.jetty.server.handler.ContextHandler:698 --> stopped
> o.e.j.s.h.ContextHandler{,null}  
> 2013-11-05 10:55:17 WARN  
> org.eclipse.jetty.util.component.AbstractLifeCycle:199 --> FAILED
> qtp1950076528{8<=4<=5/254,4}#FAILED: java.lang.InterruptedException: sleep
> interrupted  
> java.lang.InterruptedException: sleep interrupted  
> at java.lang.Thread.sleep(Native Method)  
> at
> org.eclipse.jetty.util.thread.QueuedThreadPool.doStop(QueuedThreadPool.java:134)
>   
> at
> org.eclipse.jetty.util.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:84)
>   
> at
> org.eclipse.jetty.util.component.AggregateLifeCycle.doStop(AggregateLifeCycle.java:59)
>   
> at
> org.eclipse.jetty.server.handler.AbstractHandler.doStop(AbstractHandler.java:64)
>   
> at
> org.eclipse.jetty.server.handler.HandlerWrapper.doStop(HandlerWrapper.java:102)
>   
> at org.eclipse.jetty.server.Server.doStop(Server.java:322)  
> at
> org.eclipse.jetty.util.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:84)
>   
> at
> org.apache.cxf.transport.http_jetty.JettyHTTPServerEngine.stop(JettyHTTPServerEngine.java:698)
>   
> at
> org.apache.cxf.transport.http_jetty.JettyHTTPServerEngineFactory.destroyForPort(JettyHTTPServerEngineFactory.java:307)
>   
> at
> org.apache.cxf.transport.http_jetty.JettyHTTPServerEngine.shutdown(JettyHTTPServerEngine.java:182)
>   
> at
> org.apache.cxf.transport.http_jetty.JettyHTTPServerEngineFactory.postShutdown(JettyHTTPServerEngineFactory.java:358)
>   
> at
> org.apache.cxf.transport.http_jetty.JettyHTTPServerEngineFactory$JettyBusLifeCycleListener.postShutdown(JettyHTTPServerEngineFactory.java:155)
>   
> at
> org.apache.cxf.bus.managers.CXFBusLifeCycleManager.postShutdown(CXFBusLifeCycleManager.java:107)
>   
> at org.apache.cxf.bus.CXFBusImpl.shutdown(CXFBusImpl.java:255)  
> at
> org.apache.camel.component.cxf.CxfEndpoint.doStop(CxfEndpoint.java:845)  
> at
> org.apache.camel.support.ServiceSupport.stop(ServiceSupport.java:102)  
> at
> org.apache.camel.util.ServiceHelper.stopService(ServiceHelper.java:112)  
> at
> org.apache.camel.util.ServiceHelper.stopAndShutdownServices(ServiceHelper.java:180)
>   
> at
> org.apache.camel.util.ServiceHelper.stopAndShutdownServices(ServiceHelper.java:151)
>   
> at
> org.apache.camel.impl.RouteService.doShutdown(RouteService.java:262)  
> at
> org.apache.camel.support.ChildServiceSupport.shutdown(ChildServiceSupport.java:109)
>   
> at
> org.apache.camel.impl.DefaultCamelContext.shutdownRouteService(DefaultCamelContext.java:1895)
>   
> at
> org.apache.camel.impl.DefaultCamelContext.removeRoute(DefaultCamelContext.java:845)
>   
> at WebServiceTestImpl.removeRoute(WebServiceTestImpl.java:20)  
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 
>  
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>   
> at java.lang.reflect.Method.invoke(Method.java:597)  
> at
> org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:180)
>   
> at
> org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:96)
>   
> at
> org.apache.cxf.jaxws.AbstractJAXWSMethodInvoker.invoke(AbstractJAXWSMethodInvoker.java:178)
>   
> at
> org.apache.cxf.jaxws.JAXWSMethodInvoker.invoke(JAXWSMethodInvoker.java:66)  
> at
> org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:75)
>   
> at
> org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:57)
>   
> at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)  
> at
> java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)  
> at java.util.concurrent.FutureTask.run(FutureTask.java:138)  
> at
> org.apache.cxf.workqueue.SynchronousExecutor.execute(SynchronousExecutor.java:37)
>   
> at
> org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:106)
>   
> at
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:262)
>   
> at
> org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)
>   
> at
> org.apache.cxf.transport.http_jetty.JettyHTTPDestination.serviceRequest(JettyHTTPDestination.java:348)
>   
> at
> org.apache.cxf.transport.http_jetty.JettyHTTPDestination.doService(JettyHTTPDestination.java:312)
>   
> at
> org.apache.cxf.transport.http_jetty.JettyHTTPHandler.handle(JettyHTTPHandler.java:72)
>   
> at
> org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:943)
>   
> at
> org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:879)
>   
> at
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117) 
>  
> at
> org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:250)
>   
> at
> org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:110)
>   
> at org.eclipse.jetty.server.Server.handle(Server.java:349)  
> at
> org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:441)
>   
> at
> org.eclipse.jetty.server.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:919)
>   
> at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:582)  
> at
> org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:218)  
> at
> org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:51)
>   
> at
> org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:586)
>   
> at
> org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:44)
>   
> at
> org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:598)
>   
> at
> org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:533)
>   
> at java.lang.Thread.run(Thread.java:662)  
> 2013-11-05 10:55:17 WARN  
> org.eclipse.jetty.util.component.AbstractLifeCycle:199 --> FAILED
> org.eclipse.jetty.server.Server@1efd9b97: java.lang.InterruptedException:
> sleep interrupted  
> java.lang.InterruptedException: sleep interrupted  
> at java.lang.Thread.sleep(Native Method)  
> at
> org.eclipse.jetty.util.thread.QueuedThreadPool.doStop(QueuedThreadPool.java:134)
>   
> at
> org.eclipse.jetty.util.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:84)
>   
> at
> org.eclipse.jetty.util.component.AggregateLifeCycle.doStop(AggregateLifeCycle.java:59)
>   
> at
> org.eclipse.jetty.server.handler.AbstractHandler.doStop(AbstractHandler.java:64)
>   
> at
> org.eclipse.jetty.server.handler.HandlerWrapper.doStop(HandlerWrapper.java:102)
>   
> at org.eclipse.jetty.server.Server.doStop(Server.java:322)  
> at
> org.eclipse.jetty.util.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:84)
>   
> at
> org.apache.cxf.transport.http_jetty.JettyHTTPServerEngine.stop(JettyHTTPServerEngine.java:698)
>   
> at
> org.apache.cxf.transport.http_jetty.JettyHTTPServerEngineFactory.destroyForPort(JettyHTTPServerEngineFactory.java:307)
>   
> at
> org.apache.cxf.transport.http_jetty.JettyHTTPServerEngine.shutdown(JettyHTTPServerEngine.java:182)
>   
> at
> org.apache.cxf.transport.http_jetty.JettyHTTPServerEngineFactory.postShutdown(JettyHTTPServerEngineFactory.java:358)
>   
> at
> org.apache.cxf.transport.http_jetty.JettyHTTPServerEngineFactory$JettyBusLifeCycleListener.postShutdown(JettyHTTPServerEngineFactory.java:155)
>   
> at
> org.apache.cxf.bus.managers.CXFBusLifeCycleManager.postShutdown(CXFBusLifeCycleManager.java:107)
>   
> at org.apache.cxf.bus.CXFBusImpl.shutdown(CXFBusImpl.java:255)  
> at
> org.apache.camel.component.cxf.CxfEndpoint.doStop(CxfEndpoint.java:845)  
> at
> org.apache.camel.support.ServiceSupport.stop(ServiceSupport.java:102)  
> at
> org.apache.camel.util.ServiceHelper.stopService(ServiceHelper.java:112)  
> at
> org.apache.camel.util.ServiceHelper.stopAndShutdownServices(ServiceHelper.java:180)
>   
> at
> org.apache.camel.util.ServiceHelper.stopAndShutdownServices(ServiceHelper.java:151)
>   
> at
> org.apache.camel.impl.RouteService.doShutdown(RouteService.java:262)  
> at
> org.apache.camel.support.ChildServiceSupport.shutdown(ChildServiceSupport.java:109)
>   
> at
> org.apache.camel.impl.DefaultCamelContext.shutdownRouteService(DefaultCamelContext.java:1895)
>   
> at
> org.apache.camel.impl.DefaultCamelContext.removeRoute(DefaultCamelContext.java:845)
>   
> at WebServiceTestImpl.removeRoute(WebServiceTestImpl.java:20)  
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 
>  
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>   
> at java.lang.reflect.Method.invoke(Method.java:597)  
> at
> org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:180)
>   
> at
> org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:96)
>   
> at
> org.apache.cxf.jaxws.AbstractJAXWSMethodInvoker.invoke(AbstractJAXWSMethodInvoker.java:178)
>   
> at
> org.apache.cxf.jaxws.JAXWSMethodInvoker.invoke(JAXWSMethodInvoker.java:66)  
> at
> org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:75)
>   
> at
> org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:57)
>   
> at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)  
> at
> java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)  
> at java.util.concurrent.FutureTask.run(FutureTask.java:138)  
> at
> org.apache.cxf.workqueue.SynchronousExecutor.execute(SynchronousExecutor.java:37)
>   
> at
> org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:106)
>   
> at
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:262)
>   
> at
> org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)
>   
> at
> org.apache.cxf.transport.http_jetty.JettyHTTPDestination.serviceRequest(JettyHTTPDestination.java:348)
>   
> at
> org.apache.cxf.transport.http_jetty.JettyHTTPDestination.doService(JettyHTTPDestination.java:312)
>   
> at
> org.apache.cxf.transport.http_jetty.JettyHTTPHandler.handle(JettyHTTPHandler.java:72)
>   
> at
> org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:943)
>   
> at
> org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:879)
>   
> at
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117) 
>  
> at
> org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:250)
>   
> at
> org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:110)
>   
> at org.eclipse.jetty.server.Server.handle(Server.java:349)  
> at
> org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:441)
>   
> at
> org.eclipse.jetty.server.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:919)
>   
> at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:582)  
> at
> org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:218)  
> at
> org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:51)
>   
> at
> org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:586)
>   
> at
> org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:44)
>   
> at
> org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:598)
>   
> at
> org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:533)
>   
> at java.lang.Thread.run(Thread.java:662)  
> java.lang.InterruptedException: sleep interrupted  
> at java.lang.Thread.sleep(Native Method)  
> at
> org.eclipse.jetty.util.thread.QueuedThreadPool.doStop(QueuedThreadPool.java:134)
>   
> at
> org.eclipse.jetty.util.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:84)
>   
> at
> org.eclipse.jetty.util.component.AggregateLifeCycle.doStop(AggregateLifeCycle.java:59)
>   
> at
> org.eclipse.jetty.server.handler.AbstractHandler.doStop(AbstractHandler.java:64)
>   
> at
> org.eclipse.jetty.server.handler.HandlerWrapper.doStop(HandlerWrapper.java:102)
>   
> at org.eclipse.jetty.server.Server.doStop(Server.java:322)  
> at
> org.eclipse.jetty.util.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:84)
>   
> at
> org.apache.cxf.transport.http_jetty.JettyHTTPServerEngine.stop(JettyHTTPServerEngine.java:698)
>   
> at
> org.apache.cxf.transport.http_jetty.JettyHTTPServerEngineFactory.destroyForPort(JettyHTTPServerEngineFactory.java:307)
>   
> at
> org.apache.cxf.transport.http_jetty.JettyHTTPServerEngine.shutdown(JettyHTTPServerEngine.java:182)
>   
> at
> org.apache.cxf.transport.http_jetty.JettyHTTPServerEngineFactory.postShutdown(JettyHTTPServerEngineFactory.java:358)
>   
> at
> org.apache.cxf.transport.http_jetty.JettyHTTPServerEngineFactory$JettyBusLifeCycleListener.postShutdown(JettyHTTPServerEngineFactory.java:155)
>   
> at
> org.apache.cxf.bus.managers.CXFBusLifeCycleManager.postShutdown(CXFBusLifeCycleManager.java:107)
>   
> at org.apache.cxf.bus.CXFBusImpl.shutdown(CXFBusImpl.java:255)  
> at
> org.apache.camel.component.cxf.CxfEndpoint.doStop(CxfEndpoint.java:845)  
> at
> org.apache.camel.support.ServiceSupport.stop(ServiceSupport.java:102)  
> at
> org.apache.camel.util.ServiceHelper.stopService(ServiceHelper.java:112)  
> at
> org.apache.camel.util.ServiceHelper.stopAndShutdownServices(ServiceHelper.java:180)
>   
> at
> org.apache.camel.util.ServiceHelper.stopAndShutdownServices(ServiceHelper.java:151)
>   
> at
> org.apache.camel.impl.RouteService.doShutdown(RouteService.java:262)  
> at
> org.apache.camel.support.ChildServiceSupport.shutdown(ChildServiceSupport.java:109)
>   
> at
> org.apache.camel.impl.DefaultCamelContext.shutdownRouteService(DefaultCamelContext.java:1895)
>   
> at
> org.apache.camel.impl.DefaultCamelContext.removeRoute(DefaultCamelContext.java:845)
>   
> at WebServiceTestImpl.removeRoute(WebServiceTestImpl.java:20)  
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 
>  
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>   
> at java.lang.reflect.Method.invoke(Method.java:597)  
> at
> org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:180)
>   
> at
> org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:96)
>   
> at
> org.apache.cxf.jaxws.AbstractJAXWSMethodInvoker.invoke(AbstractJAXWSMethodInvoker.java:178)
>   
> at
> org.apache.cxf.jaxws.JAXWSMethodInvoker.invoke(JAXWSMethodInvoker.java:66)  
> at
> org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:75)
>   
> at
> org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:57)
>   
> at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)  
> at
> java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)  
> at java.util.concurrent.FutureTask.run(FutureTask.java:138)  
> at
> org.apache.cxf.workqueue.SynchronousExecutor.execute(SynchronousExecutor.java:37)
>   
> at
> org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:106)
>   
> at
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:262)
>   
> at
> org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)
>   
> at
> org.apache.cxf.transport.http_jetty.JettyHTTPDestination.serviceRequest(JettyHTTPDestination.java:348)
>   
> at
> org.apache.cxf.transport.http_jetty.JettyHTTPDestination.doService(JettyHTTPDestination.java:312)
>   
> at
> org.apache.cxf.transport.http_jetty.JettyHTTPHandler.handle(JettyHTTPHandler.java:72)
>   
> at
> org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:943)
>   
> at
> org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:879)
>   
> at
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117) 
>  
> at
> org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:250)
>   
> at
> org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:110)
>   
> at org.eclipse.jetty.server.Server.handle(Server.java:349)  
> at
> org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:441)
>   
> at
> org.eclipse.jetty.server.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:919)
>   
> at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:582)  
> at
> org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:218)  
> at
> org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:51)
>   
> at
> org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:586)
>   
> at
> org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:44)
>   
> at
> org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:598)
>   
> at
> org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:533)
>   
> at java.lang.Thread.run(Thread.java:662)  
> 2013-11-05 10:55:17 INFO  
> org.apache.cxf.bus.spring.BusApplicationContext:1002 --> Closing
> org.apache.cxf.bus.spring.BusApplicationContext@593f5a2f: startup date [Tue
> Nov 05 10:54:55 CST 2013]; parent:
> org.springframework.context.support.ClassPathXmlApplicationContext@6b4da8f4  
> 2013-11-05 10:55:17 INFO  
> org.springframework.beans.factory.support.DefaultListableBeanFactory:422 -->
> Destroying singletons in
> org.springframework.beans.factory.support.DefaultListableBeanFactory@2bbef4c6:
> defining beans []; parent:
> org.springframework.beans.factory.support.DefaultListableBeanFactory@49f10a67 
>  
> 2013-11-05 10:55:17 INFO  
> org.apache.cxf.bus.spring.BusApplicationContext:1002 --> Closing
> org.apache.cxf.bus.spring.BusApplicationContext@79fb80c9: startup date [Tue
> Nov 05 10:54:55 CST 2013]; parent:
> org.springframework.context.support.ClassPathXmlApplicationContext@6b4da8f4  
> 2013-11-05 10:55:17 INFO  
> org.springframework.beans.factory.support.DefaultListableBeanFactory:422 -->
> Destroying singletons in
> org.springframework.beans.factory.support.DefaultListableBeanFactory@19035ff9:
> defining beans []; parent:
> org.springframework.beans.factory.support.DefaultListableBeanFactory@49f10a67 
>  
> 2013-11-05 10:55:17 INFO  
> org.apache.cxf.bus.spring.BusApplicationContext:1002 --> Closing
> org.apache.cxf.bus.spring.BusApplicationContext@744589eb: startup date [Tue
> Nov 05 10:54:55 CST 2013]; parent:
> org.springframework.context.support.ClassPathXmlApplicationContext@6b4da8f4  
> 2013-11-05 10:55:17 INFO  
> org.springframework.beans.factory.support.DefaultListableBeanFactory:422 -->
> Destroying singletons in
> org.springframework.beans.factory.support.DefaultListableBeanFactory@5673cc11:
> defining beans []; parent:
> org.springframework.beans.factory.support.DefaultListableBeanFactory@49f10a67 
>  
> 2013-11-05 10:55:17 INFO org.apache.camel.spring.SpringCamelContext:1880
> --> Route: route1 is shutdown and removed, was consuming from:
> Endpoint[cxf://http://0.0.0.0:5100/proxy1?dataFormat=MESSAGE&wsdlURL=http%3A%2F%2F192.168.0.218%3A8500%2Fws%3Fwsdl]
>   
> 2013-11-05 10:55:17 WARN org.apache.cxf.phase.PhaseInterceptorChain:443 -->
> Interceptor for
> {http://test.myapp.com/}WebServiceTest#{http://test.myapp.com/}removeRoute
> has thrown exception, unwinding now  
> org.apache.cxf.interceptor.Fault  
> at
> org.apache.cxf.interceptor.AbstractOutDatabindingInterceptor.writeParts(AbstractOutDatabindingInterceptor.java:103)
>   
> at
> org.apache.cxf.interceptor.BareOutInterceptor.handleMessage(BareOutInterceptor.java:68)
>   
> at
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:262)
>   
> at
> org.apache.cxf.interceptor.OutgoingChainInterceptor.handleMessage(OutgoingChainInterceptor.java:77)
>   
> at
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:262)
>   
> at
> org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)
>   
> at
> org.apache.cxf.transport.http_jetty.JettyHTTPDestination.serviceRequest(JettyHTTPDestination.java:348)
>   
> at
> org.apache.cxf.transport.http_jetty.JettyHTTPDestination.doService(JettyHTTPDestination.java:312)
>   
> at
> org.apache.cxf.transport.http_jetty.JettyHTTPHandler.handle(JettyHTTPHandler.java:72)
>   
> at
> org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:943)
>   
> at
> org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:879)
>   
> at
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117) 
>  
> at
> org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:250)
>   
> at
> org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:110)
>   
> at org.eclipse.jetty.server.Server.handle(Server.java:349)  
> at
> org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:441)
>   
> at
> org.eclipse.jetty.server.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:919)
>   
> at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:582)  
> at
> org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:218)  
> at
> org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:51)
>   
> at
> org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:586)
>   
> at
> org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:44)
>   
> at
> org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:598)
>   
> at
> org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:533)
>   
> at java.lang.Thread.run(Thread.java:662)  
> Caused by: com.ctc.wstx.exc.WstxIOException: null  
> at com.ctc.wstx.sw.BaseStreamWriter.flush(BaseStreamWriter.java:261)  
> at
> org.apache.cxf.interceptor.AbstractOutDatabindingInterceptor.writeParts(AbstractOutDatabindingInterceptor.java:101)
>   
> ... 24 more  
> Caused by: org.eclipse.jetty.io.EofException  
> at org.eclipse.jetty.server.HttpOutput.write(HttpOutput.java:154)  
> at org.eclipse.jetty.server.HttpOutput.write(HttpOutput.java:101)  
> at
> org.apache.cxf.io.AbstractWrappedOutputStream.write(AbstractWrappedOutputStream.java:51)
>   
> at com.ctc.wstx.io.UTF8Writer.flush(UTF8Writer.java:100)  
> at
> com.ctc.wstx.sw.BufferingXmlWriter.flush(BufferingXmlWriter.java:225)  
> at com.ctc.wstx.sw.BaseStreamWriter.flush(BaseStreamWriter.java:259)  
> ... 25 more  
> 2013-11-05 10:55:17 WARN org.apache.cxf.phase.PhaseInterceptorChain:443 -->
> Interceptor for
> {http://test.myapp.com/}WebServiceTest#{http://test.myapp.com/}removeRoute
> has thrown exception, unwinding now  
> org.apache.cxf.binding.soap.SoapFault: Error writing to XMLStreamWriter.  
> at
> org.apache.cxf.binding.soap.interceptor.SoapOutInterceptor$SoapOutEndingInterceptor.handleMessage(SoapOutInterceptor.java:289)
>   
> at
> org.apache.cxf.binding.soap.interceptor.SoapOutInterceptor$SoapOutEndingInterceptor.handleMessage(SoapOutInterceptor.java:271)
>   
> at
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:262)
>   
> at
> org.apache.cxf.interceptor.AbstractFaultChainInitiatorObserver.onMessage(AbstractFaultChainInitiatorObserver.java:113)
>   
> at
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:322)
>   
> at
> org.apache.cxf.interceptor.OutgoingChainInterceptor.handleMessage(OutgoingChainInterceptor.java:77)
>   
> at
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:262)
>   
> at
> org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)
>   
> at
> org.apache.cxf.transport.http_jetty.JettyHTTPDestination.serviceRequest(JettyHTTPDestination.java:348)
>   
> at
> org.apache.cxf.transport.http_jetty.JettyHTTPDestination.doService(JettyHTTPDestination.java:312)
>   
> at
> org.apache.cxf.transport.http_jetty.JettyHTTPHandler.handle(JettyHTTPHandler.java:72)
>   
> at
> org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:943)
>   
> at
> org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:879)
>   
> at
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117) 
>  
> at
> org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:250)
>   
> at
> org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:110)
>   
> at org.eclipse.jetty.server.Server.handle(Server.java:349)  
> at
> org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:441)
>   
> at
> org.eclipse.jetty.server.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:919)
>   
> at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:582)  
> at
> org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:218)  
> at
> org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:51)
>   
> at
> org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:586)
>   
> at
> org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:44)
>   
> at
> org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:598)
>   
> at
> org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:533)
>   
> at java.lang.Thread.run(Thread.java:662)  
> Caused by: com.ctc.wstx.exc.WstxIOException: null  
> at
> com.ctc.wstx.sw.BaseStreamWriter._finishDocument(BaseStreamWriter.java:1406)  
> at
> com.ctc.wstx.sw.BaseStreamWriter.writeEndDocument(BaseStreamWriter.java:536)  
> at
> org.apache.cxf.binding.soap.interceptor.SoapOutInterceptor$SoapOutEndingInterceptor.handleMessage(SoapOutInterceptor.java:283)
>   
> ... 26 more  
> Caused by: org.eclipse.jetty.io.EofException  
> at org.eclipse.jetty.server.HttpOutput.write(HttpOutput.java:154)  
> at org.eclipse.jetty.server.HttpOutput.write(HttpOutput.java:101)  
> at
> org.apache.cxf.io.AbstractWrappedOutputStream.write(AbstractWrappedOutputStream.java:51)
>   
> at com.ctc.wstx.io.UTF8Writer.flush(UTF8Writer.java:100)  
> at
> com.ctc.wstx.sw.BufferingXmlWriter.flush(BufferingXmlWriter.java:225)  
> at
> com.ctc.wstx.sw.BufferingXmlWriter.close(BufferingXmlWriter.java:198)  
> at
> com.ctc.wstx.sw.BaseStreamWriter._finishDocument(BaseStreamWriter.java:1404)  
> ... 28 more  
>  
>  
>  
>  
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/cxf-bus-tp5742573p5742626.html
> Sent from the Camel - Users mailing list archive at Nabble.com 
> (http://Nabble.com).



Reply via email to