Sorry, I meant / not .
I have this running on a two node cluster, and even though the logs show
this message on both nodes in catalina.out, I know that the data is
replicating. I can shutdown one node, and the session data has persisted on
the other.
Here is the log message:
[InMemoryReplicationManager] Failed to deserialize the session!
java.lang.ClassNotFoundException:
[Lnet.afni.webdevelopment.peoplesoftbonus.data.BonusSearchData;
at org.apache.catalina.loader.StandardClassLoader.loadClass(Unknown
Source)
at org.apache.catalina.loader.StandardClassLoader.loadClass(Unknown
Source)
at
org.apache.catalina.session.ReplicationStream.resolveClass(ReplicationStream
.java:124)
at
java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1513)
at
java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1435)
at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1560)
at
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1271)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
at org.apache.catalina.session.StandardSession.readObject(Unknown
Source)
at
org.apache.catalina.session.StandardSession.readObjectData(Unknown Source)
at
org.apache.catalina.session.ReplicatedSession.readObjectData(ReplicatedSessi
on.java:334)
at
org.apache.catalina.session.InMemoryReplicationManager.readSession(InMemoryR
eplicationManager.java:529)
at
org.apache.catalina.session.InMemoryReplicationManager.messageReceived(InMem
oryReplicationManager.java:831)
at
org.apache.catalina.session.InMemoryReplicationManager.messageDataReceived(I
nMemoryReplicationManager.java:915)
at
org.apache.catalina.cluster.ObjectReader.append(ObjectReader.java:45)
at
org.apache.catalina.cluster.WorkerThread.drainChannel(WorkerThread.java:121)
at
org.apache.catalina.cluster.WorkerThread.run(WorkerThread.java:60)
[InMemoryReplicationManager] Unable to receive message through TCP channel
java.lang.NullPointerException
at
org.apache.catalina.session.InMemoryReplicationManager.messageReceived(InMem
oryReplicationManager.java:832)
at
org.apache.catalina.session.InMemoryReplicationManager.messageDataReceived(I
nMemoryReplicationManager.java:915)
at
org.apache.catalina.cluster.ObjectReader.append(ObjectReader.java:45)
at
org.apache.catalina.cluster.WorkerThread.drainChannel(WorkerThread.java:121)
at
org.apache.catalina.cluster.WorkerThread.run(WorkerThread.java:60)
-----Original Message-----
From: Filip Hanik [mailto:[EMAIL PROTECTED]
Sent: Friday, June 13, 2003 11:13 AM
To: Tomcat Users List
Subject: RE: Deserializing data objects using InMemoryReplicationManager on
Tomcat cluster
it should be in
WEB-INF/classes/some/package/Employee.class is that what you meant?
never had this problem myself, what version of Tomcat? also, can you send
the log trace for this
Filip
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Friday, June 13, 2003 9:10 AM
> To: [EMAIL PROTECTED]
> Subject: RE: Deserializing data objects using
> InMemoryReplicationManager on Tomcat cluster
>
>
> WEB-INF/classes/some.package.Employee
>
> If this Employee object is put in the session and then replicated
> across the nodes for the given web application, the other nodes will
> have ClassNotFoundExceptions when the InMemoryReplicationManager goes
> to deserialize the session contents. I see this exception in
> catalina.out when
> the debug level for the InMemoryReplicationManager is set to 10.
>
> -----Original Message-----
> From: Filip Hanik [mailto:[EMAIL PROTECTED]
> Sent: Friday, June 13, 2003 11:01 AM
> To: Tomcat Users List
> Subject: RE: Deserializing data objects using
> InMemoryReplicationManager on Tomcat cluster
>
>
> I haven't seen this problem,
> where is your Employee class file sitting?
>
> Filip
>
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]
> > Sent: Friday, June 13, 2003 8:24 AM
> > To: [EMAIL PROTECTED]
> > Subject: Deserializing data objects using InMemoryReplicationManager
> > on Tomcat cluster
> >
> >
> > I have noticed when using the InMemoryReplicationManager for web
> > applications on a Tomcat cluster that you will encounter a
> > ClassNotFoundException when trying to deserialize the session
> > contents of serialized data objects specific to the web application
> > (i.e. a given web application may have an Employee class that is
> > stored in the session). Although this ClassNotFoundException is
> > thrown by the InMemoryReplicationManager, it appears that the class
> > actually is deserialized and replicated across the nodes of the
> > cluster.
> >
> > My question is if this is an accurate assertion despite the
> > ClassNotFoundException? Also, why is there a ClassNotFoundException
> > being thrown? Is this because the InMemoryReplicationManager does
> > not use the Web Application Class Loader, Shared Class Loader, etc.?
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]