3 Replies Latest reply on Oct 11, 2005 5:50 AM by Gavin King

    Failed to save state problem

    drapierwimATgmailDOTcom Newbie

      After a little while I get this message in my console, it seems like the state of my statefullbeans can not be saved. My project runs with no errors and I get the same output after I deploy the booking example. Since I'm not mutch of a jboss administrator I don't hava a clue how to solve this problem.

      20:52:08,875 INFO [STDOUT] Exception in thread "Timer-3"
      20:52:08,875 INFO [STDOUT] javax.ejb.EJBException: Could not passivate; failed to save state; CausedByException is
      :
       org.hibernate.ejb.callback.EntityCallbackHandler
      20:52:08,875 INFO [STDOUT] at org.jboss.ejb3.cache.simple.StatefulSessionFilePersistenceManager.passivateSessi
      on(StatefulSessionFilePersistenceManager.java:333)
      20:52:08,875 INFO [STDOUT] at org.jboss.ejb3.cache.simple.SimpleStatefulCache.passivate(SimpleStatefulCache.ja
      va:143)
      20:52:08,875 INFO [STDOUT] at org.jboss.ejb3.cache.simple.SimpleStatefulCache$SessionTimeoutTask.run(SimpleSta
      tefulCache.java:92)
      20:52:08,875 INFO [STDOUT] at java.util.TimerThread.mainLoop(Timer.java:512)
      20:52:08,875 INFO [STDOUT] at java.util.TimerThread.run(Timer.java:462)
      20:52:08,875 INFO [STDOUT] java.io.NotSerializableException: org.hibernate.ejb.callback.EntityCallbackHandler
      20:52:08,875 INFO [STDOUT] at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1075)
      20:52:08,875 INFO [STDOUT] at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1369)
      20:52:08,875 INFO [STDOUT] at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1341)
      20:52:08,875 INFO [STDOUT] at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1284)
      20:52:08,875 INFO [STDOUT] at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073)
      20:52:08,875 INFO [STDOUT] at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1245)
      20:52:08,875 INFO [STDOUT] at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1069)
      20:52:08,875 INFO [STDOUT] at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1369)
      20:52:08,875 INFO [STDOUT] at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1341)
      20:52:08,875 INFO [STDOUT] at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1284)
      20:52:08,875 INFO [STDOUT] at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073)
      20:52:08,875 INFO [STDOUT] at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1369)
      20:52:08,875 INFO [STDOUT] at java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStream.java:380)
      20:52:08,875 INFO [STDOUT] at org.hibernate.impl.SessionFactoryImpl.writeObject(SessionFactoryImpl.java:743)
      20:52:08,875 INFO [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      20:52:08,875 INFO [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      20:52:08,885 INFO [STDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav
      a:25)
      20:52:08,885 INFO [STDOUT] at java.lang.reflect.Method.invoke(Method.java:585)
      20:52:08,885 INFO [STDOUT] at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:890)
      20:52:08,885 INFO [STDOUT] at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1333)
      20:52:08,885 INFO [STDOUT] at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1284)
      20:52:08,885 INFO [STDOUT] at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073)
      20:52:08,885 INFO [STDOUT] at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:291)
      20:52:08,885 INFO [STDOUT] at org.hibernate.impl.SessionImpl.writeObject(SessionImpl.java:196)
      20:52:08,885 INFO [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      20:52:08,885 INFO [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      20:52:08,885 INFO [STDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav
      a:25)
      20:52:08,885 INFO [STDOUT] at java.lang.reflect.Method.invoke(Method.java:585)
      20:52:08,885 INFO [STDOUT] at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:890)
      20:52:08,885 INFO [STDOUT] at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1333)
      20:52:08,885 INFO [STDOUT] at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1284)
      20:52:08,885 INFO [STDOUT] at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073)
      20:52:08,885 INFO [STDOUT] at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1369)
      20:52:08,885 INFO [STDOUT] at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1341)
      20:52:08,885 INFO [STDOUT] at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1284)
      20:52:08,885 INFO [STDOUT] at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073)
      20:52:08,885 INFO [STDOUT] at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:291)
      20:52:08,885 INFO [STDOUT] at org.jboss.ejb3.entity.ExtendedEntityManager.writeExternal(ExtendedEntityManager.
      java:71)
      20:52:08,915 INFO [STDOUT] at java.io.ObjectOutputStream.writeExternalData(ObjectOutputStream.java:1304)
      20:52:08,915 INFO [STDOUT] at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1282)
      20:52:08,915 INFO [STDOUT] at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073)
      20:52:08,915 INFO [STDOUT] at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1369)
      20:52:08,915 INFO [STDOUT] at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1341)
      20:52:08,915 INFO [STDOUT] at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1284)
      20:52:08,915 INFO [STDOUT] at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073)
      20:52:08,915 INFO [STDOUT] at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:291)
      20:52:08,915 INFO [STDOUT] at org.jboss.aop.metadata.SimpleMetaData.writeExternal(SimpleMetaData.java:211)
      20:52:08,915 INFO [STDOUT] at java.io.ObjectOutputStream.writeExternalData(ObjectOutputStream.java:1304)
      20:52:08,915 INFO [STDOUT] at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1282)
      20:52:08,915 INFO [STDOUT] at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073)
      20:52:08,915 INFO [STDOUT] at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:291)
      20:52:08,915 INFO [STDOUT] at java.rmi.MarshalledObject.<init>(MarshalledObject.java:92)
      20:52:08,915 INFO [STDOUT] at org.jboss.ejb3.stateful.StatefulBeanContext.writeExternal(StatefulBeanContext.ja
      va:153)
      20:52:08,915 INFO [STDOUT] at java.io.ObjectOutputStream.writeExternalData(ObjectOutputStream.java:1304)
      20:52:08,915 INFO [STDOUT] at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1282)
      20:52:08,915 INFO [STDOUT] at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073)
      20:52:08,915 INFO [STDOUT] at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:291)
      20:52:08,915 INFO [STDOUT] at org.jboss.ejb3.cache.simple.StatefulSessionFilePersistenceManager.passivateSessi
      on(StatefulSessionFilePersistenceManager.java:324)
      20:52:08,915 INFO [STDOUT] at org.jboss.ejb3.cache.simple.SimpleStatefulCache.passivate(SimpleStatefulCache.ja
      va:143)
      20:52:08,915 INFO [STDOUT] at org.jboss.ejb3.cache.simple.SimpleStatefulCache$SessionTimeoutTask.run(SimpleSta
      tefulCache.java:92)
      20:52:08,915 INFO [STDOUT] at java.util.TimerThread.mainLoop(Timer.java:512)
      20:52:08,915 INFO [STDOUT] at java.util.TimerThread.run(Timer.java:462)