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

PKCS11/NSS tests failing intermittently on Windows

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 8
    • Fix Version/s: 9
    • Component/s: security-libs
    • Labels:

      Backports

        Description

        PKCS11 tests that use the Network Security Services (NSS) available in our PKCS11 test suite sometimes fail on Windows. The error reported is a Windows side-by-side configuration problem:


        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:409)
                at PKCS11Test.getSunPKCS11(PKCS11Test.java:72)
                at PKCS11Test.testNSS(PKCS11Test.java:358)
                at PKCS11Test.main(PKCS11Test.java:91)
                at TestRSACipher.main(TestRSACipher.java:124)
                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:484)
                at com.sun.javatest.regtest.MainAction$SameVMRunnable.run(MainAction.java:754)
                at java.lang.Thread.run(Thread.java:744)
        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 application has failed to start because its side-by-side configuration is incorrect. Please see the application event log or use the command-line sxstrace.exe tool for more detail.
        C:\\jprt\\T\\P1\\004306.ssteuck\\s\\jdk\\test\\sun\\security\\pkcs11\\nss\\lib\\windows-amd64\\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


        The fix for this issue is to update the NSS libraries bundled with our PKCS11 test suite. NSS 3.16 will be built on Windows using VS2010 and will replace the existing NSS DLLs.

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  vinnie Vincent Ryan
                  Reporter:
                  vinnie Vincent Ryan
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: