java.lang.NoClassDefFoundError: Could not initialize class javax.crypto.JceSecurity
at javax.crypto.Cipher.getInstance(Cipher.java:499)
at org.jboss.aerogear.simplepush.util.CryptoUtil.encrypt(CryptoUtil.java:50)
OpenJDK
java.security.NoSuchAlgorithmException: SHA1PRNG SecureRandom not available
at sun.security.jca.GetInstance.getInstance(GetInstance.java:159)
at java.security.SecureRandom.getInstance(SecureRandom.java:276)
at org.jboss.aerogear.simplepush.util.CryptoUtil.key(CryptoUtil.java:75)
I'll investigate it further and let you know.
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
Daniel Bevenius thanks for the hint.
However, RHEL 6.4 does not enable NSS support, see https://bugzilla.redhat.com/show_bug.cgi?id=966458 and https://bugzilla.redhat.com/show_bug.cgi?id=831734.
I configured it to use NSS for both OpenJDK and Oracle JDK, but still it won't behave the same. Now the tests are failing with:
Oracle JDK:
java.lang.NoClassDefFoundError: Could not initialize class javax.crypto.JceSecurity at javax.crypto.Cipher.getInstance(Cipher.java:499) at org.jboss.aerogear.simplepush.util.CryptoUtil.encrypt(CryptoUtil.java:50)OpenJDK
java.security.NoSuchAlgorithmException: SHA1PRNG SecureRandom not available at sun.security.jca.GetInstance.getInstance(GetInstance.java:159) at java.security.SecureRandom.getInstance(SecureRandom.java:276) at org.jboss.aerogear.simplepush.util.CryptoUtil.key(CryptoUtil.java:75)I'll investigate it further and let you know.