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

sun/security/pkcs11/SecureRandom/TestDeserialization.java fails intermittently: Initialization failed

    Details

      Description

      sun/security/pkcs11/SecureRandom/TestDeserialization.java

      Observed test fails intermittently.

      ----------System.out:(5/296)----------
      libsoftokn3 version = 3.1430. ECC Extended.
      Beginning test run TestDeserialization...
      Running test with provider SunPKCS11-Solaris (security manager disabled) ...
      Provider SunPKCS11-Solaris version 9 does not support SecureRandom, skipping
      Completed test with provider SunPKCS11-Solaris (1 ms).
      ----------System.err:(43/2884)----------
      java.security.NoSuchAlgorithmException: no such algorithm: PKCS11 for provider SunPKCS11-Solaris
      at java.base/sun.security.jca.GetInstance.getService(GetInstance.java:101)
      at java.base/sun.security.jca.GetInstance.getInstance(GetInstance.java:218)
      at java.base/java.security.SecureRandom.getInstance(SecureRandom.java:452)
      at TestDeserialization.main(TestDeserialization.java:51)
      at PKCS11Test.premain(PKCS11Test.java:166)
      at PKCS11Test.testDefault(PKCS11Test.java:253)
      at PKCS11Test.main(PKCS11Test.java:201)
      at PKCS11Test.main(PKCS11Test.java:178)
      at TestDeserialization.main(TestDeserialization.java:70)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:564)
      at com.sun.javatest.regtest.agent.MainActionHelper$SameVMRunnable.run(MainActionHelper.java:230)
      at java.base/java.lang.Thread.run(Thread.java:844)
      java.security.ProviderException: Initialization failed
      at jdk.crypto.cryptoki/sun.security.pkcs11.SunPKCS11.<init>(SunPKCS11.java:382)
      at jdk.crypto.cryptoki/sun.security.pkcs11.SunPKCS11$1.run(SunPKCS11.java:113)
      at jdk.crypto.cryptoki/sun.security.pkcs11.SunPKCS11$1.run(SunPKCS11.java:110)
      at java.base/java.security.AccessController.doPrivileged(Native Method)
      at jdk.crypto.cryptoki/sun.security.pkcs11.SunPKCS11.configure(SunPKCS11.java:110)
      at PKCS11Test.getSunPKCS11(PKCS11Test.java:150)
      at PKCS11Test.testNSS(PKCS11Test.java:521)
      at PKCS11Test.main(PKCS11Test.java:202)
      at PKCS11Test.main(PKCS11Test.java:178)
      at TestDeserialization.main(TestDeserialization.java:70)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:564)
      at com.sun.javatest.regtest.agent.MainActionHelper$SameVMRunnable.run(MainActionHelper.java:230)
      at java.base/java.lang.Thread.run(Thread.java:844)
      Caused by: java.io.IOException: ld.so.1: java: fatal: Java_sun_nio_ch_FileChannelImpl_unmap0: can't find symbol
      at jdk.crypto.cryptoki/sun.security.pkcs11.wrapper.PKCS11.connect(Native Method)
      at jdk.crypto.cryptoki/sun.security.pkcs11.wrapper.PKCS11.<init>(PKCS11.java:141)
      at jdk.crypto.cryptoki/sun.security.pkcs11.wrapper.PKCS11.getInstance(PKCS11.java:154)
      at jdk.crypto.cryptoki/sun.security.pkcs11.SunPKCS11.<init>(SunPKCS11.java:319)
      ... 15 more

        Attachments

          Activity

            People

            • Assignee:
              rhalade Rajan Halade
              Reporter:
              amlu Amy Lu (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: