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

RegTest-cte CTE_REGTEST/Generic/4728756/CopyObjectTest.java fails

XMLWordPrintable

    • beta
    • generic, x86
    • generic, windows_xp
    • Verified



      Name: mmR10223 Date: 08/14/2003


      Filed By : J2SE-SQA [###@###.###
      JDK : JDK1.5.0-b14,(also fails using JDK1.5.0-b13, JDK1.4.2-b28)
      Testbase : RegTest-cte
      Platform[s] : all
      switch/Mode : default
      Falling test[s]: CTE_REGTEST/Generic/4728756/CopyObjectTest.java

      This test fails because serialVersionUID is changed.

      Test source location:
      =====================
      /net/jdk/export/jpse04/Regression/1.4.2/test/CTE_REGTEST/Generic/4728756/CopyObjectTest.java

      jtr file location:
      ==================
      /net/jtgb4u4c.sfbay/export/sail15/results.2/tiger/b14/regtest/win32/winXP_linux-16/workDir/cte/CTE_REGTEST/Generic/4728756/CopyObjectTest.jtr

      How to reproduce:
      =================
      Run the following script (you may need to change its variables)
      1.
      --- script start ---
      #!/bin/sh

      RESULT_DIR=`pwd`
      WORK_DIR=$RESULT_DIR/workDir/test
      REPORT_DIR=$RESULT_DIR/reportDir
      JT_HOME="h:/java/jct"
      JAVA_HOME="h:/java/jdk1.5.0/win32"
      TEST_BASE_PATH="h:/java/regtest/cte"

      TESTWITH=$JAVA_HOME
      TESTJAVA=$JAVA_HOME

      JTOPTS="-client"
      TESTVMOPTS="-client"

      CLASSPATH="$JT_HOME/classes;$JT_HOME/lib/javatest.jar;$JT_HOME/lib/jtreg.jar;$JT_HOME/jemmy/jemmy.jar"

      export JAVA_HOME
      export JT_HOME
      export TESTWITH
      export CLASSPATH

      mkdir -p $WORK_DIR/scratch 2>&1
      mkdir -p $WORK_DIR/jtData 2>&1
      mkdir -p $REPORT_DIR 2>&1

      #rm $WORK_DIR/jtData/ResultCache.jtw 2>&1

      cd $WORK_DIR/scratch

      $JAVA_HOME/bin/java -cp $CLASSPATH $JTOPTS -DenvVars=TESTJAVAHOME=$JAVA_HOME,TESTVMOPTS=$TESTVMOPTS,DISPLAY=:0,windir=$windir,PATH=${SHELL%/*},CPAPPEND=$JT_HOME/jemmy/jemmy.jar,TZ=,LC_ALL=en_US,LC_CTYPE=en_US,LANG=en_US,LPDEST= -DDISPLAY=:0 -DlocalHost="linux-16" -Dprogram=jtreg com.sun.javatest.regtest.Main -a -v default -batch -params -w "$WORK_DIR" -r "$REPORT_DIR" -t "$TEST_BASE_PATH" "$TEST_BASE_PATH/CTE_REGTEST/Generic/4728756/CopyObjectTest.java"

      --- script end ---

      Script output:
      ==============
      java.io.InvalidClassException: org.jdom.ContentList; local class incompatible: stream classdesc serialVersionUID = 2538757491961584982, local class serialVersionUID = -3949237083401798154
      at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:463)
      at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1521)
      at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1435)
      at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1626)
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
      at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1845)
      at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1769)
      at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1646)
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
      at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
      at CopyObjectTest.execute(CopyObjectTest.java:47)
      at CopyObjectTest.main(CopyObjectTest.java:65)


      Test output (jtr part):
      =======================
      ----------System.out:(3/62)----------
       inflated: jdom.jar
       inflated: xml.obj
      Invalid test output
      ----------System.err:(1/36)----------
      java full version "1.5.0-beta-b14"
      result: Failed. Execution failed: exit code 2


      test result: Failed. Execution failed: exit code 2


      Specific machine info:
      ======================
      Hostname: linux-16
      OS: Windows XP Pro
      Hostname: novo48
      OS: Solaris 9 (sparc) (CDE)



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

            asaha Abhijit Saha
            mmvsunw Mmv Mmv (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: