hello everyone!

now i'm back with maybe another silly question:
it's a serialisation/passivation problem. when running my application after a 
while i get an exception in the time thread that wants to passivate my beans. 
i've made them all implement serializable. the problem remains for the for the 
faces context. the exception looks as follows:


  | 09:36:08,046 INFO  [STDOUT] Exception in thread "Timer-5" 
  | 09:36:08,046 INFO  [STDOUT] javax.ejb.EJBException: Could not passivate; 
failed to save state; CausedByException is:
  |     org.apache.myfaces.context.servlet.ServletFacesContextImpl
  | 09:36:08,046 INFO  [STDOUT]         at 
org.jboss.ejb3.cache.simple.StatefulSessionFilePersistenceManager.passivateSession(StatefulSessionFilePersistenceManager.java:333)
  | 09:36:08,046 INFO  [STDOUT]         at 
org.jboss.ejb3.cache.simple.SimpleStatefulCache.passivate(SimpleStatefulCache.java:143)
  | 09:36:08,046 INFO  [STDOUT]         at 
org.jboss.ejb3.cache.simple.SimpleStatefulCache$SessionTimeoutTask.run(SimpleStatefulCache.java:92)
  | 09:36:08,046 INFO  [STDOUT]         at 
java.util.TimerThread.mainLoop(Timer.java:512)
  | 09:36:08,046 INFO  [STDOUT]         at 
java.util.TimerThread.run(Timer.java:462)
  | 09:36:08,046 INFO  [STDOUT] java.io.NotSerializableException: 
org.apache.myfaces.context.servlet.ServletFacesContextImpl
  | 09:36:08,046 INFO  [STDOUT]         at 
java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1075)
  | 09:36:08,046 INFO  [STDOUT]         at 
java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1369)
  | 09:36:08,046 INFO  [STDOUT]         at 
java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1341)
  | 09:36:08,062 INFO  [STDOUT]         at 
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1284)
  | 09:36:08,062 INFO  [STDOUT]         at 
java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073)
  | 09:36:08,062 INFO  [STDOUT]         at 
java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:291)
  | 09:36:08,062 INFO  [STDOUT]         at 
org.jboss.aop.metadata.SimpleMetaData.writeExternal(SimpleMetaData.java:211)
  | 09:36:08,062 INFO  [STDOUT]         at 
java.io.ObjectOutputStream.writeExternalData(ObjectOutputStream.java:1304)
  | 09:36:08,062 INFO  [STDOUT]         at 
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1282)
  | 09:36:08,078 INFO  [STDOUT]         at 
java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073)
  | 09:36:08,078 INFO  [STDOUT]         at 
java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:291)
  | 09:36:08,078 INFO  [STDOUT]         at 
java.rmi.MarshalledObject.<init>(MarshalledObject.java:92)
  | 09:36:08,078 INFO  [STDOUT]         at 
org.jboss.ejb3.stateful.StatefulBeanContext.writeExternal(StatefulBeanContext.java:153)
  | 09:36:08,078 INFO  [STDOUT]         at 
java.io.ObjectOutputStream.writeExternalData(ObjectOutputStream.java:1304)
  | 09:36:08,078 INFO  [STDOUT]         at 
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1282)
  | 09:36:08,078 INFO  [STDOUT]         at 
java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073)
  | 09:36:08,078 INFO  [STDOUT]         at 
java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:291)
  | 09:36:08,078 INFO  [STDOUT]         at 
org.jboss.ejb3.cache.simple.StatefulSessionFilePersistenceManager.passivateSession(StatefulSessionFilePersistenceManager.java:324)
  | 09:36:08,078 INFO  [STDOUT]         at 
org.jboss.ejb3.cache.simple.SimpleStatefulCache.passivate(SimpleStatefulCache.java:143)
  | 09:36:08,078 INFO  [STDOUT]         at 
org.jboss.ejb3.cache.simple.SimpleStatefulCache$SessionTimeoutTask.run(SimpleStatefulCache.java:92)
  | 09:36:08,078 INFO  [STDOUT]         at 
java.util.TimerThread.mainLoop(Timer.java:512)
  | 09:36:08,078 INFO  [STDOUT]         at 
java.util.TimerThread.run(Timer.java:462)
  | 

could you tell me what i've forgotten?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3932746#3932746

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3932746


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to