javaee/metro-wsit

VerifiedStreamMessage.copy() throws exception when processing SOAP fault

glassfishrobot opened this issue · 4 comments

Conditions:
com.sun.xml.wss.provider.wsit.SecurityTubeFactory.dump=true
server returns SOAP fault

When SecurityTubeFactory.dump=true is set, VerifiedStreamMessage.copy() is called for the SOAP body, but fails and throws WebServiceException. Due to the exception, fault is not processed and the expected SOAPFaultException is not thrown. It behaves correctly (throwing SOAPFaultException) if SecurityTubeFactory.dump=false is set.

Caused by: javax.xml.ws.WebServiceException: Failed to copy a message
at com.sun.xml.ws.security.opt.impl.incoming.VerifiedStreamMessage.copy(VerifiedStreamMessage.java:468)
at com.sun.xml.ws.api.message.Packet.copy(Packet.java:215)
at com.sun.xml.ws.dump.LoggingDumpTube.processResponse(LoggingDumpTube.java:126)
at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:1074)
at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:979)
at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:950)
at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:825)
at com.sun.xml.ws.client.Stub.process(Stub.java:443)
at com.sun.xml.ws.client.dispatch.DispatchImpl.doInvoke(DispatchImpl.java:273)
at com.sun.xml.ws.client.dispatch.DispatchImpl.invoke(DispatchImpl.java:312)
at mil.disa.jpes.widgets.integration.jfw.client.AbstractJfwServiceInvocation.invokeRead(AbstractJfwServiceInvocation.java:157)
at mil.disa.jpes.widgets.integration.jfw.client.AbstractJfwServiceInvocation.invokeReadRequestCall(AbstractJfwServiceInvocation.java:287)
... 25 more
Caused by: javax.xml.stream.XMLStreamException:
at com.sun.xml.stream.buffer.stax.StreamReaderBufferProcessor.nextTag(StreamReaderBufferProcessor.java:412)
at com.sun.xml.stream.buffer.stax.StreamReaderBufferProcessor.nextTag(StreamReaderBufferProcessor.java:396)
at com.sun.xml.ws.security.opt.impl.util.VerifiedMessageXMLStreamReader.nextTag(VerifiedMessageXMLStreamReader.java:90)
at com.sun.xml.ws.security.opt.impl.incoming.VerifiedStreamMessage.proceedToRootElement(VerifiedStreamMessage.java:474)
at com.sun.xml.ws.security.opt.impl.incoming.VerifiedStreamMessage.copy(VerifiedStreamMessage.java:457)
... 36 more

Environment

Windows 7

Affected Versions

[2.2]

Reported by btse

@vbkumarjayanti said:
Hi,

Thanks for filing this. This is a known issue, but we do not intend to fix this. Please use the more general JAXWS features to enable dumps.

-Dcom.sun. xml.ws.transport.http.client.HttpTransportPipe.dump="true".

Marked as fixed on Friday, October 19th 2012, 7:15:30 pm

This issue was imported from java.net JIRA WSIT-1658