-
Bug
-
Resolution: Duplicate
-
P2
-
None
-
5.0
-
x86, itanium
-
linux, solaris_9, windows_xp
Name: vsR10238 Date: 08/05/2003
Filed By : J2SE-SQA [###@###.###
JDK : JDK1.5.0-b13
Testbase : Regression-test
Platform[s] : RedHat Linux 2.1 Adv. Server, Windows XP Home, Solaris 9 (x86) (CDE)
switch/Mode : -client, -server
Falling test[s]:
java/io/Serializable/defaulted/GetFieldWrite.java
Regression-test java/io/Serializable/defaulted/GetFieldWrite.java fails on JDK1.5.0-b13:
Test threw exception: java.io.InvalidClassException: TestClass; local class incompatible: stream classdesc serialVersionUID = -1048653246044058413, local class serialVersionUID = 5748652654655279289
The test passes with JDK1.4.2 (tested with b28), JDK1.4.2_01 (tested with b02), JDK1.5.0-b12.
Test source location:
=====================
/java/re/jdk/1.5.0/promoted/latest/ws/j2se/test/java/io/Serializable/defaulted/GetFieldWrite.java
jtr file location:
==================
/net/jtgb4u4c.sfbay/export/sail15/results/tiger/b13/regtest/x86/sol9_x86_cde_smp_linux-6/workDir/test/java/io/Serializable/defaulted/GetFieldWrite.jtr
How to reproduce:
=================
Run the following script (you may need to change its variables)
--- script start ---
#!/bin/sh
RESULT_DIR=`pwd`
WORK_DIR=$RESULT_DIR/workDir/test
REPORT_DIR=$RESULT_DIR/reportDir
JT_HOME="/net/linux-15/export/home/java/jct"
JAVA_HOME="/net/linux-15/export/home/java/jdk1.5.0/x86"
TEST_BASE_PATH="/net/linux-15/export/home/java/regtest/test"
TESTWITH=$JAVA_HOME
TESTJAVA=$JAVA_HOME
JTOPTS="-server"
TESTVMOPTS="-server"
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,HOME=$HOME/.regtest,PATH=/bin:/usr/bin,CPAPPEND=$JT_HOME/jemmy/jemmy.jar,TZ=,LC_ALL=en_US,LC_CTYPE=en_US,LANG=en_US,LPDEST= -DDISPLAY=:0 -DlocalHost="linux-6" -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/java/io/Serializable/defaulted/GetFieldWrite.java"
--- script end ---
Test output (jtr part):
=======================
----------System.out:(0/0)----------
----------System.err:(0/0)----------
result: Passed. Compilation successful
#section:build
----------messages:(3/100)----------
command: build GetFieldWrite
reason: Named class compiled on demand
elapsed time (seconds): 0.0060
result: Passed. No need to compile: GetFieldWrite.java
#section:main
----------messages:(3/113)----------
command: main GetFieldWrite
reason: User specified action: run main GetFieldWrite
elapsed time (seconds): 0.859
----------System.out:(0/0)----------
----------System.err:(1/15)----------
STATUS:Passed.
result: Passed. Execution successful
#section:clean
----------messages:(3/121)----------
command: clean TestClass
reason: User specified action: run clean GetFieldRead TestClass
elapsed time (seconds): 0.015
result: Passed. Clean successful
#section:build
----------messages:(3/114)----------
command: build GetFieldRead
reason: User specified action: run build GetFieldRead
elapsed time (seconds): 3.205
result: Passed. Compilation successful
#section:compile
----------messages:(3/197)----------
command: compile /net/linux-15/export/home/java/regtest.tiger/test/java/io/Serializable/defaulted/GetFieldRead.java
reason: .class file out of date or does not exist
elapsed time (seconds): 3.203
----------System.out:(0/0)----------
----------System.err:(0/0)----------
result: Passed. Compilation successful
#section:build
----------messages:(3/99)----------
command: build GetFieldRead
reason: Named class compiled on demand
elapsed time (seconds): 0.0070
result: Passed. No need to compile: GetFieldRead.java
#section:main
----------messages:(3/111)----------
command: main GetFieldRead
reason: User specified action: run main GetFieldRead
elapsed time (seconds): 0.801
----------System.out:(0/0)----------
----------System.err:(19/1538)----------
java.io.InvalidClassException: TestClass; local class incompatible: stream classdesc serialVersionUID = -1048653246044058413, local class serialVersionUID = 5748652654655279289
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.readObject(ObjectInputStream.java:324)
at GetFieldRead.main(GetFieldRead.java:85)
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:324)
at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:82)
at java.lang.Thread.run(Thread.java:549)
JavaTest Message: Test threw exception: java.io.InvalidClassException: TestClass; local class incompatible: stream classdesc serialVersionUID = -1048653246044058413, local class serialVersionUID =
5748652654655279289
JavaTest Message: shutting down test
STATUS:Failed.`main' threw exception: java.io.InvalidClassException: TestClass; local class incompatible: stream classdesc serialVersionUID = -1048653246044058413, local class serialVersionUID =
5748652654655279289
result: Failed. Execution failed: `main' threw exception: java.io.InvalidClassException: TestClass; local class incompatible: stream classdesc serialVersionUID = -1048653246044058413, local class
serialVersionUID = 5748652654655279289
test result: Failed. Execution failed: `main' threw exception: java.io.InvalidClassException: TestClass; local class incompatible: stream classdesc serialVersionUID = -1048653246044058413, local class
serialVersionUID = 5748652654655279289
Specific machine info:
======================
Hostname: JCC-ITANIUM-01
OS: RedHat Linux 2.1 Adv. Server
Hostname: linux-21
OS: Windows XP Home
Hostname: linux-6
OS: Solaris 9 (x86) (CDE)
======================================================================
- duplicates
-
JDK-4890903 buggy reg test java/io/Serializable/defaulted/GetFieldWrite.jtr
-
- Closed
-