You are viewing a plain text version of this content. The canonical link for it is here.
Posted to wss4j-dev@ws.apache.org by stlecho <st...@gmail.com> on 2009/03/03 11:04:37 UTC

Test failures when building latest SVN version

Hi,

When building latest SVN version of WSS4J I'm receiving test failures. 
If this is a known issue, when will it be solved ?

Tests in error:
  testEncryptionDecryptionRSA15(wssec.TestWSSecurityNew2)
  testX509Signature(wssec.TestWSSecurityNew3)
  testSAMLUnsignedSenderVouches(wssec.TestWSSecurityNewST1)
  testSAMLSignedSenderVouches(wssec.TestWSSecurityNewST2)
  testDefaultIssuerClass(wssec.TestWSSecurityNewST2)
  testWSS62(wssec.TestWSSecurityNewST2)
  testSAMLSignedKeyHolder(wssec.TestWSSecurityNewST3)
  testX509Signature(wssec.TestWSSecurityCertError)
  testEncryption(wssec.TestWSSecurityCertError)

Stack Traces

java.lang.NullPointerException
        at
org.apache.ws.security.saml.SAMLIssuerImpl.newAssertion(SAMLIssuerImp
l.java:125)
        at
wssec.TestWSSecurityNewST1.testSAMLUnsignedSenderVouches(TestWSSecuri
tyNewST1.java:140)

org.apache.ws.security.WSSecurityException: Cannot encrypt data; nested
exceptio
n is:
        org.apache.xml.security.encryption.XMLEncryptionException: Illegal
key s
ize or default parameters
Original Exception was java.security.InvalidKeyException: Illegal key size
or de
fault parameters
        at
org.apache.ws.security.message.WSSecEncrypt.doEncryption(WSSecEncrypt
.java:583)
-- 
View this message in context: http://www.nabble.com/Test-failures-when-building-latest-SVN-version-tp22305727p22305727.html
Sent from the WSS4J mailing list archive at Nabble.com.


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


RE: Test failures when building latest SVN version

Posted by "Dittmann, Werner (NSN - DE/Munich)" <we...@nsn.com>.
This usually indicates that you need to install the unlimited
strength policy files. Every update of the Java JDK and AFAIK
the Java JRE overwrites previously installed policy files
and thus resets to the "limited" variant of the JCE policy.

Regards,
Werner


> -----Original Message-----
> From: ext Colm O hEigeartaigh [mailto:coheigea@progress.com] 
> Sent: Tuesday, March 03, 2009 11:13 AM
> To: stlecho; wss4j-dev@ws.apache.org
> Subject: RE: Test failures when building latest SVN version
> 
> 
> The tests are fine for me. This error looks like you need to 
> install the
> JCE:
> 
> "Original Exception was java.security.InvalidKeyException: Illegal key
> size
> or default parameters"
> 
> Colm.
> 
> 
> 
> -----Original Message-----
> From: stlecho [mailto:stlecho@gmail.com] 
> Sent: 03 March 2009 10:05
> To: wss4j-dev@ws.apache.org
> Subject: Test failures when building latest SVN version
> 
> 
> Hi,
> 
> When building latest SVN version of WSS4J I'm receiving test 
> failures. 
> If this is a known issue, when will it be solved ?
> 
> Tests in error:
>   testEncryptionDecryptionRSA15(wssec.TestWSSecurityNew2)
>   testX509Signature(wssec.TestWSSecurityNew3)
>   testSAMLUnsignedSenderVouches(wssec.TestWSSecurityNewST1)
>   testSAMLSignedSenderVouches(wssec.TestWSSecurityNewST2)
>   testDefaultIssuerClass(wssec.TestWSSecurityNewST2)
>   testWSS62(wssec.TestWSSecurityNewST2)
>   testSAMLSignedKeyHolder(wssec.TestWSSecurityNewST3)
>   testX509Signature(wssec.TestWSSecurityCertError)
>   testEncryption(wssec.TestWSSecurityCertError)
> 
> Stack Traces
> 
> java.lang.NullPointerException
>         at
> org.apache.ws.security.saml.SAMLIssuerImpl.newAssertion(SAMLIssuerImp
> l.java:125)
>         at
> wssec.TestWSSecurityNewST1.testSAMLUnsignedSenderVouches(TestWSSecuri
> tyNewST1.java:140)
> 
> org.apache.ws.security.WSSecurityException: Cannot encrypt 
> data; nested
> exceptio
> n is:
>         org.apache.xml.security.encryption.XMLEncryptionException:
> Illegal
> key s
> ize or default parameters
> Original Exception was java.security.InvalidKeyException: Illegal key
> size
> or de
> fault parameters
>         at
> org.apache.ws.security.message.WSSecEncrypt.doEncryption(WSSecEncrypt
> .java:583)
> -- 
> View this message in context:
> http://www.nabble.com/Test-failures-when-building-latest-SVN-v
> ersion-tp2
> 2305727p22305727.html
> Sent from the WSS4J mailing list archive at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wss4j-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: wss4j-dev-help@ws.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wss4j-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: wss4j-dev-help@ws.apache.org
> 
> 

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


RE: Test failures when building latest SVN version

Posted by Colm O hEigeartaigh <co...@progress.com>.
The tests are fine for me. This error looks like you need to install the
JCE:

"Original Exception was java.security.InvalidKeyException: Illegal key
size
or default parameters"

Colm.



-----Original Message-----
From: stlecho [mailto:stlecho@gmail.com] 
Sent: 03 March 2009 10:05
To: wss4j-dev@ws.apache.org
Subject: Test failures when building latest SVN version


Hi,

When building latest SVN version of WSS4J I'm receiving test failures. 
If this is a known issue, when will it be solved ?

Tests in error:
  testEncryptionDecryptionRSA15(wssec.TestWSSecurityNew2)
  testX509Signature(wssec.TestWSSecurityNew3)
  testSAMLUnsignedSenderVouches(wssec.TestWSSecurityNewST1)
  testSAMLSignedSenderVouches(wssec.TestWSSecurityNewST2)
  testDefaultIssuerClass(wssec.TestWSSecurityNewST2)
  testWSS62(wssec.TestWSSecurityNewST2)
  testSAMLSignedKeyHolder(wssec.TestWSSecurityNewST3)
  testX509Signature(wssec.TestWSSecurityCertError)
  testEncryption(wssec.TestWSSecurityCertError)

Stack Traces

java.lang.NullPointerException
        at
org.apache.ws.security.saml.SAMLIssuerImpl.newAssertion(SAMLIssuerImp
l.java:125)
        at
wssec.TestWSSecurityNewST1.testSAMLUnsignedSenderVouches(TestWSSecuri
tyNewST1.java:140)

org.apache.ws.security.WSSecurityException: Cannot encrypt data; nested
exceptio
n is:
        org.apache.xml.security.encryption.XMLEncryptionException:
Illegal
key s
ize or default parameters
Original Exception was java.security.InvalidKeyException: Illegal key
size
or de
fault parameters
        at
org.apache.ws.security.message.WSSecEncrypt.doEncryption(WSSecEncrypt
.java:583)
-- 
View this message in context:
http://www.nabble.com/Test-failures-when-building-latest-SVN-version-tp2
2305727p22305727.html
Sent from the WSS4J mailing list archive at Nabble.com.


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


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