-
Bug
-
Resolution: Duplicate
-
P2
-
None
-
5.0
-
x86, sparc
-
linux, solaris_8
Name: mmR10223 Date: 06/03/2003
Filed By : J2SE-SQA [###@###.###
JDK : JDK1.5.0-b07 (passes on JDK1.5.0-b-06, JDK1.4.2-b24, JDK1.4.1-b21)
JCK : JCK1.4a-runtime
Platform[s] : all
switch/Mode : default
JCK test owner : http://javaweb.eng/jck/usr/owners.jto
Falling test[s]:
api/java_lang/serialization/descriptions.html#SecurityException [testRead]
api/java_lang/SecurityException/serial/index.html#InputTests [InputTest0001]
Test source location:
=====================
/java/re/jck/1.4a/archive/fcs/binaries/JCK-runtime-14a/tests/api/java_lang/serialization/SecurityExceptionTests.java
/java/re/jck/1.4a/archive/fcs/binaries/JCK-runtime-14a/tests/api/java_lang/SecurityException/serial/InputTests.java
jtr file location:
==================
/net/jtgb4u4c.sfbay/export/sail15/results/tiger/b07/jck14a/x86/s8_incgc_debug_linux-10/workDir/api/java_lang/serialization/descriptions_SecurityException.jtr
/net/jtgb4u4c.sfbay/export/sail15/results/tiger/b07/jck14a/x86/s8_incgc_debug_linux-10/workDir/api/java_lang/SecurityException/serial/index_InputTests.jtr
How to reproduce:
=================
Run the following script (you may need to change its variables)
1.
--- script start (SecurityExceptionTests) ---
#!/bin/bash
JCK="/java/re/jck/1.4a/archive/fcs/binaries/JCK-runtime-14a"
JDK="/java/re/jdk/1.5.0/promoted/latest/binaries/linux-i586"
CLASSPATH="$JCK/classes:$JCK/lib/javatest.jar"
testURL="file:///java/re/jck/1.4a/archive/fcs/binaries/JCK-runtime-14a/tests/api/java_lang/serialization/descriptions.html#SecurityException"
$JDK/bin/java -cp $CLASSPATH javasoft.sqe.tests.api.java.lang.serialization.SecurityExceptionTests -TestCaseID testRead -TestURL $testURL -FileName securex.ser
--- script end ---
2.
--- script start (InputTests) ---
#!/bin/bash
JCK="/java/re/jck/1.4a/archive/fcs/binaries/JCK-runtime-14a"
JDK="/java/re/jdk/1.5.0/promoted/latest/binaries/linux-i586"
CLASSPATH="$JCK/classes:$JCK/lib/javatest.jar"
$JDK/bin/java -cp $CLASSPATH javasoft.sqe.tests.api.java.lang.SecurityException.serial.InputTests -TestCaseID InputTest0001
--- script end ---
1.
Test output:
============
java.io.InvalidClassException: java.lang.SecurityException; local class incompatible: stream classdesc serialVersionUID = 6878364983674394167, local class serialVersionUID = 870549591963010543
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 javasoft.sqe.javatest.lib.SerializeTest.read(SerializeTest.java:413)
at javasoft.sqe.javatest.lib.SerializeTest.testRead(SerializeTest.java:308)
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 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.lang.serialization.SecurityExceptionTests.main(SecurityExceptionTests.java:48)
testRead: Failed. Test case throws exception: java.io.InvalidClassException: java.lang.SecurityException; local class incompatible: stream classdesc serialVersionUID = 6878364983674394167, local class serialVersionUID = 870549591963010543
STATUS:Failed.test cases: 1; all failed; first test case failure: testRead
2.
Test output:
============
Checking for JDK version : 1.1
Creating StreamObject from spec
Converting the streamObject to Object
java.io.InvalidClassException: java.lang.SecurityException; local class incompatible: stream classdesc serialVersionUID = 6878364983674394167, local class serialVersionUID = 870549591963010543
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 javasoft.sqe.serial.util.Convert.streamObjectToObject(Convert.java:51)
at javasoft.sqe.tests.api.java.lang.SecurityException.serial.InputTests.InputTest0001(InputTests.java:86)
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 javasoft.sqe.javatest.lib.MultiTest.invokeTestCase(MultiTest.java:399)
at javasoft.sqe.javatest.lib.MultiTest.run(MultiTest.java:195)
at javasoft.sqe.tests.api.java.lang.SecurityException.serial.InputTests.main(InputTests.java:48)
Checking for JDK version : 1.2
Creating StreamObject from spec
Converting the streamObject to Object
java.io.InvalidClassException: java.lang.SecurityException; local class incompatible: stream classdesc serialVersionUID = 6878364983674394167, local class serialVersionUID = 870549591963010543
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 javasoft.sqe.serial.util.Convert.streamObjectToObject(Convert.java:51)
at javasoft.sqe.tests.api.java.lang.SecurityException.serial.InputTests.InputTest0001(InputTests.java:86)
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 javasoft.sqe.javatest.lib.MultiTest.invokeTestCase(MultiTest.java:399)
at javasoft.sqe.javatest.lib.MultiTest.run(MultiTest.java:195)
at javasoft.sqe.tests.api.java.lang.SecurityException.serial.InputTests.main(InputTests.java:48)
InputTest0001 failed. Unexpected exception: java.lang.SecurityException; local class incompatible: stream classdesc serialVersionUID = 6878364983674394167, local class serialVersionUID = 870549591963010543Unexpected exception: java.lang.SecurityException; local class incompatible: stream classdesc serialVersionUID = 6878364983674394167, local class serialVersionUID = 870549591963010543
InputTest0001: Failed. Unexpected exception: java.lang.SecurityException; local class incompatible: stream classdesc serialVersionUID = 6878364983674394167, local class serialVersionUID = 870549591963010543Unexpected exception: java.lang.SecurityException; local class incompatible: stream classdesc serialVersionUID = 6878364983674394167, local class serialVersionUID = 870549591963010543
STATUS:Failed.test cases: 1; all failed; first test case failure: InputTest0001
Specific machine info:
======================
Hostname: linux-10
OS: Solaris 8 (x86)
Hostname: linux-19
OS: Linux RedHat 7.3
======================================================================