Win a copy of Machine Learning Systems: Designs that scale this week in the Scala forum
or Xamarin in Action: Creating native cross-platform mobile apps in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Session Replication issue  RSS feed

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Resolved this issue.

Root cause:
=======
In session, there is an object where developer has created instance variable of logger class.
 
Time flies like an arrow. Fruit flies like a banana. Steve flies like a tiny ad:
Rocket Oven Kickstarter - from the trailboss
https://coderanch.com/t/695773/Rocket-Oven-Kickstarter-trailboss
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!