-
Bug
-
Resolution: Fixed
-
P3
-
None
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8344468 | 21.0.7-oracle | Shivangi Gupta | P3 | Resolved | Fixed | b01 |
JDK-8346636 | 21.0.7 | Goetz Lindenmaier | P3 | Resolved | Fixed | master |
JDK-8344606 | 17.0.15-oracle | Shivangi Gupta | P3 | Resolved | Fixed | b01 |
JDK-8346644 | 17.0.15 | Goetz Lindenmaier | P3 | Resolved | Fixed | master |
open/test/jdk/sun/security/pkcs11/nss
Tests should not be writing to or changing any files in the source tree. Jtreg provides a scratch directory where temporary files can be created. I would suggest copying these files there before using them.
Stacktrace:
java.security.ProviderException: Initialization failed
at jdk.crypto.cryptoki/sun.security.pkcs11.SunPKCS11.<init>(SunPKCS11.java:393)
at jdk.crypto.cryptoki/sun.security.pkcs11.SunPKCS11$1.run(SunPKCS11.java:128)
at jdk.crypto.cryptoki/sun.security.pkcs11.SunPKCS11$1.run(SunPKCS11.java:125)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:571)
at jdk.crypto.cryptoki/sun.security.pkcs11.SunPKCS11.configure(SunPKCS11.java:125)
at PKCS11Test.getSunPKCS11(PKCS11Test.java:165)
at PKCS11Test.getSunPKCS11(PKCS11Test.java:157)
at PKCS11Test.testNSS(PKCS11Test.java:484)
at PKCS11Test.main(PKCS11Test.java:192)
at PKCS11Test.main(PKCS11Test.java:169)
at RequiredMechCheck.test(RequiredMechCheck.java:77)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.base/java.lang.reflect.Method.invoke(Method.java:573)
at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:132)
at org.testng.internal.TestInvoker.invokeMethod(TestInvoker.java:599)
at org.testng.internal.TestInvoker.invokeTestMethod(TestInvoker.java:174)
at org.testng.internal.MethodRunner.runInSequence(MethodRunner.java:46)
at org.testng.internal.TestInvoker$MethodInvocationAgent.invoke(TestInvoker.java:822)
at org.testng.internal.TestInvoker.invokeTestMethods(TestInvoker.java:147)
at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:146)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:128)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1604)
at org.testng.TestRunner.privateRun(TestRunner.java:764)
at org.testng.TestRunner.run(TestRunner.java:585)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:384)
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:378)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:337)
at org.testng.SuiteRunner.run(SuiteRunner.java:286)
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:53)
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:96)
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1218)
at org.testng.TestNG.runSuitesLocally(TestNG.java:1140)
at org.testng.TestNG.runSuites(TestNG.java:1069)
at org.testng.TestNG.run(TestNG.java:1037)
at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:102)
at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:58)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.base/java.lang.reflect.Method.invoke(Method.java:573)
at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
at java.base/java.lang.Thread.run(Thread.java:1576)
Caused by: sun.security.pkcs11.wrapper.PKCS11Exception: CKR_TOKEN_WRITE_PROTECTED
at jdk.crypto.cryptoki/sun.security.pkcs11.wrapper.PKCS11.C_Initialize(Native Method)
at jdk.crypto.cryptoki/sun.security.pkcs11.wrapper.PKCS11$SynchronizedPKCS11.C_Initialize(PKCS11.java:1717)
at jdk.crypto.cryptoki/sun.security.pkcs11.wrapper.PKCS11.getInstance(PKCS11.java:186)
at jdk.crypto.cryptoki/sun.security.pkcs11.SunPKCS11.<init>(SunPKCS11.java:347)
... 39 more
- backported by
-
JDK-8344468 Test sun/security/pkcs11/Provider/RequiredMechCheck.java needs write access to src tree
- Resolved
-
JDK-8344606 Test sun/security/pkcs11/Provider/RequiredMechCheck.java needs write access to src tree
- Resolved
-
JDK-8346636 Test sun/security/pkcs11/Provider/RequiredMechCheck.java needs write access to src tree
- Resolved
-
JDK-8346644 Test sun/security/pkcs11/Provider/RequiredMechCheck.java needs write access to src tree
- Resolved
- links to
-
Commit(master) openjdk/jdk17u-dev/c6bcba22
-
Commit(master) openjdk/jdk21u-dev/2924515b
-
Commit(master) openjdk/jdk/342fe425
-
Review(master) openjdk/jdk17u-dev/3143
-
Review(master) openjdk/jdk21u-dev/1263
-
Review(master) openjdk/jdk/21665