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

Failing PKCS regression tests, sun.security.pkcs11 does not exist.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 6
    • 6
    • security-libs
    • None

      The following tests are failing in linux-amd64 only.

      TEST: sun/security/pkcs11/Secmod/TrustAnchors.java
      TEST: sun/security/pkcs11/Secmod/GetPrivateKey.java

      It seems to be the same underlying problem.

      Can you please look into this and advise if the tests or the make files need updating.

      Brad


      ACTION: compile -- Failed. Compilation failed
      REASON: .class file out of date or does not exist
      TIME: 1.058 seconds
      STDOUT:
      STDERR:
      /usr/security/ws/mustang-integrations/ws/test/linux-amd64/J2SE_TESTS/sun/securit
      y/pkcs11/Secmod/GetPrivateKey.java:15: package sun.security.pkcs11 does not exis
      t
      import sun.security.pkcs11.*;
      ^
      /usr/security/ws/mustang-integrations/ws/test/linux-amd64/J2SE_TESTS/sun/securit
      y/pkcs11/Secmod/GetPrivateKey.java:16: package sun.security.pkcs11.Secmod does n
      ot exist
      import sun.security.pkcs11.Secmod.*;
      ^
      /usr/security/ws/mustang-integrations/ws/test/linux-amd64/J2SE_TESTS/sun/securit
      y/pkcs11/Secmod/GetPrivateKey.java:23: cannot find symbol
      symbol : class Secmod
      location: class GetPrivateKey
              Secmod secmod = Secmod.getInstance();
              ^
      /usr/security/ws/mustang-integrations/ws/test/linux-amd64/J2SE_TESTS/sun/securit
      y/pkcs11/Secmod/GetPrivateKey.java:23: cannot find symbol
      symbol : variable Secmod
      location: class GetPrivateKey
              Secmod secmod = Secmod.getInstance();
                              ^
      /usr/security/ws/mustang-integrations/ws/test/linux-amd64/J2SE_TESTS/sun/securit
      y/pkcs11/Secmod/GetPrivateKey.java:26: cannot find symbol
      symbol : class Module
      location: class GetPrivateKey
              List<Module> modules = secmod.getModules();
                   ^
      /usr/security/ws/mustang-integrations/ws/test/linux-amd64/J2SE_TESTS/sun/securit
      y/pkcs11/Secmod/GetPrivateKey.java:29: cannot find symbol
      symbol : variable ModuleType
      location: class GetPrivateKey
              Provider p = secmod.getModule(ModuleType.KEYSTORE).getProvider();
                                            ^
      6 errors

      TEST RESULT: Failed. Compilation failed
      --------------------------------------------------

      ###@###.### 2005-05-24 21:13:32 GMT
      The following tests failed in PIT B53 not only on Linux AMD64, they also failed on Linux i586, Solaris S10, Solaris S9 and Windows i586 platforms:

      * sun/security/pkcs11/Secmod/GetPrivateKey.java: make sure we can access the NSS softtoken KeyStore and use a private key
      * sun/security/pkcs11/Secmod/TrustAnchors.java: make sure we can access the NSS trust anchor module
      * sun/security/pkcs11/Secmod/AddTrustedCert.java

      After rerunning on a fresh copy of test workspace, the above tests are PASS.
      This bug is fixed and verified on Mustang PIT b53.

            andreas Andreas Sterbenz
            wetmore Bradford Wetmore
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: