java.security.ProviderException: Initialization failed at sun.security.pkcs11.SunPKCS11.<init>(jdk.crypto.pkcs11@9-internal/SunPKCS11.java:380) at sun.security.pkcs11.SunPKCS11$1.run(jdk.crypto.pkcs11@9-internal/SunPKCS11.java:111) at sun.security.pkcs11.SunPKCS11$1.run(jdk.crypto.pkcs11@9-internal/SunPKCS11.java:108) at java.security.AccessController.doPrivileged(java.base@9-internal/Native Method) at sun.security.pkcs11.SunPKCS11.configure(jdk.crypto.pkcs11@9-internal/SunPKCS11.java:108)

JDK Bug System | Xue-Lei Fan | 10 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Note: C:\jprt\T\P1\221154.vpeng\s\jdk\test\sun\security\pkcs11\PKCS11Test.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. ACTION: main -- Failed. Execution failed: `main' threw exception: java.security.ProviderException: Initialization failed REASON: User specified action: run main/othervm SupportedDHKeys TIME: 0.281 seconds messages: command: main SupportedDHKeys reason: User specified action: run main/othervm SupportedDHKeys elapsed time (seconds): 0.281 STDOUT: libsoftokn3 version = 3.16. ECC Extended. Beginning test run SupportedDHKeys... STDERR: java.security.ProviderException: Initialization failed at sun.security.pkcs11.SunPKCS11.<init>(jdk.crypto.pkcs11@9-internal/SunPKCS11.java:380) at sun.security.pkcs11.SunPKCS11$1.run(jdk.crypto.pkcs11@9-internal/SunPKCS11.java:111) at sun.security.pkcs11.SunPKCS11$1.run(jdk.crypto.pkcs11@9-internal/SunPKCS11.java:108) at java.security.AccessController.doPrivileged(java.base@9-internal/Native Method) at sun.security.pkcs11.SunPKCS11.configure(jdk.crypto.pkcs11@9-internal/SunPKCS11.java:108) at PKCS11Test.getSunPKCS11(PKCS11Test.java:151) at PKCS11Test.testNSS(PKCS11Test.java:518) at PKCS11Test.main(PKCS11Test.java:203) at SupportedDHKeys.main(SupportedDHKeys.java:125) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(java.base@9-internal/Native Method) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(java.base@9-internal/NativeMethodAccessorImpl.java:62) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(java.base@9-internal/DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(java.base@9-internal/Method.java:531) at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:110) at java.lang.Thread.run(java.base@9-internal/Thread.java:804) Caused by: java.io.IOException: The specified module could not be found. C:\jprt\T\P1\221154.vpeng\s\jdk\test\sun\security\pkcs11\nss\lib\windows-i586\softokn3.dll at sun.security.pkcs11.wrapper.PKCS11.connect(jdk.crypto.pkcs11@9-internal/Native Method) at sun.security.pkcs11.wrapper.PKCS11.<init>(jdk.crypto.pkcs11@9-internal/PKCS11.java:138) at sun.security.pkcs11.wrapper.PKCS11.getInstance(jdk.crypto.pkcs11@9-internal/PKCS11.java:151) at sun.security.pkcs11.SunPKCS11.<init>(jdk.crypto.pkcs11@9-internal/SunPKCS11.java:317) ... 14 more JavaTest Message: Test threw exception: java.security.ProviderException: Initialization failed JavaTest Message: shutting down test And same goes for the UnsupportedDHKeys test as well. Beginning test run UnsupportedDHKeys... STDERR: java.security.ProviderException: Initialization failed BTW, ------------------------------------------- command: build SupportedDHParamGens reason: Named class compiled on demand elapsed time (seconds): 0.0 ACTION: main -- Error. Agent error: java.lang.Exception: Agent timed out with a timeout of 1800 seconds; check console log for any additional details REASON: User specified action: run main/timeout=450 SupportedDHParamGens 3072 Also found this test failure in a JPRT run: --------------------------------------------------- command: build SupportedDHParamGens reason: Named class compiled on demand elapsed time (seconds): 0.0 ACTION: main -- Error. Agent error: java.lang.Exception: Agent timed out with a timeout of 1800 seconds; check console log for any additional details REASON: User specified action: run main/timeout=450 SupportedDHParamGens 3072 -------------------------------------------

    JDK Bug System | 10 months ago | Xue-Lei Fan
    java.security.ProviderException: Initialization failed at sun.security.pkcs11.SunPKCS11.<init>(jdk.crypto.pkcs11@9-internal/SunPKCS11.java:380) at sun.security.pkcs11.SunPKCS11$1.run(jdk.crypto.pkcs11@9-internal/SunPKCS11.java:111) at sun.security.pkcs11.SunPKCS11$1.run(jdk.crypto.pkcs11@9-internal/SunPKCS11.java:108) at java.security.AccessController.doPrivileged(java.base@9-internal/Native Method) at sun.security.pkcs11.SunPKCS11.configure(jdk.crypto.pkcs11@9-internal/SunPKCS11.java:108)
  2. 0

    Note: C:\jprt\T\P1\221154.vpeng\s\jdk\test\sun\security\pkcs11\PKCS11Test.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. ACTION: main -- Failed. Execution failed: `main' threw exception: java.security.ProviderException: Initialization failed REASON: User specified action: run main/othervm SupportedDHKeys TIME: 0.281 seconds messages: command: main SupportedDHKeys reason: User specified action: run main/othervm SupportedDHKeys elapsed time (seconds): 0.281 STDOUT: libsoftokn3 version = 3.16. ECC Extended. Beginning test run SupportedDHKeys... STDERR: java.security.ProviderException: Initialization failed at sun.security.pkcs11.SunPKCS11.<init>(jdk.crypto.pkcs11@9-internal/SunPKCS11.java:380) at sun.security.pkcs11.SunPKCS11$1.run(jdk.crypto.pkcs11@9-internal/SunPKCS11.java:111) at sun.security.pkcs11.SunPKCS11$1.run(jdk.crypto.pkcs11@9-internal/SunPKCS11.java:108) at java.security.AccessController.doPrivileged(java.base@9-internal/Native Method) at sun.security.pkcs11.SunPKCS11.configure(jdk.crypto.pkcs11@9-internal/SunPKCS11.java:108) at PKCS11Test.getSunPKCS11(PKCS11Test.java:151) at PKCS11Test.testNSS(PKCS11Test.java:518) at PKCS11Test.main(PKCS11Test.java:203) at SupportedDHKeys.main(SupportedDHKeys.java:125) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(java.base@9-internal/Native Method) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(java.base@9-internal/NativeMethodAccessorImpl.java:62) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(java.base@9-internal/DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(java.base@9-internal/Method.java:531) at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:110) at java.lang.Thread.run(java.base@9-internal/Thread.java:804) Caused by: java.io.IOException: The specified module could not be found. C:\jprt\T\P1\221154.vpeng\s\jdk\test\sun\security\pkcs11\nss\lib\windows-i586\softokn3.dll at sun.security.pkcs11.wrapper.PKCS11.connect(jdk.crypto.pkcs11@9-internal/Native Method) at sun.security.pkcs11.wrapper.PKCS11.<init>(jdk.crypto.pkcs11@9-internal/PKCS11.java:138) at sun.security.pkcs11.wrapper.PKCS11.getInstance(jdk.crypto.pkcs11@9-internal/PKCS11.java:151) at sun.security.pkcs11.SunPKCS11.<init>(jdk.crypto.pkcs11@9-internal/SunPKCS11.java:317) ... 14 more JavaTest Message: Test threw exception: java.security.ProviderException: Initialization failed JavaTest Message: shutting down test And same goes for the UnsupportedDHKeys test as well. Beginning test run UnsupportedDHKeys... STDERR: java.security.ProviderException: Initialization failed BTW, ------------------------------------------- command: build SupportedDHParamGens reason: Named class compiled on demand elapsed time (seconds): 0.0 ACTION: main -- Error. Agent error: java.lang.Exception: Agent timed out with a timeout of 1800 seconds; check console log for any additional details REASON: User specified action: run main/timeout=450 SupportedDHParamGens 3072 Also found this test failure in a JPRT run: --------------------------------------------------- command: build SupportedDHParamGens reason: Named class compiled on demand elapsed time (seconds): 0.0 ACTION: main -- Error. Agent error: java.lang.Exception: Agent timed out with a timeout of 1800 seconds; check console log for any additional details REASON: User specified action: run main/timeout=450 SupportedDHParamGens 3072 -------------------------------------------

    JDK Bug System | 10 months ago | Xue-Lei Fan
    java.security.ProviderException: Initialization failed at sun.security.pkcs11.SunPKCS11.<init>(jdk.crypto.pkcs11@9-internal/SunPKCS11.java:380) at sun.security.pkcs11.SunPKCS11$1.run(jdk.crypto.pkcs11@9-internal/SunPKCS11.java:111) at sun.security.pkcs11.SunPKCS11$1.run(jdk.crypto.pkcs11@9-internal/SunPKCS11.java:108) at java.security.AccessController.doPrivileged(java.base@9-internal/Native Method) at sun.security.pkcs11.SunPKCS11.configure(jdk.crypto.pkcs11@9-internal/SunPKCS11.java:108)

    Root Cause Analysis

    1. java.security.ProviderException

      Initialization failed at sun.security.pkcs11.SunPKCS11.<init>(jdk.crypto.pkcs11@9-internal/SunPKCS11.java:380) at sun.security.pkcs11.SunPKCS11$1.run(jdk.crypto.pkcs11@9-internal/SunPKCS11.java:111) at sun.security.pkcs11.SunPKCS11$1.run(jdk.crypto.pkcs11@9-internal/SunPKCS11.java:108) at java.security.AccessController.doPrivileged(java.base@9-internal/Native Method) at sun.security.pkcs11.SunPKCS11.configure(jdk.crypto.pkcs11@9-internal/SunPKCS11.java:108)

      at PKCS11Test.getSunPKCS11()
    2. Unknown
      SupportedDHKeys.main
      1. PKCS11Test.getSunPKCS11(PKCS11Test.java:151)
      2. PKCS11Test.testNSS(PKCS11Test.java:518)
      3. PKCS11Test.main(PKCS11Test.java:203)
      4. SupportedDHKeys.main(SupportedDHKeys.java:125)
      4 frames