javax.xml.ws.WebServiceException: java.lang.ClassCastException: com.sun.xml.ws.message.jaxb.JAXBHeader cannot be cast to com.sun.xml.ws.security.opt.impl.outgoing.SecurityHeader

Stack Overflow | csDave | 1 month ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Glassfish Metro ClassCastException for SecurityHeader

    Stack Overflow | 1 month ago | csDave
    javax.xml.ws.WebServiceException: java.lang.ClassCastException: com.sun.xml.ws.message.jaxb.JAXBHeader cannot be cast to com.sun.xml.ws.security.opt.impl.outgoing.SecurityHeader
  2. 0

    Problem in authenticating web service client with usernametoken info in glassfish 3.0.1

    Oracle Community | 6 years ago | konkimalla
    javax.xml.ws.WebServiceException: java.lang.ClassCastException: com.sun.xml.ws.message.saaj.SAAJHeader cannot be cast to com.sun.xml.ws.security.opt.impl.outgoing.SecurityHeader
  3. 0

    Secured webservice acess | PTC Community

    ptcusercommunity.com | 1 year ago
    javax.xml.ws.WebServiceException: java.lang.ClassCastException: com.sun.xml.ws.message.saaj.SAAJHeader cannot be cast to com.sun.xml.ws.security.opt.impl.outgoing.SecurityHeader
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    4 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.ClassCastException

      com.sun.xml.ws.message.jaxb.JAXBHeader cannot be cast to com.sun.xml.ws.security.opt.impl.outgoing.SecurityHeader

      at com.sun.xml.ws.security.opt.impl.JAXBFilterProcessingContext.setJAXWSMessage()
    2. Metro Web Services Runtime OSGi Bundle
      SecurityClientTube.processRequest
      1. com.sun.xml.ws.security.opt.impl.JAXBFilterProcessingContext.setJAXWSMessage(JAXBFilterProcessingContext.java:166)
      2. com.sun.xml.wss.jaxws.impl.SecurityTubeBase.secureOutboundMessage(SecurityTubeBase.java:383)
      3. com.sun.xml.wss.jaxws.impl.SecurityClientTube.processClientRequestPacket(SecurityClientTube.java:323)
      4. com.sun.xml.wss.jaxws.impl.SecurityClientTube.processRequest(SecurityClientTube.java:247)
      4 frames
    3. JAX-WS RI Runtime Bundle
      SEIStub.invoke
      1. com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:1136)
      2. com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:1050)
      3. com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:1019)
      4. com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:877)
      5. com.sun.xml.ws.client.Stub.process(Stub.java:464)
      6. com.sun.xml.ws.client.sei.SEIStub.doProcess(SEIStub.java:174)
      7. com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:108)
      8. com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:91)
      9. com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:154)
      9 frames
    4. com.sun.proxy
      $Proxy57.listAddressByPostcode
      1. com.sun.proxy.$Proxy57.listAddressByPostcode(Unknown Source)
      1 frame
    5. uk.co.example
      EAddrServiceTest.main
      1. uk.co.example.eaddress.EAddrServiceTest.directAddressTest(EAddrServiceTest.java:95)
      2. uk.co.example.eaddress.EAddrServiceTest.main(EAddrServiceTest.java:41)
      2 frames