JDK-8003953 : test/sun/security/pkcs11/fips/TrustManagerTest.java failing on S11u1
  • Type: Bug
  • Component: security-libs
  • Sub-Component: javax.crypto:pkcs11
  • Affected Version: 7,8
  • Priority: P3
  • Status: Resolved
  • Resolution: Cannot Reproduce
  • OS: solaris_11
  • CPU: sparc
  • Submitted: 2012-11-24
  • Updated: 2016-11-29
  • Resolved: 2013-08-20
Related Reports
Relates :  
Relates :  
Description
This one duplicate every time on t4.ie.oracle.com, a SPARC T4 running S11u1.

Here's sample output with jdk8-b65:

java -cp .:.. TrustManagerTest
Exception in thread "main" java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:395)
        at PKCS11Test.getSunPKCS11(PKCS11Test.java:60)
        at TrustManagerTest.main(TrustManagerTest.java:58)
Caused by: java.security.ProviderException: Could not initialize NSS
        at sun.security.pkcs11.SunPKCS11.<init>(SunPKCS11.java:211)
        at sun.security.pkcs11.SunPKCS11.<init>(SunPKCS11.java:103)
        ... 6 more
Caused by: java.io.IOException: NSS initialization failed
        at sun.security.pkcs11.Secmod.initialize(Secmod.java:220)
        at sun.security.pkcs11.SunPKCS11.<init>(SunPKCS11.java:206)
        ... 7 more

Comments
Ran on b102 on t4.ie.oracle.com and works fine. This is most likely a test issue rather than product see JDK-8023434
20-08-2013

affect test: sun/security/pkcs11/fips/TrustManagerTest.java
20-08-2013