Java serialization stamps each class in a serialized stream with a version ID
which consists of a hashed value calculated from fields and methods.
That's what the "local class not compatible" error indicates.
If you wish, you can stamp all your classes with version IDs which will prevent
this error.
Use the serialver tool in the JDK /bin directory to figure out the version IDs
for your classes. Cut and paste the output from serialver into the class file
and recompile; then all future versions of the class (assuming you don't make
radical changes) will be compatible with the current version.
The most common causes of this that I've seen:
(a) PE session variables are of an older version. Cache is cleared and some
recompilation of objects is done; presto -- classes are now incompatible, when
app is tested, attempts to retrieve objects from PE result in this error. This
can be remedied by shutting down the PE between application executions, or using
the serialVersionUID solution above.
(b) One page subclasses another page. The superclass is changed. This breaks
the .ser files in the project directory (they now refer to an obsolete version
of their superclass). This
can be remedied by deleting the .ser files anytime a superclass is changed, or
by using the serialVersionUID solution above.
-- David.
(Embedded
image moved [EMAIL PROTECTED]
to file: 05/01/99 04:55 AM
pic10941.pcx)
To: [EMAIL PROTECTED]
cc: [EMAIL PROTECTED] (bcc: David P Caldwell/GL/KSC/KeyCorp)
Subject: [ND] ND4 - CSpFileBased.deserializeObject ERROR
Hi,
I am getting the following error randomly ( I am currently working on an
evaluation copy of ND 4.1.3 ) :
CSpFileBased.deserializeObject: Unexpected Exception
(java.io.InvalidClassException: Cds.pgCsMenu; Local class not
compatible: stream classdesc serialVersionUID=8441932542373354094 local
class
serialVersionUID=1950948595972308646) caught. Top of stack:
|java.io.InvalidClassException: Cds.pgCsMenu; Local
class not compatible: stream classdesc
serialVersionUID=8441932542373354094 local class
serialVersionUID=1950948595972308646 at
java.lang.Throwable.<init>(Compiled Code) at
java.lang.Exception.<init>(Compiled Code) at
java.io.IOException.<init>(IOException.java:45) at
java.io.ObjectStreamException.<init>(ObjectStreamException.java:30) at
java.io.InvalidClassException.<init>(InvalidClassException.java:49) 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.readObject(Compiled
Code) at spider.CSpFileBased.deserializeObject(CSpFileBased.java) at
spider.CSpProject.deserializeAndInitAnObject(CSpProject.java) at
spider.CSpProject.getCommonPage(Compiled Code)
at spider.CSpider.getCommonPage(Compiled Code) at
spider.control.CSpWebEventProcessor.callThisMethod(CSpWebEventProcessor.
java) at
spider.control.CSpWebEventProcessor.run(Compiled Code) at
netdyn.services.cp.worker.CNdCPWorkerImpl.webEventMessage(CNdCPWorkerImp
l.java) at
netdyn.services.cp.stubs._tie_INdCPWorker.webEventMessage(_tie_INdCPWork
er.java) at
netdyn.services.cp.stubs._INdCPWorkerImplBase._execute(_INdCPWorkerImplB
ase.java) at
netdyn.services.cp.stubs._INdCPWorkerImplBase._execute(_INdCPWorkerImplB
ase.java) at
com.visigenic.vbroker.orb.SkeletonDelegateImpl.execute(Compiled Code) at
com.visigenic.vbroker.orb.GiopProtocolAdapter.doRequest(Compiled Code)
at
com.visigenic.vbroker.orb.GiopProtocolAdapter.dispatchMessage(Compiled
Code) at
com.visigenic.vbroker.orb.ThreadPoolDispatcher.run(Compiled Code) at
com.visigenic.vbroker.orb.WorkerThread.run(Compiled Code) |
spider.control.CSpWebEventProcessor.callThisMethod: Can't locate the
page 'Cds.pgCsMenu' in project 'Cds'
Sometimes the page comes properly sometimes it throws the above message.
I don't what 's happening.
Can anybody tell what's wrong ?
Thanks
Deepak
_________________________________________________________________________
For help in using, subscribing, and unsubscribing to the discussion
forums, please go to: http://www.netdynamics.com/support/visitdevfor.html
For dire need help, email: [EMAIL PROTECTED]
pic10941.pcx