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

Some PKCS11 tests fail because NSS library is not initialized

XMLWordPrintable

    • b137
    • solaris, windows
    • Verified

      There are 56 new failures failed in JDK9 b59 at windows platform(both 32 and 64 builds) with following error message:
      Beginning test run ReinitCipher...
      ----------System.err:(30/1796)*----------
      java.lang.reflect.InvocationTargetException
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      at java.lang.reflect.Constructor.newInstance(Constructor.java:425)
      at PKCS11Test.getSunPKCS11(PKCS11Test.java:77)
      at PKCS11Test.testNSS(PKCS11Test.java:402)
      at PKCS11Test.main(PKCS11Test.java:96)
      at ReinitCipher.main(ReinitCipher.java:42)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:502)
      at com.sun.javatest.regtest.agent.MainActionHelper$SameVMRunnable.run(MainActionHelper.java:218)
      at java.lang.Thread.run(Thread.java:745)
      Caused by: java.security.ProviderException: Initialization failed
      at sun.security.pkcs11.SunPKCS11.<init>(SunPKCS11.java:376)
      at sun.security.pkcs11.SunPKCS11.<init>(SunPKCS11.java:103)
      ... 14 more
      Caused by: java.io.IOException: The specified module could not be found.
      C:\\Users\\aurora\\sandbox\\testbase\\jdk\\test\\sun\\security\\pkcs11\\nss\\lib\\windows-i586\\softokn3.dll
      at sun.security.pkcs11.wrapper.PKCS11.connect(Native Method)
      at sun.security.pkcs11.wrapper.PKCS11.<init>(PKCS11.java:138)
      at sun.security.pkcs11.wrapper.PKCS11.getInstance(PKCS11.java:151)
      at sun.security.pkcs11.SunPKCS11.<init>(SunPKCS11.java:313)
      ... 15 more

            jjiang John Jiang
            zailiu Kevin Liu (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            19 Start watching this issue

              Created:
              Updated:
              Resolved: