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

JCK1.5-runtime api/java_awt/HeadlessException/serial/index.html#Input fails

XMLWordPrintable

    • b47
    • generic, sparc
    • generic, solaris_2.6
    • Verified



      Name: iaR10016 Date: 03/23/2004


      Filed By : J2SE-SQA [###@###.###
      JDK : JDK1.5.0-b43
                        (passes with JDK1.5.0-b42,
                         the test is not valid for JDK1.4.2)
      JCK : JCK1.5-runtime (b14)
      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/java_awt/HeadlessException/serial/index.html#Input [serial2005]

      JCK1.5-runtime (b14) test api/java_awt/HeadlessException/serial/index.html#Input test fails
      using JDK1.5.0-b43 on all platrforms with java.io.InvalidClassException because SerialVersionUID
      for java.awt.HeadlessException class was changed in JDK1.5.0-b43.

      Test source location:
      =====================
      /java/re/jck/1.5/promoted/beta/b14/binaries/JCK-runtime-15/tests/api/java_awt/HeadlessException/serial/InputTests.java

      jtr file location:
      ==================
      /net/jtgb4u4c.sfbay/export/sail15/results.2/tiger/b43/jck15/linux/Suse_Linux_8_2_GNOME2__linux-2/workDir/api/java_awt/HeadlessException/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/b43/binaries/linux-i586"
      JCK="/java/re/jck/1.5/promoted/beta/b14/binaries/JCK-runtime-15"

      #Alternative paths outside Java Software
      #JDK="/net/koori.sfbay/onestop/jdk/1.5.0/promoted/all/b43/binaries/linux-i586"
      #JCK="/net/koori.sfbay/onestop/jck/1.5/promoted/beta/b14/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"

      CLASSPATH="$JCK/classes:$JCK/lib/javatest.jar"
      TEST="javasoft.sqe.tests.api.java.awt.HeadlessException.serial.InputTests"
      TESTCASES="-TestCaseID serial2005"

      echo `cat $JCK/build.txt | grep JCK_VERSION` `cat $JCK/build.txt | grep JCK_BUILD`
      $JDK/bin/java -showversion -cp $CLASSPATH $TEST $TESTCASES
      --- script end ---

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

      serial2005: Failed. FAILED
      Checking for JDK Version : 1.4
      Creating StreamObject from spec
      Converting the StreamObject to Object
      I/O error. Got exception:
      java.io.InvalidClassException: java.awt.HeadlessException; local class incompatible: stream classdesc serialVersionUID = 167183644944358563, local class serialVersionUID = -4399492591008105442
           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.java.awt.HeadlessException.serial.InputTests.serial2005(InputTests.java:67)
           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:495)
           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.java.awt.HeadlessException.serial.InputTests.main(InputTests.java:33)
      serial2005 failed.
      STATUS:Failed.test cases: 1; all failed; first test case failure: serial2005

      Specific machine info:
      ======================
      Hostname: linux-1
      OS: Solaris 8 (sparc) (CDE)
      Hostname: linux-18
      OS: Solaris 10 (x86) (CDE)
      Hostname: linux-2
      OS: Suse Linux 8.2 (GNOME2)
      Hostname: linux-9
      OS: Windows 2003 (64 bit)

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

            son Oleg Sukhodolsky (Inactive)
            irasunw Ira Ira (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: