We are struggling with fault handling on an outgoing interceptor. We keep
getting
Caused by: javax.xml.stream.XMLStreamException: No open start element, when
trying to write end element
at
com.ctc.wstx.sw.BaseStreamWriter.throwOutputError(BaseStreamWriter.java:1584)
[woodstox-core-5.0.3.jar:5.0.3]
at
com.ctc.wstx.sw.BaseStreamWriter.reportNwfStructure(BaseStreamWriter.java:1613)
[woodstox-core-5.0.3.jar:5.0.3]
at
com.ctc.wstx.sw.BaseNsStreamWriter.doWriteEndTag(BaseNsStreamWriter.java:664)
[woodstox-core-5.0.3.jar:5.0.3]
at
com.ctc.wstx.sw.BaseNsStreamWriter.writeEndElement(BaseNsStreamWriter.java:291)
[woodstox-core-5.0.3.jar:5.0.3]
at
org.apache.cxf.binding.soap.interceptor.SoapOutInterceptor$SoapOutEndingInterceptor.handleMessage(SoapOutInterceptor.java:304)
[cxf-rt-bindings-soap-3.2.4.jar:3.2.4]
When throwing a soapfault from inside our code. We have tried using the cxf
demo sample (configuration_interceptor
<http://svn.apache.org/viewvc/cxf/trunk/distribution/src/main/release/samples/configuration_interceptor/>)
and if we change the
GZIPOutputStream zipOutput = new GZIPOutputStream(os);
to
GZIPOutputStream zipOutput = new GZIPOutputStream(null);
a soapfault is thrown but fails with the XMLStreamException - any clue would be
appreciated.
Venlig hilsen / Best Regards
Aage Nielsen
Openminds
Fredens Torv 1B, 1.
DK-8000 Aarhus C
Denmark
Cvr; 33647166
M: +45 5390 1639
E: [email protected] <mailto:[email protected]>
www.openminds.dk <http://www.openminds.dk/>