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

Test sun/security/pkcs11/Secmod/TrustAnchors.java fails on Ubuntu Linux

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 8
    • security-libs
    • JDK 8 b55
      OS Ubuntu Linux 12.04 x64

    • b55
    • 8
    • generic
    • linux_ubuntu

      Testsuite name: regression
      Test name: sun/security/pkcs11/Secmod/TrustAnchors.java
      JDK tested: JDK 8 b80
      OS tested: Ubuntu Linux 12.04 x64
      Is it a regression: No
      Bug introduced in build: JDK 8 b55

      LOG:

      #section:main
      ----------messages:(3/119)----------
      command: main TrustAnchors
      reason: User specified action: run main/othervm TrustAnchors
      elapsed time (seconds): 0.593
      ----------System.out:(1/31)----------
      SunPKCS11-NSSTrust version 1.7
      ----------System.err:(26/1664)----------
      java.lang.RuntimeException: sun.security.pkcs11.wrapper.PKCS11Exception: CKR_ATTRIBUTE_TYPE_INVALID
      at sun.security.pkcs11.Secmod$Module.getTrust(Secmod.java:554)
      at sun.security.pkcs11.Secmod.getModuleTrust(Secmod.java:274)
      at sun.security.pkcs11.Secmod.isTrusted(Secmod.java:266)
      at sun.security.pkcs11.P11KeyStore.mapLabels(P11KeyStore.java:2345)
      at sun.security.pkcs11.P11KeyStore.engineLoad(P11KeyStore.java:754)
      at java.security.KeyStore.load(KeyStore.java:1578)
      at TrustAnchors.main(TrustAnchors.java:59)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:487)
      at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:96)
      at java.lang.Thread.run(Thread.java:722)
      Caused by: sun.security.pkcs11.wrapper.PKCS11Exception: CKR_ATTRIBUTE_TYPE_INVALID
      at sun.security.pkcs11.wrapper.PKCS11.C_GetAttributeValue(Native Method)
      at sun.security.pkcs11.Secmod$TrustAttributes.<init>(Secmod.java:669)
      at sun.security.pkcs11.Secmod.getTrust(Secmod.java:755)
      at sun.security.pkcs11.Secmod.access$100(Secmod.java:62)
      at sun.security.pkcs11.Secmod$Module.getTrust(Secmod.java:552)
      ... 12 more

      JavaTest Message: Test threw exception: java.lang.RuntimeException: sun.security.pkcs11.wrapper.PKCS11Exception: CKR_ATTRIBUTE_TYPE_INVALID
      JavaTest Message: shutting down test

      STATUS:Failed.`main' threw exception: java.lang.RuntimeException: sun.security.pkcs11.wrapper.PKCS11Exception: CKR_ATTRIBUTE_TYPE_INVALID
      result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: sun.security.pkcs11.wrapper.PKCS11Exception: CKR_ATTRIBUTE_TYPE_INVALID


      test result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: sun.security.pkcs11.wrapper.PKCS11Exception: CKR_ATTRIBUTE_TYPE_INVALID

            Unassigned Unassigned
            kshefov Konstantin Shefov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: