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

org.apache.ws.security.transform.STRTransform causes ClassCastException when wss4j is running on IBM 1.6 JVM

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.6
    • 1.6.1
    • WSS4J Core
    • None
    • Windows XP, IBM 1.6 JVM

    Description

      I have tried to use wss4j1.6 (alpha version) on IBM's 1.6 JVM. It works fine, except for when we are getting a SOAP-message where an STRTransform is used.
      Then we get the following exception below. (I should mention that it works on SUN's 1.6 JVM).

      java.lang.ClassCastException: org.apache.ws.security.transform.STRTransform incompatible with com.ibm.xml.crypto.dsig.dom.transform.TransformBase
      at com.ibm.xml.crypto.dsig.dom.Unmarshalling.unmarshalTransform(Unmarshalling.java:446)
      at com.ibm.xml.crypto.dsig.dom.Unmarshalling.unmarshalTransforms(Unmarshalling.java:422)
      at com.ibm.xml.crypto.dsig.dom.Unmarshalling.unmarshalReference(Unmarshalling.java:358)
      at com.ibm.xml.crypto.dsig.dom.Unmarshalling.unmarshalSignedInfo(Unmarshalling.java:272)
      at com.ibm.xml.crypto.dsig.dom.Unmarshalling.unmarshalSignature(Unmarshalling.java:196)
      at com.ibm.xml.crypto.dsig.dom.Unmarshalling.unmarshal(Unmarshalling.java:96)
      at com.ibm.xml.crypto.dsig.dom.FactoryImpl.unmarshalXMLSignature(FactoryImpl.java:217)
      at org.apache.ws.security.processor.SignatureProcessor.verifyXMLSignature(SignatureProcessor.java:323)
      at org.apache.ws.security.processor.SignatureProcessor.handleToken(SignatureProcessor.java:165)
      at org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:303)
      at org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:231)
      at org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:185)

      Attachments

        1. wss4j-1.6.1-SNAPSHOT.jar
          347 kB
          Colm O hEigeartaigh

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            coheigea Colm O hEigeartaigh
            paerjohan Pär-Johan Lif
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment