a122178
asked on
Tomcat clustor: Error: Unable to serialize delta request
Hi,
I am doing the tomcat clustor on Tomcat 5.0. I followed the configration online:
1) All session attributes must implement java.io.Serializable
2) Uncomment the Cluster element in server.xml
3) Uncomment the Value(ReplicationValue) element in server.xml
4) Tomcat is not running on the same machine
5) web.xml has the <distributable>true</distr ibutable>
However, I got the following error message on the console:
SEVERE: Unable to serialize delta request
java.io.NotSerializableExc eption: java.util.PropertyResource Bundle
at java.io.ObjectOutputStream .writeObje ct0(Object OutputStre am.java:10 75)
at java.io.ObjectOutputStream .defaultWr iteFields( ObjectOutp utStream.j ava:1369)
at java.io.ObjectOutputStream .writeSeri alData(Obj ectOutputS tream.java :1341)
at java.io.ObjectOutputStream .writeOrdi naryObject (ObjectOut putStream. java:1284)
at java.io.ObjectOutputStream .writeObje ct0(Object OutputStre am.java:10 73)
at java.io.ObjectOutputStream .defaultWr iteFields( ObjectOutp utStream.j ava:1369)
at java.io.ObjectOutputStream .writeSeri alData(Obj ectOutputS tream.java :1341)
at java.io.ObjectOutputStream .writeOrdi naryObject (ObjectOut putStream. java:1284)
at java.io.ObjectOutputStream .writeObje ct0(Object OutputStre am.java:10 73)
at java.io.ObjectOutputStream .writeObje ct(ObjectO utputStrea m.java:291 )
at org.apache.catalina.cluste r.session. DeltaReque st$Attribu teInfo.wri teExternal (DeltaRequ est.java:3 00)
at org.apache.catalina.cluste r.session. DeltaReque st.writeEx ternl(Delt aRequest.j ava:217)
at org.apache.catalina.cluste r.session. DeltaManag er.unloadD eltaReques t(DeltaMan ager.java: 393)
at org.apache.catalina.cluste r.session. DeltaManag er.request Completed( DeltaManag er.java:78 2)
at org.apache.catalina.cluste r.tcp.Repl icationVal ve.invoke( Replicatio nValve.jav a:203)
at org.apache.catalina.core.S tandardVal veContext. invokeNext (StandardV alveContex t.java:102 )
at org.apache.catalina.valves .ErrorRepo rtValve.in voke(Error ReportValv e.java:118 )
at org.apache.catalina.core.S tandardVal veContext. invokeNext (StandardV alveContex t.java:102 )
at org.apache.catalina.core.S tandardPip eline.invo ke(Standar dPipeline. java:520)
at org.apache.catalina.core.S tandardEng ineValve.i nvoke(Stan dardEngine Valve.java :109)
at org.apache.catalina.core.S tandardVal veContext. invokeNext (StandardV alveContex t.java:104 )
at org.apache.catalina.core.S tandardPip eline.invo ke(Standar dPipeline. java:520)
at org.apache.catalina.core.C ontainerBa se.invoke( ContainerB ase.java:9 29)
at org.apache.coyote.tomcat5. CoyoteAdap ter.servic e(CoyoteAd apter.java :160)
at org.apache.coyote.http11.H ttp11Proce ssor.proce ss(Http11P rocessor.j ava:799)
at org.apache.coyote.http11.H ttp11Proto col$Http11 Connection Handler.pr ocessConne ction(Http 11Protocol .java:705)
at org.apache.tomcat.util.net .TcpWorker Thread.run It(PoolTcp Endpoint.j ava:577)
at org.apache.tomcat.util.thr eads.Threa dPool$Cont rolRunnabl e.run(Thre adPool.jav a:683)
at java.lang.Thread.run(Threa d.java:595 )
I cannot find PropertyResourceBundle in my project. Anyone has any clue?
Thanks
I am doing the tomcat clustor on Tomcat 5.0. I followed the configration online:
1) All session attributes must implement java.io.Serializable
2) Uncomment the Cluster element in server.xml
3) Uncomment the Value(ReplicationValue) element in server.xml
4) Tomcat is not running on the same machine
5) web.xml has the <distributable>true</distr
However, I got the following error message on the console:
SEVERE: Unable to serialize delta request
java.io.NotSerializableExc
at java.io.ObjectOutputStream
at java.io.ObjectOutputStream
at java.io.ObjectOutputStream
at java.io.ObjectOutputStream
at java.io.ObjectOutputStream
at java.io.ObjectOutputStream
at java.io.ObjectOutputStream
at java.io.ObjectOutputStream
at java.io.ObjectOutputStream
at java.io.ObjectOutputStream
at org.apache.catalina.cluste
at org.apache.catalina.cluste
at org.apache.catalina.cluste
at org.apache.catalina.cluste
at org.apache.catalina.cluste
at org.apache.catalina.core.S
at org.apache.catalina.valves
at org.apache.catalina.core.S
at org.apache.catalina.core.S
at org.apache.catalina.core.S
at org.apache.catalina.core.S
at org.apache.catalina.core.S
at org.apache.catalina.core.C
at org.apache.coyote.tomcat5.
at org.apache.coyote.http11.H
at org.apache.coyote.http11.H
at org.apache.tomcat.util.net
at org.apache.tomcat.util.thr
at java.lang.Thread.run(Threa
I cannot find PropertyResourceBundle in my project. Anyone has any clue?
Thanks
ASKER
Thanks for your comment. But what do you mean Undeploy and deploy both env. I just change the configuration in Tomcat. Can you tell more detail about that?
Make sure the applications you have in Cluster Env. (Both Machines) are the same, and the Configurations are also same.
R.K
R.K
ASKER
Yeah. Both of the configurations. The Tomcat version, the server.xml and web.xml are the same.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I will try it and let you know. Thanks.
ASKER
I have tried it. But I still got the error message.
I cannot find which class has to be serialized.
I cannot find which class has to be serialized.
ASKER
Check the application. All the objects y, (I believe for String, Locale and Integer are already serialized) in setAttribute(x,y) are serialized. Getting the same message:
SEVERE: Unable to serialize delta request for sessionid [FA55D3E188C4668B43129DA
C5CFE4867.node01]
java.io.NotSerializableExc eption: java.util.PropertyResource Bundle
SEVERE: Unable to serialize delta request for sessionid [FA55D3E188C4668B43129DA
C5CFE4867.node01]
java.io.NotSerializableExc
ASKER
In additional, I have printed out all the names and values in the session:
clientLocale en
External false
SessionListener com.nai.session.SessionLis tener@6cbe cf
m_User Name: administrator ID: 1.1 Role description: Administrator
Passkey 1
UserName administrator
IPAddress 127.0.0.1
ExternalConnection 0
SharedSessionName null
It seems I have string, boolean and sessionListener (which is serialized) in my session.
clientLocale en
External false
SessionListener com.nai.session.SessionLis
m_User Name: administrator ID: 1.1 Role description: Administrator
Passkey 1
UserName administrator
IPAddress 127.0.0.1
ExternalConnection 0
SharedSessionName null
It seems I have string, boolean and sessionListener (which is serialized) in my session.
Its the Object that deployed in cluster environments are not inSync. Try to Undeploy and deploy both env. again.
R.K