Uploaded image for project: 'WSS4J'
  1. WSS4J
  2. WSS-664

Problem using IBM JDK

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Not A Problem
    • Affects Version/s: 2.2.4
    • Fix Version/s: None
    • Component/s: WSS4J Core
    • Labels:
      None

      Description

      Hi,

      when using IBM JDK, the initialization does not work.

      Gettting the following error:
      java.lang.VerifyError: JVMVRFY012 stack shape inconsistent; class=com/sun/xml/messaging/saaj/soap/SOAPDocumentImpl, method=createDocumentFragment()Lorg/w3c/dom/DocumentFragment;, pc=5; Type Mismatch, argument 0 in signature com/sun/xml/messaging/saaj/soap/SOAPDocumentFragment.<init>:(Lcom/sun/org/apache/xerces/internal/dom/CoreDocumentImpl;)V does not match
      Exception Details:
      Location:
      com/sun/xml/messaging/saaj/soap/SOAPDocumentImpl.createDocumentFragment()Lorg/w3c/dom/DocumentFragment; @5: JBinvokespecial
      Reason:
      Type 'com/sun/xml/messaging/saaj/soap/SOAPDocumentImpl' (current frame, stack[2]) is not assignable to 'com/sun/org/apache/xerces/internal/dom/CoreDocumentImpl'
      Current Frame:
      bci: @5
      flags: { }
      locals: { 'com/sun/xml/messaging/saaj/soap/SOAPDocumentImpl' }
      stack: { 'uninitialized', 'uninitialized', 'com/sun/xml/messaging/saaj/soap/SOAPDocumentImpl' }
      at java.lang.J9VMInternals.prepareClassImpl(Native Method) ~[?:2.9 (10-29-2018)]
      at java.lang.J9VMInternals.prepare(J9VMInternals.java:302) ~[?:2.9 (10-29-2018)]
      at java.lang.Class.getMethods(Class.java:1367) ~[?:2.9 (10-29-2018)]
      at org.apache.wss4j.dom.util.WSSecurityUtil.<clinit>(WSSecurityUtil.java:102) ~[wss4j-ws-security-dom-2.2.4.jar:2.2.4]
      at org.apache.wss4j.dom.message.WSSecHeader.insertSecurityHeader(WSSecHeader.java:167) ~[wss4j-ws-security-dom-2.2.4.jar:2.2.4]
       
       

      I will create a PR that changes the catch clause to Throwable

       

      Thanks, Philip

        Attachments

          Activity

            People

            • Assignee:
              coheigea Colm O hEigeartaigh
              Reporter:
              phax Philip Helger
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: