You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ws.apache.org by "Colm O hEigeartaigh (Jira)" <ji...@apache.org> on 2020/02/14 12:20:00 UTC

[jira] [Commented] (WSS-664) Problem using IBM JDK

    [ https://issues.apache.org/jira/browse/WSS-664?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17036945#comment-17036945 ] 

Colm O hEigeartaigh commented on WSS-664:
-----------------------------------------

What actual IBM JDK are you using (and where can I download it to verify the issue)?

> Problem using IBM JDK
> ---------------------
>
>                 Key: WSS-664
>                 URL: https://issues.apache.org/jira/browse/WSS-664
>             Project: WSS4J
>          Issue Type: Bug
>          Components: WSS4J Core
>    Affects Versions: 2.2.4
>            Reporter: Philip Helger
>            Assignee: Colm O hEigeartaigh
>            Priority: Major
>
> 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



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ws.apache.org
For additional commands, e-mail: dev-help@ws.apache.org


Re: [jira] [Commented] (WSS-664) Problem using IBM JDK

Posted by Jason Hall <ja...@mchsi.com>.
Colm,
   The easiest way to download the PC JDK is to search for IBM liberty.  They give you an option to download Liberty which included the IBM JDK.
then when you unzip it, you can open the liberty folder to see the java folder....

Scroll down and you will see the version that include the JDK 8
https://www.ibm.com/support/pages/20001-websphere-application-server-liberty-20001


Or 

https://developer.ibm.com/javasdk/downloads/eclipse/

Again -  i had to tell liberty to use the oracle "sun" classes in the "jvm.option" file in liberty

-Djavax.xml.soap.MessageFactory=com.sun.xml.internal.messaging.saaj.soap.ver1_1.SOAPMessageFactory1_1Impl
-Djavax.xml.soap.SOAPFactory=com.sun.xml.internal.messaging.saaj.soap.ver1_1.SOAPFactory1_1Impl
-Djavax.xml.soap.SOAPConnectionFactory=com.sun.xml.internal.messaging.saaj.client.p2p.HttpSOAPConnectionFactory
-Djavax.xml.soap.MetaFactory=com.sun.xml.internal.messaging.saaj.soap.SAAJMetaFactoryImpl


   thanks,
      Jason


----- Original Message -----
From: "Colm O hEigeartaigh (Jira)" <ji...@apache.org>
To: "dev" <de...@ws.apache.org>
Sent: Friday, February 14, 2020 7:20:00 AM
Subject: [jira] [Commented] (WSS-664) Problem using IBM JDK

[ https://issues.apache.org/jira/browse/WSS-664?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17036945#comment-17036945 ] 

Colm O hEigeartaigh commented on WSS-664:
-----------------------------------------

What actual IBM JDK are you using (and where can I download it to verify the issue)?

> Problem using IBM JDK
> ---------------------
>
>                 Key: WSS-664
>                 URL: https://issues.apache.org/jira/browse/WSS-664
>             Project: WSS4J
>          Issue Type: Bug
>          Components: WSS4J Core
>    Affects Versions: 2.2.4
>            Reporter: Philip Helger
>            Assignee: Colm O hEigeartaigh
>            Priority: Major
>
> 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



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ws.apache.org
For additional commands, e-mail: dev-help@ws.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ws.apache.org
For additional commands, e-mail: dev-help@ws.apache.org