aspose file tools*
The moose likes Servlets and the fly likes java.io.InvalidClassException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "java.io.InvalidClassException" Watch "java.io.InvalidClassException" New topic
Author

java.io.InvalidClassException

Manojkr Jadhav
Greenhorn

Joined: Sep 05, 2009
Posts: 7
I have some problem in bean. please help me.

core.vehicleData; local class incompatible: stream classdesc serialVersionUID = -7875838657909631410, local class serialVersionUID = 6244843110542957975

java.lang.ClassFormatError: Unknown constant tag 0 in class file fleetvigil/core/vehicleData
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at sun.applet.AppletClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at java.io.ObjectInputStream.resolveClass(Unknown Source)
at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source)
at java.io.ObjectInputStream.readClassDesc(Unknown Source)
at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
at java.io.ObjectInputStream.readObject0(Unknown Source)
at java.io.ObjectInputStream.readObject(Unknown Source)
at java.util.Hashtable.readObject(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at java.io.ObjectStreamClass.invokeReadObject(Unknown Source)
at java.io.ObjectInputStream.readSerialData(Unknown Source)
at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
at java.io.ObjectInputStream.readObject0(Unknown Source)
at java.io.ObjectInputStream.readObject(Unknown Source)
at aowspl.type2.VehicleLabels.<init>(VehicleLabels.java:204)
at aowspl.type2.MWin.<init>(MWin.java:41)
at aowspl.type2.Splasher.init(Splasher.java:89)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)


Anirvan Majumdar
Ranch Hand

Joined: Feb 22, 2005
Posts: 261
Seems to be a serialisation problem. By any chance are you serialising an instance of vehicleData and de-serialising at some place else? 'cause if that's so, the place where you're deserialising seems to have a different version of the class vehicleData than the one which has been serialised.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: java.io.InvalidClassException