You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicemix.apache.org by "Freeman Fang (JIRA)" <ji...@apache.org> on 2010/08/06 03:37:21 UTC

[jira] Resolved: (SMXCOMP-786) cxfse proxy does not catch wsdl defined faults

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

Freeman Fang resolved SMXCOMP-786.
----------------------------------

    Resolution: Working as Designed

> cxfse proxy does not catch wsdl defined faults
> ----------------------------------------------
>
>                 Key: SMXCOMP-786
>                 URL: https://issues.apache.org/activemq/browse/SMXCOMP-786
>             Project: ServiceMix Components
>          Issue Type: Bug
>          Components: servicemix-cxf-se
>    Affects Versions: servicemix-cxf-se-2010.01
>         Environment: Servicemix 4.2.0-fuse-02-00 
>            Reporter: Vinh Hoang
>            Assignee: Freeman Fang
>         Attachments: proxy-w-fault.zip
>
>
> I'm not sure why this is happening but I can't not receive the proper fault over my cxfse proxy.  My topology looks like this hello-bc ==> hello-se ==> person-se.  So when person-se throws an UnknownPersonFault, the hello-se only sees it as a JBIFault. 
> The test case is attached
> This is what i get in the log ( you can see that PersonelService throws the UnknownPersonFault but then the HelloWorldService rethrows that as JBIFault, I did do a try and catch for UnknowPersonFault)
> 17:09:15,502 | INFO  | -cxf-se-thread-3 | PhaseInterceptorChain            | ache.cxf.common.logging.LogUtils  365 | Application {http://proto.mycompany.com/}PersonelService#{http://proto.mycompany.com}GetPerson has thrown exception, unwinding now: com.mycompany.proto.UnknownPersonFault: BDJDKDKE
> 17:09:15,607 | WARN  | -cxf-se-thread-2 | PhaseInterceptorChain            | ache.cxf.common.logging.LogUtils  365 | Application {http://proto.mycompany.com/proxy}HelloWorldService#{http://proto.mycompany.com/proxy}sayHi has thrown exception, unwinding now
> org.apache.cxf.interceptor.Fault: org.apache.cxf.binding.jbi.JBIFault: faultstring
> 	at org.apache.cxf.service.invoker.AbstractInvoker.createFault(AbstractInvoker.java:155)
> 	at org.apache.cxf.jaxws.AbstractJAXWSMethodInvoker.createFault(AbstractJAXWSMethodInvoker.java:86)
> 	at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:121)
> 	at org.apache.cxf.jaxws.JAXWSMethodInvoker.invoke(JAXWSMethodInvoker.java:60)
> 	at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:75)
> 	at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:58)
> 	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
> 	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:243)
> 	at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:110)
> 	at org.apache.cxf.transport.jbi.JBIDispatcherUtil.dispatch(JBIDispatcherUtil.java:156)
> 	at org.apache.servicemix.cxfse.CxfSeEndpoint.process(CxfSeEndpoint.java:455)
> 	at org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:617)
> 	at org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:571)
> 	at org.apache.servicemix.common.AsyncBaseLifeCycle.processExchangeInTx(AsyncBaseLifeCycle.java:468)
> 	at org.apache.servicemix.common.AsyncBaseLifeCycle$2.run(AsyncBaseLifeCycle.java:347)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
> 	at java.lang.Thread.run(Thread.java:619)
> Caused by: javax.xml.ws.WebServiceException: org.apache.cxf.binding.jbi.JBIFault: faultstring
> 	at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:154)
> 	at $Proxy129.getPerson(Unknown Source)
> 	at com.mycompany.proto.proxy.HelloWorldImpl.sayHi(HelloWorldImpl.java:46)
> 	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:173)
> 	at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:89)
> 	... 19 more
> Caused by: org.apache.cxf.binding.jbi.JBIFault: faultstring
> 	at org.apache.cxf.binding.jbi.interceptor.JBIFaultInInterceptor.handleMessage(JBIFaultInInterceptor.java:61)
> 	at org.apache.cxf.binding.jbi.interceptor.JBIFaultInInterceptor.handleMessage(JBIFaultInInterceptor.java:44)
> 	at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:243)
> 	at org.apache.cxf.interceptor.AbstractFaultChainInitiatorObserver.onMessage(AbstractFaultChainInitiatorObserver.java:99)
> 	at org.apache.cxf.binding.jbi.interceptor.JBIWrapperInInterceptor.handleMessage(JBIWrapperInInterceptor.java:95)
> 	at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:243)
> 	at org.apache.cxf.endpoint.ClientImpl.onMessage(ClientImpl.java:700)
> 	at org.apache.cxf.transport.jbi.JBIConduitOutputStream.commitOutputMessage(JBIConduitOutputStream.java:185)
> 	at org.apache.cxf.transport.jbi.JBIConduitOutputStream.doClose(JBIConduitOutputStream.java:81)
> 	at org.apache.cxf.io.CachedOutputStream.close(CachedOutputStream.java:185)
> 	at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:66)
> 	at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62)
> 	at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:243)
> 	at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:487)
> 	at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:313)
> 	at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:265)
> 	at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73)
> 	at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:124)
> 	... 27 more

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