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

REGRESSION: 2 JCK1.5-runtime api/javax_crypto tests fail

XMLWordPrintable

    • b44
    • generic, sparc
    • generic, solaris_2.6, solaris_10
    • Verified



      Name: iaR10016 Date: 02/09/2004


      Filed By : J2SE-SQA [###@###.###
      JDK : JDK1.5.0-b37
                        (passes with JDK1.5.0-b32c, JDK1.4.2-b28)
      JCK : JCK1.5-runtime (b12a)
      Platform[s] : all
      switch/Mode : default
      JCK test owner : http://javaweb.eng/jck/usr/owners.jto
      Falling test[s]:
               api/javax_crypto/SealedObject/index2.html#Ctor [Ctor0001]
               api/javax_crypto/NullCipher/index.html#NullCipherTests [NullCipherTests001]

      Two JCK1.5-runtime (b12a) api/javax_crypto tests fail using JDK1.5.0-b37 on all platforms with
      "java.lang.IllegalStateException: Cipher not initialized for encryption/decryption" exception.

      Please, re-assign this bug to "jck/tck_j2se/api_tests" subcategory if you think this is a test
      failure. Please, see also bug 4987653.

      Test source location:
      =====================
      /java/re/jck/1.5/promoted/beta/b12a/binaries/JCK-runtime-15/tests/api/javax_crypto/SealedObject/CtorTests.java
      /java/re/jck/1.5/promoted/beta/b12a/binaries/JCK-runtime-15/tests/api/javax_crypto/NullCipher/NullCipherTests.java

      jtr file location:
      ==================
      /net/jtgb4u4c.sfbay/export/sail15/results.2/tiger/b37/jck15/linux/mercury_gnome_plugin_mz1.4_linux-17/workDir/api/javax_crypto/SealedObject/index2_Ctor.jtr
      /net/jtgb4u4c.sfbay/export/sail15/results.2/tiger/b37/jck15/linux/mercury_gnome_plugin_mz1.4_linux-17/workDir/api/javax_crypto/NullCipher/index_NullCipherTests.jtr

      How to reproduce:
      =================
      Run the following script (you may need to change its variables)

      --- script start ---
      #!/bin/sh

      #Paths in Java Software:
      JDK="/java/re/jdk/1.5.0/promoted/all/b37/binaries/linux-i586"
      JCK="/java/re/jck/1.5/promoted/beta/b12a/binaries/JCK-runtime-15"

      #Alternative paths outside Java Software
      #JDK="/net/koori.sfbay/onestop/jdk/1.5.0/promoted/all/b37/binaries/linux-i586"
      #JCK="/net/koori.sfbay/onestop/jck/1.5/promoted/beta/b12a/binaries/JCK-runtime-15"

      #Alternative paths for the NSK site:
      #JCK="/net/linux-15/export/home/java/jck1.5/JCK-runtime-15"
      #JDK="/net/linux-15/export/home/java/jdk1.5.0/linux"

      export CLASSPATH="$JCK/classes:$JCK/lib/javatest.jar"
      echo `cat $JCK/build.txt | grep JCK_VERSION` `cat $JCK/build.txt | grep JCK_BUILD`

      $JDK/bin/java -showversion javasoft.sqe.tests.api.javax.crypto.NullCipher.NullCipherTests -TestCaseID NullCipherTests001
      echo =====================================================================================
      $JDK/bin/java javasoft.sqe.tests.api.javax.crypto.SealedObject.CtorTests -TestCaseID Ctor0001
      --- script end ---

      Test output:
      ============
      JCK_VERSION=1.5 JCK_BUILD_ID=b12a
      java version "1.5.0-beta2"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-beta2-b37)
      Java HotSpot(TM) Client VM (build 1.5.0-beta2-b37, mixed mode)

      NullCipherTests001: Unexpected exception received.
      java.lang.IllegalStateException: Cipher not initialized for encryption/decryption
           at javax.crypto.Cipher.c(DashoA6275)
           at javax.crypto.Cipher.doFinal(DashoA6275)
           at javasoft.sqe.tests.api.javax.crypto.NullCipher.NullCipherTests.NullCipherTests001(NullCipherTests.java:40)
           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
           at java.lang.reflect.Method.invoke(Method.java:494)
           at javasoft.sqe.javatest.lib.MultiTest.invokeTestCase(MultiTest.java:399)
           at javasoft.sqe.javatest.lib.MultiTest.run(MultiTest.java:195)
           at javasoft.sqe.javatest.lib.MultiTest.run(MultiTest.java:127)
           at javasoft.sqe.tests.api.javax.crypto.NullCipher.NullCipherTests.main(NullCipherTests.java:61)

      NullCipherTests001: Failed. Unexpected Exception: java.lang.IllegalStateException: Cipher not initialized for encryption/decryption
      STATUS:Failed.test cases: 1; all failed; first test case failure: NullCipherTests001
      =====================================================================================
      java.lang.IllegalStateException: Cipher not initialized for encryption/decryption
           at javax.crypto.Cipher.c(DashoA6275)
           at javax.crypto.Cipher.doFinal(DashoA6275)
           at javax.crypto.SealedObject.<init>(DashoA6275)
           at javasoft.sqe.tests.api.javax.crypto.SealedObject.CtorTests.Ctor0001(CtorTests.java:45)
           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
           at java.lang.reflect.Method.invoke(Method.java:494)
           at javasoft.sqe.javatest.lib.MultiTest.invokeTestCase(MultiTest.java:399)
           at javasoft.sqe.javatest.lib.MultiTest.run(MultiTest.java:195)
           at javasoft.sqe.javatest.lib.MultiTest.run(MultiTest.java:127)
           at javasoft.sqe.tests.api.javax.crypto.SealedObject.CtorTests.main(CtorTests.java:28)
      Ctor0001: Failed. Test case throws exception: java.lang.IllegalStateException: Cipher not initialized for encryption/decryption
      STATUS:Failed.test cases: 1; all failed; first test case failure: Ctor0001

      Specific machine info:
      ======================
      Hostname: linux-17
      OS: Mercury
      Hostname: linux-18
      OS: Solaris 10 (x86) (GNOME)

      ======================================================================

            valeriep Valerie Peng
            irasunw Ira Ira (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: