cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Valerio Angelini (JIRA)" <j...@apache.org>
Subject [jira] Issue Comment Edited: (CXF-2453) Provider<DataSource>.invoke returning non-XML data causes error.
Date Thu, 01 Oct 2009 08:40:23 GMT

    [ https://issues.apache.org/jira/browse/CXF-2453?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12760875#action_12760875
] 

Valerio Angelini edited comment on CXF-2453 at 10/1/09 1:38 AM:
----------------------------------------------------------------

Here is a test case.

To reproduce the error just issue a "mvn jetty:run" and execute the simple test. The test
runs with CXF 2.2.1 but does not run with versions greater than 2.2.1.

      was (Author: angelini):
    Here is a test case.

To reproduce the error just issue a "mvn jetty:run" and execute the simple test.
  
> Provider<DataSource>.invoke returning non-XML data causes error.
> ----------------------------------------------------------------
>
>                 Key: CXF-2453
>                 URL: https://issues.apache.org/jira/browse/CXF-2453
>             Project: CXF
>          Issue Type: Bug
>    Affects Versions: 2.2.2, 2.2.3
>            Reporter: Valerio Angelini
>         Attachments: cxf-test.zip
>
>
> Provider<DataSource>.invoke returning non-XML data causes error.
> This seems the same problem of issue CXF-752 but with a slightly different stack trace.
> All it's working until cxf version 2.2.1.
> From version 2.2.2 to the current snapshots i get this problem:
> 30-set-2009 12.28.15 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:85)
> 	at org.apache.cxf.databinding.source.XMLStreamDataWriter.write(XMLStreamDataWriter.java:49)
> 	at org.apache.cxf.databinding.source.XMLStreamDataWriter.write(XMLStreamDataWriter.java:45)
> 	at org.apache.cxf.interceptor.AbstractOutDatabindingInterceptor.writeParts(AbstractOutDatabindingInterceptor.java:114)
> 	at org.apache.cxf.interceptor.BareOutInterceptor.handleMessage(BareOutInterceptor.java:68)
> 	at org.apache.cxf.binding.xml.interceptor.XMLMessageOutInterceptor.handleMessage(XMLMessageOutInterceptor.java:74)
> 	at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:236)
> 	at org.apache.cxf.interceptor.OutgoingChainInterceptor.handleMessage(OutgoingChainInterceptor.java:74)
> 	at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:236)
> 	at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:89)
> 	at org.apache.cxf.transport.servlet.ServletDestination.invoke(ServletDestination.java:99)
> 	at org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:368)
> 	at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:183)
> 	at org.apache.cxf.transport.servlet.AbstractCXFServlet.invoke(AbstractCXFServlet.java:163)
> 	at org.apache.cxf.transport.servlet.AbstractCXFServlet.doGet(AbstractCXFServlet.java:145)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
> 	at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:530)
> 	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:426)
> 	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:118)
> 	at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:495)
> 	at org.eclipse.jetty.server.session.SessionHandler.handle(SessionHandler.java:179)
> 	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:930)
> 	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:361)
> 	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:864)
> 	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:116)
> 	at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:243)
> 	at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:126)
> 	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:112)
> 	at org.eclipse.jetty.server.Server.handle(Server.java:337)
> 	at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:546)
> 	at org.eclipse.jetty.server.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:973)
> 	at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:530)
> 	at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:203)
> 	at org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:399)
> 	at org.eclipse.jetty.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:437)
> 	at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:435)
> 	at java.lang.Thread.run(Thread.java:637)
> Caused by: com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character 'R' (code
82) in prolog; expected '<'
>  at [row,col {unknown-source}]: [1,1]
> 	at com.ctc.wstx.sr.StreamScanner.throwUnexpectedChar(StreamScanner.java:648)
> 	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:417)
> 	at org.apache.cxf.staxutils.StaxUtils.copy(StaxUtils.java:379)
> 	at org.apache.cxf.databinding.source.XMLStreamDataWriter.write(XMLStreamDataWriter.java:58)
> 	... 37 more

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


Mime
View raw message