JDK-4352271 : jck_regr: api/java_awt/serialization/descriptions.html#GridBagLayout
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 1.4.0
  • Priority: P2
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 2000-07-11
  • Updated: 2000-07-11
  • Resolved: 2000-07-11
Related Reports
Duplicate :  
Description
 tao.zhang@eng 2000-07-11

Please run the following script to reproduce the failure:
/net/sqesvr.eng/export/st3/jdk1.4/bugs/4352271/runit.sh

Test case can be found in:
/net/sqesvr/export/st1/JCK-13/tests/api/java_awt/serialization
JDK version: Merlin B22
JCK version: JCK13

Test:
javasoft.sqe.tests.api.java.awt.serialization.GridBagLayoutTests -TestCaseID ALL -TestURL file:/net/sqesvr/export/st1/JCK-13/tests/api/java_awt/serialization/descriptions.html#GridBagLayout -FileName grbglyut.ser

Output from the jtr file:
#Test Results (version 2)
#Fri Jul 07 22:11:13 PDT 2000
#checksum:3b0569ec755fb1a
#-----testdescription-----
$file=/net/sqesvr/export/st1/JCK-13/tests/api/java_awt/serialization/descriptions.html
$root=/net/sqesvr/export/st1/JCK-13/tests
executeArgs=-TestCaseID ALL -TestURL $testURL -FileName grbglyut.ser
executeClass=javasoft.sqe.tests.api.java.awt.serialization.GridBagLayoutTests
id=GridBagLayout
keywords=awt positive runtime
source=GridBagLayoutTests.java
title=GridBagLayout serialize tests

#-----environment-----
EXECUTE_CLASSPATH=$testSuiteRootDir/../classes$:$javatestClassDir
EXECUTE_FLAGS=
EXECUTE_JAVA=/net/sqesvr/export/st1/jdk14/solaris/bin/java
ExecJCKTestOtherJVMCmd=javasoft.sqe.javatest.lib.ExecJCKTestOtherJVMCmd
LDLIBPATH=$testSuiteRootDir$/..$/lib_solaris$:$PATH
SET_DISPLAY=$host:0.0
SET_HOME=${user.home}
command.testExecute=$ExecJCKTestOtherJVMCmd CLASSPATH=${EXECUTE_CLASSPATH} DISPLAY=${SET_DISPLAY} HOME=${SET_HOME} LD_LIBRARY_PATH=${LDLIBPATH} ${EXECUTE_JAVA} ${EXECUTE_FLAGS} -Xfuture -Djava.security.policy=policy.tmp $testExecuteClass $testExecuteArgs
user.home=/home/smitha

#-----testresult-----
description=file:/net/sqesvr/export/st1/JCK-13/tests/api/java_awt/serialization/descriptions.html#GridBagLayout
end=Fri Jul 07 22:11:13 PDT 2000
environment=jck-runtime-solaris
execStatus=Failed. tests: 2; passed: 1; failed: 1; first test case failure: testRead
javatestOS=SunOS 5.8 (sparc)
javatestVersion=JT_2.1.2j
script=javasoft.sqe.javatest.lib.JCKScript -runtime
sections=script_messages testExecute
start=Fri Jul 07 22:11:09 PDT 2000
status=Failed. tests: 2; passed: 1; failed: 1; first test case failure: testRead
test=api/java_awt/serialization/descriptions.html#GridBagLayout
timeoutSeconds=600
work=/export0/results/bickle.jck13.14.Xint/api/java_awt/serialization

#section:script_messages
----------messages:(1/24)----------
Executing test class...

#section:testExecute
----------messages:(1/559)----------
command: javasoft.sqe.javatest.lib.ExecJCKTestOtherJVMCmd CLASSPATH=/net/sqesvr/export/st1/JCK-13/tests/../classes:/net/sqesvr/export/st1/JCK-13/javatest.jar DISPLAY=:0.0 HOME=/home/smitha LD_LIBRARY_PATH=/net/sqesvr/export/st1/JCK-13/tests/../lib_solaris: /net/sqesvr/export/st1/jdk14/solaris/bin/java -Xfuture -Djava.security.policy=policy.tmp javasoft.sqe.tests.api.java.awt.serialization.GridBagLayoutTests -TestCaseID ALL -TestURL file:/net/sqesvr/export/st1/JCK-13/tests/api/java_awt/serialization/descriptions.html#GridBagLayout -FileName grbglyut.ser
----------ref:(0/0)----------
----------log:(18/1510)----------
java.io.InvalidClassException: java.awt.GridBagLayout; Local class not compatible: stream classdesc serialVersionUID=8838754796412211005 local class serialVersionUID=6500203050018709630
        at java.io.ObjectStreamClass.validateLocalClass(ObjectStreamClass.java:523)
        at java.io.ObjectStreamClass.setClass(ObjectStreamClass.java:567)
        at java.io.ObjectInputStream.inputClassDescriptor(ObjectInputStream.java:936)
        at java.io.ObjectInputStream.readObject(ObjectInputStream.java:366)
        at java.io.ObjectInputStream.readObject(ObjectInputStream.java:236)
        at java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1186)
        at java.io.ObjectInputStream.readObject(ObjectInputStream.java:386)
        at java.io.ObjectInputStream.readObject(ObjectInputStream.java:236)
        at javasoft.sqe.jck.lib.SerializeTest.read(SerializeTest.java:385)
        at javasoft.sqe.jck.lib.SerializeTest.testRead(SerializeTest.java:280)
        at java.lang.reflect.Method.invoke(Native Method)
        at javasoft.sqe.jck.lib.MultiTest.runTests(MultiTest.java:139)
        at javasoft.sqe.jck.lib.MultiTest.run(MultiTest.java:101)
        at javasoft.sqe.tests.api.java.awt.serialization.GridBagLayoutTests.main(GridBagLayoutTests.java:170)
testRead: Failed. Test case throws exception: java.io.InvalidClassException: java.awt.GridBagLayout; Local class not compatible: stream classdesc serialVersionUID=8838754796412211005 local class serialVersionUID=6500203050018709630
testWrite: Passed. OKAY
STATUS:Failed. tests: 2; passed: 1; failed: 1; first test case failure: testRead
result: Failed. tests: 2; passed: 1; failed: 1; first test case failure: testRead


test result: Failed. tests: 2; passed: 1; failed: 1; first test case failure: testRead

Comments
WORK AROUND
11-06-2004

SUGGESTED FIX
11-06-2004

PUBLIC COMMENTS
10-06-2004