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)

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web2

  • via Unknown by Xue-Lei Fan,
  • via Unknown by Xue-Lei Fan,
  • via Unknown by Felix Yang,
  • Stack trace

    • 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)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    We couldn't find other users who have seen this exception.