You are right Kris, we store a list of property adapter in session, to retrieve back dinamically information from our back bean. So we need to make them serializable to use all in cluster I suppose. Thanks a lot. Riccardo
kristian.marinkovic wrote: > > hi, > > do you push an instance of PropertyAdapterImpl onto the http session (or > ApplicationStateObject)? > directly or indirectly? > > g, > kris > > > > > Riccardo Ruffilli <[email protected]> > 16.12.2008 11:39 > Bitte antworten an > "Tapestry users" <[email protected]> > > > An > [email protected] > Kopie > > Thema > T5 cluster PropertyAdapterImpl not serializable error > > > > > > > > > Hi everybody, > I'm trying to test our tapestry based application in a jboss cluster > behind > an apache web server with ajp protocol enabled. The application works fine > in a single server mode but in cluster mode it gives me a > > java.io.NotSerializableException: > org.apache.tapestry.ioc.internal.services.PropertyAdapterImpl. > > I use 5.11 t5 lib. > Any idea ? > thanks in advance > > Riccardo. > > here the complete stacktrace of the exception > > 2008-12-16 11:01:31,468 ERROR > [org.jboss.web.tomcat.tc5.session.JBossCacheService] externalizeSession(): > exception occurred externalizing session SessionBasedClusteredSession[id: > E2679A8FF80A712634518F4B38F107BA.warehouse_n1 lastAccessedTime: > 1229421680609 version: 20 lastOutdated: 0] > > java.io.NotSerializableException: > org.apache.tapestry.ioc.internal.services.PropertyAdapterImpl > at > java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1081) > at > java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:302) > at java.util.ArrayList.writeObject(ArrayList.java:569) > at sun.reflect.GeneratedMethodAccessor111.invoke(Unknown > Source) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:585) > at > java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:917) > at > java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1339) > at > java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290) > at > java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079) > at > java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375) > at > java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347) > at > java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290) > at > java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079) > at > java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375) > at > java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347) > at > java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290) > at > java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079) > at > java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:302) > at java.util.Hashtable.writeObject(Hashtable.java:813) > at sun.reflect.GeneratedMethodAccessor119.invoke(Unknown > Source) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:585) > at > java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:917) > at > java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1339) > at > java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290) > at > java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079) > at > java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:302) > at > org.jboss.web.tomcat.tc5.session.SessionBasedClusteredSession.writeExternal(SessionBasedClusteredSession.java:175) > at > org.jboss.web.tomcat.tc5.session.JBossCacheService.externalizeSession(JBossCacheService.java:1023) > at > org.jboss.web.tomcat.tc5.session.JBossCacheService.putSession(JBossCacheService.java:312) > at > org.jboss.web.tomcat.tc5.session.JBossCacheClusteredSession.processSessionRepl(JBossCacheClusteredSession.java:121) > at > org.jboss.web.tomcat.tc5.session.JBossCacheManager.processSessionRepl(JBossCacheManager.java:1093) > at > org.jboss.web.tomcat.tc5.session.JBossCacheManager.storeSession(JBossCacheManager.java:648) > at > org.jboss.web.tomcat.tc5.session.InstantSnapshotManager.snapshot(InstantSnapshotManager.java:49) > at > org.jboss.web.tomcat.tc5.session.ClusteredSessionValve.invoke(ClusteredSessionValve.java:98) > at > org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74) > at > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) > at > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) > at > org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156) > at > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) > at > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) > at > org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:199) > at > org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:282) > at > org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:767) > at > org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:697) > at > org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:889) > at > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) > at java.lang.Thread.run(Thread.java:595) > > > -- > View this message in context: > http://www.nabble.com/T5-cluster-PropertyAdapterImpl-not-serializable-error-tp21030728p21030728.html > > Sent from the Tapestry - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > > > -- View this message in context: http://www.nabble.com/T5-cluster-PropertyAdapterImpl-not-serializable-error-tp21030728p21031062.html Sent from the Tapestry - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
