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

sun/security/pkcs11/rsa/TestKeyPairGenerator.java fails due to PKCS11Exception: CKR_FUNCTION_FAILED

XMLWordPrintable

    • b125
    • generic
    • linux, solaris, windows
    • Verified

      This failure was spotted in an Aurora adhoc job:

      sun/security/pkcs11/rsa/TestKeyPairGenerator.java

          This test failed due to 'java.security.ProviderException: sun.security.pkcs11.wrapper.PKCS11Exception:
          CKR_FUNCTION_FAILED"


      Here is a snippet of the .jtr file:

      ----------System.err:(23/1495)----------
      java.security.ProviderException: sun.security.pkcs11.wrapper.PKCS11Exception: CKR_FUNCTION_FAILED
      at sun.security.pkcs11.P11KeyPairGenerator.generateKeyPair(P11KeyPairGenerator.java:386)
      at java.security.KeyPairGenerator$Delegate.generateKeyPair(KeyPairGenerator.java:697)
      at TestKeyPairGenerator.main(TestKeyPairGenerator.java:119)
      at PKCS11Test.premain(PKCS11Test.java:86)
      at PKCS11Test.testNSS(PKCS11Test.java:403)
      at PKCS11Test.main(PKCS11Test.java:96)
      at TestKeyPairGenerator.main(TestKeyPairGenerator.java:97)
      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.MainWrapper$MainThread.run(MainWrapper.java:94)
      at java.lang.Thread.run(Thread.java:745)
      Caused by: sun.security.pkcs11.wrapper.PKCS11Exception: CKR_FUNCTION_FAILED
      at sun.security.pkcs11.wrapper.PKCS11.C_GenerateKeyPair(Native Method)
      at sun.security.pkcs11.P11KeyPairGenerator.generateKeyPair(P11KeyPairGenerator.java:378)
      ... 12 more

      JavaTest Message: Test threw exception: java.security.ProviderException: sun.security.pkcs11.wrapper.PKCS11Exception: CKR_FUNCTION_FAILED
      JavaTest Message: shutting down test

      STATUS:Failed.`main' threw exception: java.security.ProviderException: sun.security.pkcs11.wrapper.PKCS11Exception: CKR_FUNCTION_FAILED

            asmotrak Artem Smotrakov
            dcubed Daniel Daugherty
            Votes:
            0 Vote for this issue
            Watchers:
            16 Start watching this issue

              Created:
              Updated:
              Resolved: