wsit
  1. wsit
  2. WSIT-1491

WSIT E2E tests are failing due to a consumed message in security

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 2.1
    • Fix Version/s: 2.1
    • Component/s: security
    • Labels:
      None

      Description

      Exception got from the failing WSIT E2E tests:

      java.lang.AssertionError: StreamMessage has been already consumed. See the nested exception for where it's consumed
      at com.sun.xml.ws.security.opt.impl.incoming.VerifiedStreamMessage.unconsumed(VerifiedStreamMessage.java:518)
      at com.sun.xml.ws.security.opt.impl.incoming.VerifiedStreamMessage.readPayloadAsJAXB(VerifiedStreamMessage.java:257)
      at com.sun.xml.ws.fault.SOAPFaultBuilder.create(SOAPFaultBuilder.java:540)
      at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:122)
      at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:93)
      at com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:144)
      at $Proxy147.ping(Unknown Source)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at bsh.Reflect.invokeOnMethod(Reflect.java:194)
      at bsh.Reflect.invokeObjectMethod(Reflect.java:91)
      at bsh.Name.invokeMethod(Name.java:856)
      at bsh.BSHMethodInvocation.eval(BSHMethodInvocation.java:72)
      at bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:102)
      at bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:47)
      at bsh.Interpreter.eval(Interpreter.java:653)
      at com.sun.xml.ws.test.client.InterpreterEx.eval(InterpreterEx.java:86)
      at com.sun.xml.ws.test.exec.ClientExecutor.invoke(ClientExecutor.java:141)
      at com.sun.xml.ws.test.exec.ClientExecutor.runBare(ClientExecutor.java:125)
      at com.sun.xml.ws.test.Main$1.doRun(Main.java:330)
      at com.sun.xml.ws.test.Main.run(Main.java:338)
      at com.sun.xml.ws.test.Main.doMain(Main.java:260)
      at com.sun.xml.ws.test.Main.main(Main.java:248)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at com.sun.xml.ws.test.Bootstrap.main(Bootstrap.java:100)
      Caused by: java.lang.Exception
      at com.sun.xml.ws.security.opt.impl.incoming.VerifiedStreamMessage.unconsumed(VerifiedStreamMessage.java:522)
      at com.sun.xml.ws.security.opt.impl.incoming.VerifiedStreamMessage.writePayloadTo(VerifiedStreamMessage.java:381)
      at com.sun.xml.ws.security.opt.impl.incoming.VerifiedStreamMessage.writeTo(VerifiedStreamMessage.java:499)
      at com.sun.xml.ws.message.AbstractMessageImpl.readAsSOAPMessage(AbstractMessageImpl.java:198)
      at com.sun.xml.ws.security.opt.impl.incoming.VerifiedStreamMessage.readAsSOAPMessage(VerifiedStreamMessage.java:480)
      at com.sun.xml.wss.jaxws.impl.PolicyResolverImpl.resolvePolicy(PolicyResolverImpl.java:160)
      at com.sun.xml.ws.security.opt.impl.incoming.SecurityRecipient.createMessage(SecurityRecipient.java:905)
      at com.sun.xml.ws.security.opt.impl.incoming.SecurityRecipient.validateMessage(SecurityRecipient.java:232)
      at com.sun.xml.wss.jaxws.impl.SecurityTubeBase.verifyInboundMessage(SecurityTubeBase.java:449)
      at com.sun.xml.wss.jaxws.impl.SecurityClientTube.processClientResponsePacket(SecurityClientTube.java:434)
      at com.sun.xml.wss.jaxws.impl.SecurityClientTube.processResponse(SecurityClientTube.java:362)
      at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:651)
      at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:600)
      at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:585)
      at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:482)
      at com.sun.xml.ws.client.Stub.process(Stub.java:323)
      at com.sun.xml.ws.client.sei.SEIStub.doProcess(SEIStub.java:161)
      at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:113)
      ... 36 more

        Activity

        Hide
        kumarjayanti added a comment -

        fixed

        Show
        kumarjayanti added a comment - fixed

          People

          • Assignee:
            kumarjayanti
            Reporter:
            Marek Potociar
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: