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

jce1.2.1 test suite won't work under JDK1.2.2

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      fontanel
    • CPU:
      x86, sparc
    • OS:
      solaris_7, windows_nt

      Description

      jce1.2.1 test suite won't work under JDK1.2.2
      Note:
          jce1.2.1 test suite work well under JDK1.3

      How to reproduce
      1. bring work space from /net/sqesvr/vsn/SECURITY/jce1.2.1/TestSuite/src
      2. set JAVA_HOME to your JDK such as /home/username/jdk1.2.2
      3. set JCE_HOME to $JAVA_HOME/jre/lib/ext
      4. add the folloing line into your java.policy file
      permission java.security.SecurityPermission "insertProvider.SunJCE";
      permission java.security.SecurityPermission "putProviderProperty.SunJCE";
      5. Run the test suite by "sh Run.sh"
      6. The following exception will be threw:
         Exception in thread "main" java.lang.ExceptionInInitializerError: java.lang.SecurityException: Cannot set up certs for trusted CAs
              at javax.crypto.b.<clinit>([DashoPro-V1.2-120198])
              at javax.crypto.NullCipher.<init>([DashoPro-V1.2-120198], Compiled Code)
              at javax.crypto.CipherInputStream.<init>([DashoPro-V1.2-120198], Compiled Code)
              at MyOwnNullCipherInputStream.<init>(MyOwnNullCipherInputStream.java, Compiled Code)
              at TestCICOChaining.runTest(TestCICOChaining.java, Compiled Code)
              at TestCICOChaining.run(TestCICOChaining.java, Compiled Code)
              at TestCICOChaining.main(TestCICOChaining.java, Compiled Code)



        Attachments

          Issue Links

            Activity

              People

              Assignee:
              shihliu Sharon Liu (Inactive)
              Reporter:
              skesunw Stuart Ke (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: