- 
    Bug 
- 
    Resolution: Cannot Reproduce
- 
     P3 P3
- 
    9
- 
        generic
                    Failures on any pkcs11 test can occur with the message "NSS initialization failed".  The exception shows up as: Exception in thread "main" java.lang.reflect.InvocationTargetException
but the details of the cause show the real story:
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)
Why is NSS failing to initialize? I don't know, but I think this is a test issue more than a product issue. This is not seen with Solaris Crypto Framework and does not appear to be from a particular version of NSS at this point. All the bugs that fail with this error will be attached to hopefully show a pattern.
but the details of the cause show the real story:
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)
Why is NSS failing to initialize? I don't know, but I think this is a test issue more than a product issue. This is not seen with Solaris Crypto Framework and does not appear to be from a particular version of NSS at this point. All the bugs that fail with this error will be attached to hopefully show a pattern.
- relates to
- 
                    JDK-8077138 Some PKCS11 tests fail because NSS library is not initialized -           
- Closed
 
-         
- 
                    JDK-8143138 Move sun/security/pkcs11/Secmod/LoadKeystore.java to problem list -           
- Closed
 
-         
- 
                    JDK-8003953 test/sun/security/pkcs11/fips/TrustManagerTest.java failing on S11u1 -           
- Closed
 
-         
- 
                    JDK-8170319 sun/security/pkcs11/fips/ClientJSSEServerJSSE.java failed with the "java.security.ProviderException: Could not initialize NSS" -           
- Closed
 
-