Uploaded image for project: 'Spring Web Services'
  1. Spring Web Services
  2. SWS-444

XwssMessageInterceptorEncryptTest testDecrypt() can be enabled again - problem solution known

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.5.4
    • Fix Version/s: 1.5.5
    • Component/s: Security
    • Labels:
      None
    • Environment:
      JDK 1.6

      Description

      Citing from
      http://static.springframework.org/spring-ws/sites/1.5/xref-test/org/springframework/ws/soap/security/xwss/XwssMessageInterceptorEncryptTest.html :

      99 /*
      100 This test fails under JDK 1.6, giving a IllegalArgumentException:
      101 com.sun.xml.internal.messaging.saaj.soap.LocalStrings != com.sun.xml.messaging.saaj.soap.LocalStrings
      102
      103 No idea how to fix it
      104 public void testDecrypt() throws Exception {
      ...

      The problem is due to JDK 1.6 having an integrated SAAJ implementation that places implementation classes in a different namespace than the ones in the Metro stack saaj-impl JAR.

      This is problem exhibits itself e.g. with saaj-impl-1.3.jar under JDK 1.6. However, the newer versions of saaj-impl JAR (starting with 1.3.1, and the newest at the writing of this report was 1.3.2) have proper entries in META-INF/services to override the factory classes provided by JDK 1.6.

      For examples of problems that are related to this see:
      http://forums.java.net/jive/thread.jspa?threadID=41696
      http://os-lists.sun.com/thread.jspa?messageID=10107053

        Activity

        olo Aleksander Adamowski created issue -
        arjen.poutsma Arjen Poutsma made changes -
        Field Original Value New Value
        Assignee Arjen Poutsma [ arjen.poutsma ] Tareq Abed Rabbo [ tareq ]
        Hide
        arjen.poutsma Arjen Poutsma added a comment -

        Thanks for pointing this out!

        Show
        arjen.poutsma Arjen Poutsma added a comment - Thanks for pointing this out!
        Hide
        tareq Tareq Abedrabbo added a comment -

        Patch. Thanks Aleksander!

        Show
        tareq Tareq Abedrabbo added a comment - Patch. Thanks Aleksander!
        tareq Tareq Abedrabbo made changes -
        Attachment SWS-444.patch [ 14830 ]
        arjen.poutsma Arjen Poutsma made changes -
        Fix Version/s 1.5.5 [ 11067 ]
        Resolution Fixed [ 1 ]
        Status Open [ 1 ] Resolved [ 5 ]
        Hide
        arjen.poutsma Arjen Poutsma added a comment -

        Closing old issues

        Show
        arjen.poutsma Arjen Poutsma added a comment - Closing old issues
        arjen.poutsma Arjen Poutsma made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Resolved Resolved
        1d 21h 53m 1 Arjen Poutsma 04/Nov/08 8:00 PM
        Resolved Resolved Closed Closed
        1276d 11h 2m 1 Arjen Poutsma 04/May/12 7:03 AM

          People

          • Assignee:
            tareq Tareq Abedrabbo
            Reporter:
            olo Aleksander Adamowski
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: