aspose file tools*
The moose likes Distributed Java and the fly likes Session Replication issue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "Session Replication issue" Watch "Session Replication issue" New topic
Author

Session Replication issue

syed aliarshad
Greenhorn

Joined: Jun 20, 2012
Posts: 11
hello all,

I have 2 tomcat nodes and I have done the cluster setting in server.xml file. The startup routine for both the tomcat nodes are working fine.

I am facing an issue when I try to login to the system. Below is the exception.

SEVERE: Unable to serialize delta request for sessionid [A05E828676EB9C807D848F4F45E49087.172.8.8.2]
java.io.NotSerializableException: org.apache.log4j.Logger
at java.io.ObjectOutputStream.writeObject0(Unknown Source)
at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source)
at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
at java.io.ObjectOutputStream.writeObject0(Unknown Source)
at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source)
at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
at java.io.ObjectOutputStream.writeObject0(Unknown Source)
at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source)
at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
at java.io.ObjectOutputStream.writeObject0(Unknown Source)
at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source)
at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
at java.io.ObjectOutputStream.writeObject0(Unknown Source)
at java.io.ObjectOutputStream.writeObject(Unknown Source)
at org.apache.catalina.ha.session.DeltaRequest$AttributeInfo.writeExternal(DeltaRequest.java:389)
at org.apache.catalina.ha.session.DeltaRequest.writeExternal(DeltaRequest.java:287)
at org.apache.catalina.ha.session.DeltaRequest.serialize(DeltaRequest.java:302)
at org.apache.catalina.ha.session.DeltaManager.serializeDeltaRequest(DeltaManager.java:742)
at org.apache.catalina.ha.session.DeltaManager.requestCompleted(DeltaManager.java:1253)


We are using logger like private static Logger log = Logger.getLogger

please help.

Thanks


syed aliarshad
Greenhorn

Joined: Jun 20, 2012
Posts: 11
Resolved this issue.

Root cause:
=======
In session, there is an object where developer has created instance variable of logger class.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Session Replication issue