JDK-4415578 : JCK1.3a: Convert.streamObjectToObject does not work correctly
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.io:serialization
  • Affected Version: 1.4.0
  • Priority: P2
  • Status: Closed
  • Resolution: Not an Issue
  • OS: linux,windows_95
  • CPU: x86
  • Submitted: 2001-02-15
  • Updated: 2001-03-02
  • Resolved: 2001-03-02
Related Reports
Relates :  
Relates :  
Description

Name: asR10013			Date: 02/15/2001



Bug description ---> Convert.streamObjectToObject does not work correctly
****************************************************************************
Failing Test:
=============



JCK : 
=====
JCK1.3a

Test source location:
====================
/net/jdk/export/disk8/local.java/jck1.3a/JCK-runtime-13a/tests/ ...

Platforms:
=============
RedHat Linux 6.2
Windows 95

JDK, switches Info:
===================
jre1.4.0beta-b51 -client -Xmixed

jtr file location:
==================

How to reproduce:
====================

Test output:
=============

Checking for JDK Version : 1.2
Creating StreamObject from spec
Converting the StreamObject to Object
I/O error. Got exception:
java.io.InvalidClassException: org.omg.CosNaming.NamingContextPackage.NotEmpty; local class incompatible: stream classdesc serialVersionUID = 6792877765788042934, local class serialVersionUID = 7120362687417045881
        at java.io.ObjectStreamClass.validateClass(ObjectStreamClass.java:399)
        at java.io.ObjectStreamClass.initNonProxyDesc(ObjectStreamClass.java:306)
        at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1385)
        at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1300)
        at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1501)
        at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1164)
        at java.io.ObjectInputStream.readObject(ObjectInputStream.java:283)
        at javasoft.sqe.serial.util.Convert.streamObjectToObject(Convert.java:60)
        at javasoft.sqe.tests.api.org.omg.CosNaming.NamingContextPackage.NotEmpty.serial.InputTests.serial2002(InputTests.java:77)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:30)
	at sun.reflect.InflatableMethodAccessorImpl.invoke(InflatableMethodAccessorImpl.java:46)
        at java.lang.reflect.Method.invoke(Method.java:306)
        at javasoft.sqe.javatest.lib.MultiTest.invokeTestCase(MultiTest.java:409)
        at javasoft.sqe.javatest.lib.MultiTest.run(MultiTest.java:205)
        at javasoft.sqe.javatest.lib.MultiTest.run(MultiTest.java:137)
        at javasoft.sqe.tests.api.org.omg.CosNaming.NamingContextPackage.NotEmpty.serial.InputTests.main(InputTests.java:42)
....																	Creating StreamObject from spec
Specific Machine Info:
=====================

Additional JCK related info:
============================
URL to find JCK test owners: http://javaweb.eng/jck/usr/owners.jto


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

Comments
EVALUATION The failures reported in this bug are due to multiple causes, most already documented in other bug reports. Running down the list: api/java_text/messageFormat/serial/index.html#Constructor api/java_text/messageFormat/serial/index.html#Input See bugs 4402385 and 4402408. api/java_awt/cardLayout/serial/index.html#Constructor Caused by bug 4373250. api/java_awt/frame/serial/index.html#Input This is caused by a bug in the JCK serialization spec class corresponding to java.awt.Frame. I have filed a bug describing the problem as 4421172. api/java_awt/color/ICC_ColorSpace/serial/index.html#Input api/java_awt/color/ColorSpace/serial/index.html#Input api/java_awt/color/serial/index.html#Constructor Caused by 4403534. api/java_awt/component/serial/index.html#Constructor Caused by 4379908. api/org_omg/cosNaming/NamingContextPackage/NotEmpty/serial/index.html#Input api/org_omg/cosNaming/NamingContextPackage/InvalidName/serial/index.html#Input api/org_omg/cosNaming/NamingContextPackage/NotFoundReason/serial/index.html#Inpu t api/org_omg/cosNaming/NamingContextPackage/NotFound/serial/index.html#Input api/org_omg/cosNaming/NamingContextPackage/AlreadyBound/serial/index.html#Input api/org_omg/cosNaming/BindingType/serial/index.html#Input api/org_omg/cosNaming/_BindingIteratorStub/serial/index.html#Input api/org_omg/cosNaming/_NamingContextStub/serial/index.html#Input api/org_omg/cORBA/ORBPackage/InvalidName/serial/index.html#Input api/org_omg/cORBA/WrongTransaction/serial/index.html#Input api/org_omg/cORBA/TypeCode/serial/index.html#Input api/org_omg/cORBA/DefinitionKind/serial/index.html#Input api/org_omg/cORBA/CompletionStatus/serial/index.html#Input api/org_omg/cORBA/INV_POLICY/serial/index.html#Input api/org_omg/cORBA/UserException/serial/index.html#Input api/org_omg/cORBA/Any/serial/index.html#Input api/org_omg/cORBA/PolicyError/serial/index.html#Input These failures are all due to the fact that the various org.omg.* classes used do not specify serialVersionUIDs. This issue is already documented by 4416712 and 4394004. api/java_rmi/activation/activationDesc/serial/index.html#Constructor api/java_rmi/activation/activationDesc/serial/index.html#Input These tests run properly if configured correctly. In order to run them, rmid must be running, and an appropriate security policy file must be used. As described, these failures resulted from a wide variety of entirely different causes. When possible, please try to categorize failures into appropriate groupings, so as to facilitate quicker processing (also, it's much easier to transfer/recategorize bugs if each bug maps to a specific class of failure). I'm closing as "not a bug" since there is no single bug appropriate for closing this as a duplicate of. michael.warres@east 2001-03-02
02-03-2001