Return-Path: Delivered-To: apmail-incubator-cxf-issues-archive@locus.apache.org Received: (qmail 46373 invoked from network); 28 Jun 2007 14:27:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 28 Jun 2007 14:27:49 -0000 Received: (qmail 80460 invoked by uid 500); 28 Jun 2007 14:27:51 -0000 Delivered-To: apmail-incubator-cxf-issues-archive@incubator.apache.org Received: (qmail 80448 invoked by uid 500); 28 Jun 2007 14:27:51 -0000 Mailing-List: contact cxf-issues-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cxf-dev@incubator.apache.org Delivered-To: mailing list cxf-issues@incubator.apache.org Received: (qmail 80283 invoked by uid 99); 28 Jun 2007 14:27:50 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Jun 2007 07:27:50 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Jun 2007 07:27:46 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 512B27141E3 for ; Thu, 28 Jun 2007 07:27:26 -0700 (PDT) Message-ID: <8096886.1183040846330.JavaMail.jira@brutus> Date: Thu, 28 Jun 2007 07:27:26 -0700 (PDT) From: "Conrad O'Dea (JIRA)" To: cxf-issues@incubator.apache.org Subject: [jira] Updated: (CXF-752) Provider.invoke returning non-XML data causes error. In-Reply-To: <30081571.1183040246572.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-752?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Conrad O'Dea updated CXF-752: ----------------------------- Attachment: cxf-datasource-test.tgz Here's a test case that illustrates the problem. The problem is caused here is that the reponse from the provider contains a number of attachments one of which is of type 'text/plain' > Provider.invoke returning non-XML data causes error. > ---------------------------------------------------------------- > > Key: CXF-752 > URL: https://issues.apache.org/jira/browse/CXF-752 > Project: CXF > Issue Type: Bug > Components: JAX-WS Runtime > Affects Versions: 2.0 > Reporter: Conrad O'Dea > Attachments: cxf-datasource-test.tgz > > > Returning non-XML data in Provider.invoke causes an exception when the ProviderOutDatabindingInterceptor tries to marshall the outgoing data. > Here's the stack trace: > Jun 28, 2007 3:13:06 PM org.apache.cxf.phase.PhaseInterceptorChain doIntercept > INFO: Interceptor has thrown exception, unwinding now > org.apache.cxf.interceptor.Fault: Could not parse the XML stream. > at org.apache.cxf.databinding.source.XMLStreamDataWriter.write(XMLStreamDataWriter.java:66) > at org.apache.cxf.databinding.source.XMLStreamDataWriter.write(XMLStreamDataWriter.java:41) > at org.apache.cxf.jaxws.interceptors.ProviderOutDatabindingInterceptor.handleMessage(ProviderOutDatabindingInterceptor.java:56) > at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:206) > at org.apache.cxf.interceptor.OutgoingChainInterceptor.handleMessage(OutgoingChainInterceptor.java:73) > at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:206) > at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:67) > at org.apache.cxf.transport.http_jetty.JettyHTTPDestination.serviceRequest(JettyHTTPDestination.java:253) > at org.apache.cxf.transport.http_jetty.JettyHTTPDestination.doService(JettyHTTPDestination.java:213) > at org.apache.cxf.transport.http_jetty.JettyHTTPHandler.handle(JettyHTTPHandler.java:54) > at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712) > at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:211) > at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139) > at org.mortbay.jetty.Server.handle(Server.java:285) > at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:502) > at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:835) > at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:641) > at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:208) > at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:378) > at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:368) > at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442) > Caused by: com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character '-' (code 45) in prolog; expected '<' > at [row,col {unknown-source}]: [2,1] > at com.ctc.wstx.sr.StreamScanner.throwUnexpectedChar(StreamScanner.java:623) > at com.ctc.wstx.sr.BasicStreamReader.nextFromProlog(BasicStreamReader.java:2047) > at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1069) > at org.apache.cxf.staxutils.StaxUtils.copy(StaxUtils.java:284) > at org.apache.cxf.databinding.source.XMLStreamDataWriter.write(XMLStreamDataWriter.java:63) > ... 20 more > Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.703 sec <<< FAILURE! -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.