Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8023434

NSS initialization failed

XMLWordPrintable

      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.

            jjiang John Jiang
            ascarpino Anthony Scarpino
            Votes:
            0 Vote for this issue
            Watchers:
            11 Start watching this issue

              Created:
              Updated:
              Resolved: