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

REGRESSION: 5 JCK1.5-runtime api tests fail

    Details

    • Subcomponent:
    • Resolved In Build:
      1.3
    • CPU:
      generic
    • OS:
      generic

      Backports

        Description

        Name: iaR10016 Date: 05/31/2004


        Filed By : J2SE-SQA [###@###.###
        JDK : JDK1.5.0-b51 (passes with JCK1.4a/JDK1.4.2-b28)
        JCK : JCK1.5-runtime (b21)
        Platform[s] : all
        switch/Mode : default
        JCK test owner : http://javaweb.sfbay/jcce/tcks/jck/1.5/project/data_reports/owners.jto
        Falling test[s]:
                  api/org_w3c/dom/DOMException/serial/index.html#Input [serial2005, serial2006]
                  api/org_xml/sax/SAXException/serial/index.html#Input [serial2004]
                  api/org_xml/sax/SAXNotRecognizedException/serial/index.html#Input [serial2004]
                  api/org_xml/sax/SAXNotSupportedException/serial/index.html#Input [serial2004]
                  api/org_xml/sax/SAXParseException/serial/index.html#Input [serial2004]

        5 JCK1.5-runtime (b21) tests fail using JDK1.5.0-b51 on all platforms with java.io.InvalidClassException.
        All these tests are in the latest JCK1.5 known failure list because of the bug 5048354 closed as "not a bug".

        These are JCK conformance failures, so either the JDK implementation or the tests should be updated.
        Please, re-assign this bug to jck/tck_j2se/api_tests subcategory if you think the implementation is correct.

        Here is E valuation section of the bug 5048354:
        ...
        the org.xml.sax and org.w3c.dom packages are owned by the SAX Community and the W3C.
        a user will never use Java serialization within these packages, they will XML as an interchange format if necessary.
        ###@###.### 2004-05-26

        Name: ygR10224 Date: 05/27/2004

        Java Object Serialization Specification at:
        http://java.sun.com/j2se/1.4.2/docs/guide/serialization/spec/class.html#wp4100
        considers serialVersionUID change as incompatible.

        This problem has already been arising in Tiger, see 4965006, 4944740, 12586">4912586 for more details.
        Please specify serialVersionUID for these classes.
        ...

        Test source location:
        =====================
        /java/re/jck/1.5/promoted/beta2/b21/binaries/JCK-runtime-15/tests/api/org_w3c/dom/DOMException/serial/InputTests.java
        /java/re/jck/1.5/promoted/beta2/b21/binaries/JCK-runtime-15/tests/api/org_xml/sax/SAXException/serial/InputTests.java
        /java/re/jck/1.5/promoted/beta2/b21/binaries/JCK-runtime-15/tests/api/org_xml/sax/SAXNotRecognizedException/serial/InputTests.java
        /java/re/jck/1.5/promoted/beta2/b21/binaries/JCK-runtime-15/tests/api/org_xml/sax/SAXNotSupportedException/serial/InputTests.java
        /java/re/jck/1.5/promoted/beta2/b21/binaries/JCK-runtime-15/tests/api/org_xml/sax/SAXParseException/serial/InputTests.java

        jtr file location:
        ==================
        /net/jtgb4u4c.sfbay/export/sail15/results.2/tiger/b51-week4/jck15/x86/Solaris_9_x86_CDE__linux-6/workDir/api/org_w3c/dom/DOMException/serial/index_Input.jtr
        /net/jtgb4u4c.sfbay/export/sail15/results.2/tiger/b51-week4/jck15/x86/Solaris_9_x86_CDE__linux-6/workDir/api/org_xml/sax/SAXException/serial/index_Input.jtr
        /net/jtgb4u4c.sfbay/export/sail15/results.2/tiger/b51-week4/jck15/x86/Solaris_9_x86_CDE__linux-6/workDir/api/org_xml/sax/SAXNotRecognizedException/serial/index_Input.jtr
        /net/jtgb4u4c.sfbay/export/sail15/results.2/tiger/b51-week4/jck15/x86/Solaris_9_x86_CDE__linux-6/workDir/api/org_xml/sax/SAXNotSupportedException/serial/index_Input.jtr
        /net/jtgb4u4c.sfbay/export/sail15/results.2/tiger/b51-week4/jck15/x86/Solaris_9_x86_CDE__linux-6/workDir/api/org_xml/sax/SAXParseException/serial/index_Input.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/b51/binaries/solaris-i586"
        JCK="/java/re/jck/1.5/promoted/beta2/b21/binaries/JCK-runtime-15"

        #Alternative paths outside Java Software
        #JDK="/net/koori.sfbay/onestop/jdk/1.5.0/promoted/all/b51/binaries/solaris-i586"
        #JCK="/net/koori.sfbay/onestop/jck/1.5/promoted/beta2/b21/binaries/JCK-runtime-15"

        CLASSPATH="$JCK/classes:$JCK/lib/javatest.jar"
        TEST="javasoft.sqe.tests.api.org.w3c.dom.DOMException.serial.InputTests -TestCaseID serial2005 serial2006"
        echo `cat $JCK/build.txt | grep JCK_VERSION` `cat $JCK/build.txt | grep JCK_BUILD`
        $JDK/bin/java -showversion -cp $CLASSPATH $TEST
        --- script end ---

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

        serial2005: Failed. FAILED
        serial2006: Failed. FAILED
        Checking for JDK Version : 1.4
        Creating StreamObject from spec
        Setting the value of serial fields
        Converting the StreamObject to Object
        I/O error. Got exception:
        java.io.InvalidClassException: org.w3c.dom.DOMException; local class incompatible: stream classdesc serialVersionUID = 6627732366795969916, local class serialVersionUID = -3883659305141610252
                  at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:519)
                  at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1543)
                  at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1457)
                  at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1690)
                  at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1296)
                  at java.io.ObjectInputStream.readObject(ObjectInputStream.java:339)
                  at javasoft.sqe.serial.util.Convert.readObjectFromByteArray(Convert.java:120)
                  at javasoft.sqe.serial.util.Convert.streamObjectToObject(Convert.java:53)
                  at javasoft.sqe.tests.api.org.w3c.dom.DOMException.serial.InputTests.serial2005(InputTests.java:87)
                  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:582)
                  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.org.w3c.dom.DOMException.serial.InputTests.main(InputTests.java:33)
        Checking for JDK Version : 1.5
        Creating StreamObject from spec
        Setting the value of serial fields
        Converting the StreamObject to Object
        I/O error. Got exception:
        java.io.InvalidClassException: org.w3c.dom.DOMException; local class incompatible: stream classdesc serialVersionUID = 6627732366795969916, local class serialVersionUID = -3883659305141610252
                  at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:519)
                  at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1543)
                  at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1457)
                  at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1690)
                  at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1296)
                  at java.io.ObjectInputStream.readObject(ObjectInputStream.java:339)
                  at javasoft.sqe.serial.util.Convert.readObjectFromByteArray(Convert.java:120)
                  at javasoft.sqe.serial.util.Convert.streamObjectToObject(Convert.java:53)
                  at javasoft.sqe.tests.api.org.w3c.dom.DOMException.serial.InputTests.serial2005(InputTests.java:87)
                  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:582)
                  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.org.w3c.dom.DOMException.serial.InputTests.main(InputTests.java:33)
        serial2005 failed.
        Checking for JDK Version : 1.4
        Creating StreamObject from spec
        Setting the value of serial fields
        Converting the StreamObject to Object
        I/O error. Got exception:
        java.io.InvalidClassException: org.w3c.dom.DOMException; local class incompatible: stream classdesc serialVersionUID = 6627732366795969916, local class serialVersionUID = -3883659305141610252
                  at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:519)
                  at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1543)
                  at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1457)
                  at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1690)
                  at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1296)
                  at java.io.ObjectInputStream.readObject(ObjectInputStream.java:339)
                  at javasoft.sqe.serial.util.Convert.readObjectFromByteArray(Convert.java:120)
                  at javasoft.sqe.serial.util.Convert.streamObjectToObject(Convert.java:53)
                  at javasoft.sqe.tests.api.org.w3c.dom.DOMException.serial.InputTests.serial2006(InputTests.java:169)
                  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:582)
                  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.org.w3c.dom.DOMException.serial.InputTests.main(InputTests.java:33)
        Checking for JDK Version : 1.5
        Creating StreamObject from spec
        Setting the value of serial fields
        Converting the StreamObject to Object
        I/O error. Got exception:
        java.io.InvalidClassException: org.w3c.dom.DOMException; local class incompatible: stream classdesc serialVersionUID = 6627732366795969916, local class serialVersionUID = -3883659305141610252
                  at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:519)
                  at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1543)
                  at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1457)
                  at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1690)
                  at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1296)
                  at java.io.ObjectInputStream.readObject(ObjectInputStream.java:339)
                  at javasoft.sqe.serial.util.Convert.readObjectFromByteArray(Convert.java:120)
                  at javasoft.sqe.serial.util.Convert.streamObjectToObject(Convert.java:53)
                  at javasoft.sqe.tests.api.org.w3c.dom.DOMException.serial.InputTests.serial2006(InputTests.java:169)
                  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:582)
                  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.org.w3c.dom.DOMException.serial.InputTests.main(InputTests.java:33)
        serial2006 failed.
        STATUS:Failed.test cases: 2; all failed; first test case failure: serial2005

        Specific machine info:
        ======================
        Hostname: linux-1
        OS: Solaris 8 (sparc) (CDE)
        Hostname: linux-12
        OS: Suse Linux 9.0 (GNOME2)
        Hostname: linux-4
        OS: Turbo Linux 8.0 (GNOME)
        Hostname: linux-6
        OS: Solaris 9 (x86) (CDE)
        Hostname: linux-9
        OS: Windows XP Pro

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

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  rmandavasunw Ramesh Mandava (Inactive)
                  Reporter:
                  irasunw Ira Ira (Inactive)
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  0 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Imported:
                    Indexed: