wsit
  1. wsit
  2. WSIT-1658

VerifiedStreamMessage.copy() throws exception when processing SOAP fault

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.2
    • Fix Version/s: None
    • Component/s: security
    • Labels:
      None
    • Environment:

      Windows 7

      Description

      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

        Activity

        Hide
        kumarjayanti added a comment -

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

        Show
        kumarjayanti added a comment - 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".

          People

          • Assignee:
            kumarjayanti
            Reporter:
            btse
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: