Return-Path: Delivered-To: apmail-servicemix-dev-archive@www.apache.org Received: (qmail 88960 invoked from network); 6 Aug 2010 01:37:40 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 6 Aug 2010 01:37:40 -0000 Received: (qmail 48543 invoked by uid 500); 6 Aug 2010 01:37:39 -0000 Delivered-To: apmail-servicemix-dev-archive@servicemix.apache.org Received: (qmail 48515 invoked by uid 500); 6 Aug 2010 01:37:39 -0000 Mailing-List: contact dev-help@servicemix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@servicemix.apache.org Delivered-To: mailing list dev@servicemix.apache.org Received: (qmail 48481 invoked by uid 99); 6 Aug 2010 01:37:39 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Aug 2010 01:37:39 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Aug 2010 01:37:38 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o761bItK022668 for ; Fri, 6 Aug 2010 01:37:18 GMT Message-ID: <6154546.58451281058638712.JavaMail.jira@thor> Date: Thu, 5 Aug 2010 21:37:18 -0400 (EDT) From: "Vinh Hoang (JIRA)" To: dev@servicemix.apache.org Subject: [jira] Updated: (SMXCOMP-786) cxfse proxy does not catch wsdl defined faults In-Reply-To: <13754848.58431281058638438.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: ae95407df07c98740808b2ef9da0087c [ https://issues.apache.org/activemq/browse/SMXCOMP-786?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Vinh Hoang updated SMXCOMP-786: ------------------------------- Attachment: proxy-w-fault.zip Test Case > 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 > 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. > Here's my test case: file:///C:/Users/Vinh/Code/proxy-w-fault.zip > 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.