Probably what's happening is that the 2nd load is causing you
to go to a different instance of the page (and project graph altogether).
That in itself is not a problem. However, at first blush it looks
like your exception is a consequence of failed deserialization.
When you reference a page in an ND project in a CP for the first time,
ND loads and instantiates the entire project. During that instantiation
process, ND serializes all the ND managed objects and saves them to disk.
Thereafter, if an additional project instance is needed within a
CP-Worker (and if none are available in free pool), it creates a new
instance of a project -- a new graph containing new instances
of all the ND-managed objects. (Actually, it creates them on an
as needed basis.)
Now to save time in creating these additional instances, it
deserializes instances off the disk (the .ser files).
My *guess* from *glancing* at your errors below is that the
deserialization is failing.
A couple quick ways to partially test this hypothesis:
. Create a page in your project with a long pause (Thread.sleep).
Now load that page in one browser. While that page is in delay,
load your problematic page in a different browser...you'll be
forced to a different instance of the page ... and will thus test
the deserialization/instantiation process.
. In the Cmd Ctr, under CP-Service, try specifying project
preload of your application. Select 'full' and more than 1 copy.
At the time of the preload, you should see a similar error
to that which you're seeing below.
Basically, all instance/class variables in your ND managed objects
(pages, data objects, project, etc) must be serializable. See
java.io.Serializable for more info.
Hope this somewhat long, but hasty message helps.
Best Regards,
a.
. . . . . .
Andy Cohen PMB 333
[EMAIL PROTECTED] 351 Pleasant Street
413.586.2180 direct Northampton, MA 01060
212.656.1155 vmail/fax
Software Springs: Software Development, Training, & Troubleshooting
At 05:15 PM 9/5/99 -0400, Troy Mckinnon wrote:
>Hey,
>
>I have an error that I have been unable to figure out.
>It is reproducable and causing me a lot of grief.
>
>SEE ERROR MESSAGE BELOW
>
>It happens when I submit the same page(event) at the same time...
>i.e. if a page is loading (etc) and I hit <ctrl-n> for a new browser window
>in netscape it will open the last url (the one that is loading a page etc.)
>then I get this message and my project is basically offline until I
>recompile it.
>
>
>
>Note:
>All pages are extended from my separate utilities project (IQMSUtilities -
>object jsBasePage)
>
>I would really apprieciate your comments.
>
>Troy McKinnon
>Nortel Networks
>Ottawa, Ont
>
>
>MESSAGE:
>
>CSpFileBased.deserializeObject: Unexpected Exception
>(java.io.InvalidClassException: IQMSUtilities.jsBasePage; Local class not
>compatible: stream classdesc serialVersionUID=-8556454361588461302
>local class serialVersionUID=9137126379124243042) caught. Top of stack:
>|java.io.InvalidClassException: IQMSUtilities.jsBasePage; Local class not
>compatible: stream classdesc
>serialVersionUID=-8556454361588461302 local class
>serialVersionUID=9137126379124243042 at java.lang.Throwable.<init>(Compiled
>Code) at java.lang.Exception.<init>(Compiled Code) at
>java.io.IOException.<init>(Compiled Code) at
>java.io.ObjectStreamException.<init>(Compiled Code) at
>java.io.InvalidClassException.<init>(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.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.CSpider.getCommonPage(Compiled Code) at
>spider.util.CSpCommonPageRef.resolveObjectReference(Compiled Code) at
>spider.CSpFileBased.resolveObjectRef(Compiled Code) at
>spider.visual.CSpCommand.afterInit(Compiled Code) at
>spider.visual.CSpButton.afterInit(Compiled Code) at
>spider.CSpFileBased.afterInitList(Compiled Code) at
>spider.visual.CSpVisual.afterInit(Compiled Code) at
>spider.visual.CSpCommonPage.afterInit(Compiled Code) at
>spider.visual.CSpCommonHtmlPage.afterInit(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) |
>
>or
>
>CSpFileBased.deserializeObject: Unexpected Exception
>(java.io.InvalidClassException: IQMSUtilities.jsBasePage; Local class not
>compatible: stream classdesc serialVersionUID=-8556454361588461302
>local class serialVersionUID=9137126379124243042) caught. Top of stack:
>|java.io.InvalidClassException: IQMSUtilities.jsBasePage; Local class not
>compatible: stream classdesc
>serialVersionUID=-8556454361588461302 local class
>serialVersionUID=9137126379124243042 at java.lang.Throwable.<init>(Compiled
>Code) at java.lang.Exception.<init>(Compiled Code) at
>java.io.IOException.<init>(Compiled Code) at
>java.io.ObjectStreamException.<init>(Compiled Code) at
>java.io.InvalidClassException.<init>(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.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) |
>
>Troy McKinnon
>Technical Team Leader
>Integrated Quality Management System
>Nortel Networks - GHCT (Dept. 1J11)
>(613) 765-7685 or ESN (395) 7685
>
>_________________________________________________________________________
>
>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]
>
>
_________________________________________________________________________
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]