Skip to content
This repository has been archived by the owner on Jan 30, 2019. It is now read-only.

VerifiedStreamMessage.copy() throws exception when processing SOAP fault #1658

Closed
glassfishrobot opened this issue Oct 19, 2012 · 4 comments
Closed

Comments

@glassfishrobot
Copy link
Contributor

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]

@glassfishrobot
Copy link
Contributor Author

Reported by btse

@glassfishrobot
Copy link
Contributor Author

@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".

@glassfishrobot
Copy link
Contributor Author

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

@glassfishrobot
Copy link
Contributor Author

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants