-
Bug
-
Resolution: Duplicate
-
P2
-
None
-
1.2.0
-
sparc
-
solaris_2.6
Serialization problem when trying to load a serialized applet.
I get the following exception when trying to load a serialized applet
using the appletviewer Test Suite.
java version "1.2beta4"
Classic VM (build JDK-1.2beta4-J, green threads, sunwjit)
java full version "JDK-1.2beta4-J"
appletviewer tests/WinExample.html 2>&1 | tee -a tests/out.solaris.serial &
sleeping 45 seconds...
java.io.InvalidClassException: java.awt.BorderLayout; Local class not compatible: stream classdesc serialVersionUID=-2863819608532257785 local class serialVersionUID=-8658291919501921765
at java.io.ObjectStreamClass.validateLocalClass(Compiled Code)
at java.io.ObjectStreamClass.setClass(Compiled Code)
at java.io.ObjectInputStream.inputClassDescriptor(Compiled Code)
at java.io.ObjectInputStream.readObject(Compiled Code)
at java.io.ObjectInputStream.readObject(Compiled Code)
at java.io.ObjectInputStream.inputObject(Compiled Code)
at java.io.ObjectInputStream.readObject(Compiled Code)
at java.io.ObjectInputStream.inputClassFields(Compiled Code)
at java.io.ObjectInputStream.defaultReadObject(Compiled Code)
at java.awt.Container.readObject(Compiled Code)
at java.lang.reflect.Method.invoke(Native Method)
at java.io.ObjectInputStream.invokeObjectReader(Compiled Code)
at java.io.ObjectInputStream.inputObject(Compiled Code)
at java.io.ObjectInputStream.readObject(Compiled Code)
at java.io.ObjectInputStream.inputClassFields(Compiled Code)
at java.io.ObjectInputStream.defaultReadObject(Compiled Code)
at java.io.ObjectInputStream.inputObject(Compiled Code)
at java.io.ObjectInputStream.readObject(Compiled Code)
at java.io.ObjectInputStream.readObject(Compiled Code)
at sun.applet.AppletPanel.createApplet(Compiled Code)
at sun.applet.AppletPanel.runLoader(Compiled Code)
at sun.applet.AppletPanel.run(Compiled Code)
at java.lang.Thread.run(Compiled Code)
I have the test program as part of the attachment. To run do the
following:
% tar xvf s.tar
% appletviewer WinExample.html
I get the following exception when trying to load a serialized applet
using the appletviewer Test Suite.
java version "1.2beta4"
Classic VM (build JDK-1.2beta4-J, green threads, sunwjit)
java full version "JDK-1.2beta4-J"
appletviewer tests/WinExample.html 2>&1 | tee -a tests/out.solaris.serial &
sleeping 45 seconds...
java.io.InvalidClassException: java.awt.BorderLayout; Local class not compatible: stream classdesc serialVersionUID=-2863819608532257785 local class serialVersionUID=-8658291919501921765
at java.io.ObjectStreamClass.validateLocalClass(Compiled Code)
at java.io.ObjectStreamClass.setClass(Compiled Code)
at java.io.ObjectInputStream.inputClassDescriptor(Compiled Code)
at java.io.ObjectInputStream.readObject(Compiled Code)
at java.io.ObjectInputStream.readObject(Compiled Code)
at java.io.ObjectInputStream.inputObject(Compiled Code)
at java.io.ObjectInputStream.readObject(Compiled Code)
at java.io.ObjectInputStream.inputClassFields(Compiled Code)
at java.io.ObjectInputStream.defaultReadObject(Compiled Code)
at java.awt.Container.readObject(Compiled Code)
at java.lang.reflect.Method.invoke(Native Method)
at java.io.ObjectInputStream.invokeObjectReader(Compiled Code)
at java.io.ObjectInputStream.inputObject(Compiled Code)
at java.io.ObjectInputStream.readObject(Compiled Code)
at java.io.ObjectInputStream.inputClassFields(Compiled Code)
at java.io.ObjectInputStream.defaultReadObject(Compiled Code)
at java.io.ObjectInputStream.inputObject(Compiled Code)
at java.io.ObjectInputStream.readObject(Compiled Code)
at java.io.ObjectInputStream.readObject(Compiled Code)
at sun.applet.AppletPanel.createApplet(Compiled Code)
at sun.applet.AppletPanel.runLoader(Compiled Code)
at sun.applet.AppletPanel.run(Compiled Code)
at java.lang.Thread.run(Compiled Code)
I have the test program as part of the attachment. To run do the
following:
% tar xvf s.tar
% appletviewer WinExample.html
- duplicates
-
JDK-4147474 The serializable class java.awt.BorderLayout evolved incompatibly.
-
- Closed
-