Hi Anisha,

I had got this message earlier and had posted in the forum. Basically
this errors occurs when the files you are using are imported from some
other project or when the class extended by this page has changed. You
need to delete all the .ser and the class files and compile and run the
application. I am attaching the reply I got from David thru forum. 

Hope that helps,
Deepak

 <<Re: [ND] ND4 - CSpFileBased.deserializeObject ERROR>> 


                -----Original Message-----
                From:   VASWANI,ANISHA (HP-SanJose,ex1)
[mailto:[EMAIL PROTECTED]]
                Sent:   Tuesday, June 08, 1999 3:39 AM
                To:
'[EMAIL PROTECTED]'
                Subject:        [ND] Weird Error Message

                Hi Everyone,

                I have a page that is sporadically generating the
following error when I run
                the project. If anyone could shed some light on it, I'd
appreciate it. All
                this page has, are 2 static text boxes whose values are
manipulated in the
                onBeforeHtmlOutputEvent to point to different graphics
based on a user
                session object. 

                Thanks in advance,
                Anisha


                Software Messages :
                CSpFileBased.deserializeObject: Unexpected Exception
                (java.io.InvalidClassException: ATM.pgGenericATMPage;
Local class not
                compatible: stream classdesc
serialVersionUID=-1596716675116828374 local
                class serialVersionUID=4803821031357937887) caught. Top
of stack:
                |java.io.InvalidClassException: ATM.pgGenericATMPage;
Local class not
                compatible: stream classdesc
serialVersionUID=-1596716675116828374 local
                class serialVersionUID=4803821031357937887 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.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(Compiled Code) at
                spider.CSpProject.deserializeAndInitAnObject(Compiled
Code) at
                spider.CSpProject.getCommonPage(Compiled Code) at
                spider.CSpider.getCommonPage(Compiled Code) at
        
spider.control.CSpWebEventProcessor.callThisMethod(Compiled Code) at
                spider.control.CSpWebEventProcessor.run(Compiled Code)
at
        
netdyn.services.cp.worker.CNdCPWorkerImpl.webEventMessage(Compiled Code)
at
        
netdyn.services.cp.stubs._tie_INdCPWorker.webEventMessage(Compiled Code)
at
        
netdyn.services.cp.stubs._INdCPWorkerImplBase._execute(Compiled Code) at
        
netdyn.services.cp.stubs._INdCPWorkerImplBase._execute(Compiled Code) 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) |

        
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                ~  Anisha Vaswani - IT Engineer Consultant @
Hewlett-Packard Company  ~
                ~          Components Group IT - WW Sales & Marketing
Systems         ~
                ~   Email: [EMAIL PROTECTED] | Vmail: (408) 970-2242
~
        
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                 
        
________________________________________________________________________
_

                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]



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



Reply via email to