cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Kulp <dk...@apache.org>
Subject Re: Question regarding SOAPBody and precreated XML payload
Date Thu, 21 Jul 2011 20:41:42 GMT


On Thursday, July 21, 2011 1:35:25 PM Dev wrote:
> Never mind, I managed to get over it by Creating a XML Document object and
> adding it to SOAPBody. But now I getting following message on dispatch, and
> I am not sure what is that is not working: -
> 
> 1) Is the XML request invalid?
> 2) Is the end point connection refused?

No idea..  I see you are using the sun stax impl:

com.sun.xml.stream.writers.XMLStreamWriterImpl

I would suggest replacing that with woodstox and seeing if a different error 
pops up.

Dan


> 
> And what is that I need to do to get over this issue?
> 
> rg.apache.cxf.interceptor.Fault: Could not write to XMLStreamWriter.
> 	at
> org.apache.cxf.interceptor.StaxOutInterceptor$StaxOutEndingInterceptor.handl
> eMessage(StaxOutInterceptor.java:175) at
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain
> .java:255) at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:546)
> at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:343) at
> org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:295) at
> org.apache.cxf.endpoint.ClientImpl.invokeWrapped(ClientImpl.java:330) at
> org.apache.cxf.jaxws.DispatchImpl.invoke(DispatchImpl.java:332) at
> org.apache.cxf.jaxws.DispatchImpl.invoke(DispatchImpl.java:218) at
> xxx.app.xfs.ws.WSDispatcher.main(WSDispatcher.java:112)
> Caused by: javax.xml.stream.XMLStreamException
> 	at
> com.sun.xml.stream.writers.XMLStreamWriterImpl.close(XMLStreamWriterImpl.jav
> a:384) at
> org.apache.cxf.interceptor.StaxOutInterceptor$StaxOutEndingInterceptor.handl
> eMessage(StaxOutInterceptor.java:166) ... 8 more
> Exception in thread "main" javax.xml.ws.soap.SOAPFaultException: Could not
> write to XMLStreamWriter.
> 	at org.apache.cxf.jaxws.DispatchImpl.mapException(DispatchImpl.java:262)
> 	at org.apache.cxf.jaxws.DispatchImpl.invoke(DispatchImpl.java:339)
> 	at org.apache.cxf.jaxws.DispatchImpl.invoke(DispatchImpl.java:218)
> 	at  xxx.app.xfs.ws.WSDispatcher.main(WSDispatcher.java:112)
> Caused by: org.apache.cxf.interceptor.Fault: Could not write to
> XMLStreamWriter.
> 	at
> org.apache.cxf.interceptor.StaxOutInterceptor$StaxOutEndingInterceptor.handl
> eMessage(StaxOutInterceptor.java:175) at
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain
> .java:255) at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:546)
> at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:343) at
> org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:295) at
> org.apache.cxf.endpoint.ClientImpl.invokeWrapped(ClientImpl.java:330) at
> org.apache.cxf.jaxws.DispatchImpl.invoke(DispatchImpl.java:332) ... 2 more
> Caused by: javax.xml.stream.XMLStreamException
> 	at
> com.sun.xml.stream.writers.XMLStreamWriterImpl.close(XMLStreamWriterImpl.jav
> a:384) at
> org.apache.cxf.interceptor.StaxOutInterceptor$StaxOutEndingInterceptor.handl
> eMessage(StaxOutInterceptor.java:166) ... 8 more
> 
> --
> View this message in context:
> http://cxf.547215.n5.nabble.com/Question-regarding-SOAPBody-and-precreated-
> XML-payload-tp4620842p4620885.html Sent from the cxf-dev mailing list
> archive at Nabble.com.
-- 
Daniel Kulp
dkulp@apache.org
http://dankulp.com/blog
Talend - http://www.talend.com

Mime
View raw message