Return-Path: Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: (qmail 42675 invoked from network); 27 Sep 2008 19:22:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 27 Sep 2008 19:22:38 -0000 Received: (qmail 40798 invoked by uid 500); 27 Sep 2008 19:22:35 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 40708 invoked by uid 500); 27 Sep 2008 19:22:35 -0000 Mailing-List: contact issues-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list issues@cxf.apache.org Received: (qmail 40686 invoked by uid 99); 27 Sep 2008 19:22:35 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 27 Sep 2008 12:22:35 -0700 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.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 27 Sep 2008 19:21:42 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 39F8D234C1F7 for ; Sat, 27 Sep 2008 12:21:46 -0700 (PDT) Message-ID: <1038264451.1222543306236.JavaMail.jira@brutus> Date: Sat, 27 Sep 2008 12:21:46 -0700 (PDT) From: "Dmitry (JIRA)" To: issues@cxf.apache.org Subject: [jira] Commented: (CXF-1828) inFaultInterceptors doesn't work as expected In-Reply-To: <1534535738.1222541624310.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CXF-1828?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12635185#action_12635185 ] Dmitry commented on CXF-1828: ----------------------------- version 2.1.3 works even worse Change server.xml to zip FAULT response: But intentionally leave client.xml Obviously client should throws Exception when received compressed FAULT response from server But it doesn't! > inFaultInterceptors doesn't work as expected > -------------------------------------------- > > Key: CXF-1828 > URL: https://issues.apache.org/jira/browse/CXF-1828 > Project: CXF > Issue Type: Bug > Components: Bus, Samples > Affects Versions: 2.1.1, 2.1.2 > Environment: java 1.6 > Reporter: Dmitry > Attachments: Client.java, client.xml, server.xml > > > I'm trying to zip FAULT response from server. > Server properly zip response , so server's [outFaultInterceptors] work fine > But, It looks like client couldn't properly process it in [inFaultInterceptors] > Step to reproduce: > 1. Upade sample code from standart distributive > apache-cxf-2.1.2/samples/configuration_interceptor > client.xml: > > > > > > > > > server:xml: > > > > > > > > > > Client.java: > add next code and uncomment //import lines: > import org.apache.hello_world_soap_http.PingMeFault; > import org.apache.hello_world_soap_http.types.FaultDetail; > ... > try { > System.out.println("Invoking pingMe, expecting exception..."); > port.pingMe(); > } catch (PingMeFault ex) { > System.out.println("Expected exception: PingMeFault has occurred: " + ex.getMessage()); > FaultDetail detail = ex.getFaultInfo(); > System.out.println("FaultDetail major:" + detail.getMajor()); > System.out.println("FaultDetail minor:" + detail.getMinor()); > } > System.exit(0); > } > Result: > [java] Invoking pingMe, expecting exception... > [java] Exception in thread "main" javax.xml.ws.soap.SOAPFaultException: Could not create XMLStreamReader (input was of encoding UTF-8). > [java] at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:199) > [java] at $Proxy41.pingMe(Unknown Source) > [java] at demo.stream.client.Client.main(Client.java:67) > [java] Caused by: org.apache.cxf.interceptor.Fault: Could not create XMLStreamReader (input was of encoding UTF-8). > [java] at org.apache.cxf.interceptor.StaxInInterceptor.handleMessage(StaxInInterceptor.java:83) > [java] at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:221) > [java] at org.apache.cxf.endpoint.ClientImpl.onMessage(ClientImpl.java:449) > [java] at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:1996) > [java] at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1832) > [java] at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:66) > [java] at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:591) > [java] at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62) > [java] at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:221) > [java] at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:296) > [java] at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:242) > [java] at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73) > [java] at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:178) > [java] ... 2 more > [java] Caused by: com.ctc.wstx.exc.WstxIOException: Invalid UTF-8 start byte 0x8b (at char #2, byte #-1) > [java] at com.ctc.wstx.stax.WstxInputFactory.doCreateSR(WstxInputFactory.java:548) > [java] at com.ctc.wstx.stax.WstxInputFactory.createSR(WstxInputFactory.java:604) > [java] at com.ctc.wstx.stax.WstxInputFactory.createSR(WstxInputFactory.java:629) > [java] at com.ctc.wstx.stax.WstxInputFactory.createXMLStreamReader(WstxInputFactory.java:324) > [java] at org.apache.cxf.interceptor.StaxInInterceptor.handleMessage(StaxInInterceptor.java:81) > [java] ... 14 more > [java] Caused by: java.io.CharConversionException: Invalid UTF-8 start byte 0x8b (at char #2, byte #-1) > [java] at com.ctc.wstx.io.UTF8Reader.reportInvalidInitial(UTF8Reader.java:302) > [java] at com.ctc.wstx.io.UTF8Reader.read(UTF8Reader.java:188) > [java] at com.ctc.wstx.io.ReaderBootstrapper.initialLoad(ReaderBootstrapper.java:245) > [java] at com.ctc.wstx.io.ReaderBootstrapper.bootstrapInput(ReaderBootstrapper.java:132) > [java] at com.ctc.wstx.stax.WstxInputFactory.doCreateSR(WstxInputFactory.java:543) > [java] ... 18 more -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.