[SWS-444] XwssMessageInterceptorEncryptTest testDecrypt() can be enabled again - problem solution known Created: 02/Nov/08  Updated: 04/May/12  Resolved: 04/Nov/08

Status: Closed
Project: Spring Web Services
Component/s: Security
Affects Version/s: 1.5.4
Fix Version/s: 1.5.5

Type: Improvement Priority: Minor
Reporter: Aleksander Adamowski Assignee: Tareq Abedrabbo
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

JDK 1.6

Attachments: Text File SWS-444.patch    


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
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:

Comment by Arjen Poutsma [ 03/Nov/08 ]

Thanks for pointing this out!

Comment by Tareq Abedrabbo [ 04/Nov/08 ]

Patch. Thanks Aleksander!

Comment by Arjen Poutsma [ 04/May/12 ]

Closing old issues

Generated at Wed Nov 14 00:53:30 UTC 2018 using JIRA 7.9.2#79002-sha1:3bb15b68ecd99a30eb364c4c1a393359bcad6278.