camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Willem Jiang <willem.ji...@gmail.com>
Subject Re: getting error while calling external web service from camel route
Date Wed, 25 Apr 2012 14:19:04 GMT
The stack trace is thrown from the server side not from the camel-cxf 
producer.

Can you double check it?


On 3/29/12 8:00 PM, bhushand wrote:
> Hello
>    	I am trying to use cxfEndpoint to call external web service.
>
> <cxf:cxfEndpoint
>          id="myService"
>
> address="http://remote:4100/domain/ExternalService/services/ExternalService"
>
> wsdlURL="http://remote:4100/domain/ExternalService/services/ExternalService/services/ExternalService.wsdl"
>          serviceName="s2:ExternalServiceService"
>          endpointName="s2:ExternalService"
>          xmlns:s2="http://api.services.test.my.com">
>          <cxf:properties>
>              <entry key="dataFormat" value="MESSAGE"/>
>              <entry key="defaultOperationName" value="getDocumentReq"/>
>          </cxf:properties>
>      </cxf:cxfEndpoint>
>
> I have following in camel route
>
> <camel:from uri="direct:startExternalService"></camel:from>
> <camel:to
> uri="bean:externalServiceReqFormationClass?method=getReqForExternalService"></camel:to>
> <camel:to uri="cxf:bean:myService"></camel:to>
>
> Here ‘externalServiceReqFormationClass’ is spring bean which has
> getReqForExternalService() method to generate request for externalService.
> It is returning String.
> When I invoke web service, I am getting following error:
>
> org.apache.cxf.interceptor.Fault: Exception occurred during execution on the
> exchange: Exchange[Some XML String]
>
> at
> org.apache.cxf.service.invoker.AbstractInvoker.createFault(AbstractInvoker.java:148)
> 	at
> org.apache.cxf.jaxws.AbstractJAXWSMethodInvoker.createFault(AbstractJAXWSMethodInvoker.java:83)
> 	at
> org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:114)
> 	at
> org.apache.cxf.jaxws.JAXWSMethodInvoker.invoke(JAXWSMethodInvoker.java:55)
> 	at
> org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:68)
> 	at
> org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:58)
> 	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:452)
> 	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:314)
> 	at java.util.concurrent.FutureTask.run(FutureTask.java:149)
> 	at
> org.apache.cxf.workqueue.SynchronousExecutor.execute(SynchronousExecutor.java:37)
> 	at
> org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:98)
> 	at
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:236)
> 	at
> org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:104)
> 	at
> org.apache.cxf.transport.servlet.ServletDestination.invoke(ServletDestination.java:99)
> 	at
> org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:452)
> 	at
> org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:196)
> 	at
> org.apache.cxf.transport.servlet.AbstractCXFServlet.invoke(AbstractCXFServlet.java:220)
> 	at
> org.apache.cxf.transport.servlet.AbstractCXFServlet.doPost(AbstractCXFServlet.java:153)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:738)
> 	at
> org.apache.cxf.transport.servlet.AbstractCXFServlet.service(AbstractCXFServlet.java:211)
> 	at
> com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1449)
> 	at
> com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:790)
> 	at
> com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:443)
> 	at
> com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:175)
> 	at
> com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:91)
> 	at
> com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:859)
> 	at
> com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1557)
> 	at
> com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:173)
> 	at
> com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:455)
> 	at
> com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:384)
> 	at
> com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:272)
> 	at
> com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214)
> 	at
> com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113)
> 	at
> com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
> 	at
> com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
> 	at
> com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
> 	at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)
> 	at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:202)
> 	at
> com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:766)
> 	at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:896)
> 	at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1527)
>
> Please help me. Thanks in advance.
>
> --Bhushan
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/getting-error-while-calling-external-web-service-from-camel-route-tp5603573p5603573.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>


-- 
Willem
----------------------------------
CamelOne 2012 Conference, May 15-16, 2012: http://camelone.com
FuseSource
Web: http://www.fusesource.com
Blog:    http://willemjiang.blogspot.com (English)
          http://jnn.javaeye.com (Chinese)
Twitter: willemjiang
Weibo: willemjiang

Mime
View raw message