2 Replies Latest reply on Sep 11, 2005 4:15 PM by Alan Berezin

    4.0.3rc1:  Exception in Timer trying to passivate StatefulBe

    Alan Berezin Newbie

      I am running 4.0.3rc1 using ejb3 and am seeing the exception below. I saw some post about pasivating an InitialContext in 4.0.3rc1 but Im not
      sure this is the same. Didnt see any bugs in jira but I cant imagine I am the only person seeing this. I only have one stateful bean with type=PersistenceContextType.EXTENDED.


      09:11:20,359 INFO [STDOUT] Exception in thread "Timer-5"
      09:11:20,359 INFO [STDOUT] javax.ejb.EJBException: Could not passivate; failed to save state; CausedByException is:
      org.hibernate.ejb.TransactionImpl
      09:11:20,359 INFO [STDOUT] at org.jboss.ejb3.cache.simple.StatefulSessionFilePersistenceManager.passivateSession(StatefulSessionFilePersistenceManager.java:335)
      09:11:20,359 INFO [STDOUT] at org.jboss.ejb3.cache.simple.SimpleStatefulCache.passivate(SimpleStatefulCache.java:143)
      09:11:20,359 INFO [STDOUT] at org.jboss.ejb3.cache.simple.SimpleStatefulCache$SessionTimeoutTask.run(SimpleStatefulCache.java:92)
      09:11:20,375 INFO [STDOUT] at java.util.TimerThread.mainLoop(Timer.java:512)
      09:11:20,375 INFO [STDOUT] at java.util.TimerThread.run(Timer.java:462)
      09:11:20,375 INFO [STDOUT] java.io.NotSerializableException: org.hibernate.ejb.TransactionImpl
      09:11:20,375 INFO [STDOUT] at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1075)
      09:11:20,375 INFO [STDOUT] at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1369)
      09:11:20,375 INFO [STDOUT] at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1341)
      09:11:20,375 INFO [STDOUT] at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1284)
      09:11:20,375 INFO [STDOUT] at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073)
      09:11:20,375 INFO [STDOUT] at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:291)
      09:11:20,375 INFO [STDOUT] at org.jboss.ejb3.entity.ExtendedPersistenceContext.writeExternal(ExtendedPersistenceContext.java:54)
      09:11:20,375 INFO [STDOUT] at java.io.ObjectOutputStream.writeExternalData(ObjectOutputStream.java:1304)
      09:11:20,375 INFO [STDOUT] at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1282)
      09:11:20,375 INFO [STDOUT] at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073)
      09:11:20,375 INFO [STDOUT] at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1369)
      09:11:20,375 INFO [STDOUT] at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1341)
      09:11:20,375 INFO [STDOUT] at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1284)
      09:11:20,375 INFO [STDOUT] at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073)
      09:11:20,375 INFO [STDOUT] at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:291)
      09:11:20,375 INFO [STDOUT] at java.rmi.MarshalledObject.(MarshalledObject.java:92)
      09:11:20,375 INFO [STDOUT] at org.jboss.ejb3.stateful.StatefulBeanContext.writeExternal(StatefulBeanContext.java:120)
      09:11:20,375 INFO [STDOUT] at java.io.ObjectOutputStream.writeExternalData(ObjectOutputStream.java:1304)
      09:11:20,375 INFO [STDOUT] at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1282)
      09:11:20,375 INFO [STDOUT] at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073)
      09:11:20,375 INFO [STDOUT] at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:291)
      09:11:20,375 INFO [STDOUT] at org.jboss.ejb3.cache.simple.StatefulSessionFilePersistenceManager.passivateSession(StatefulSessionFilePersistenceManager.java:326)
      09:11:20,375 INFO [STDOUT] at org.jboss.ejb3.cache.simple.SimpleStatefulCache.passivate(SimpleStatefulCache.java:143)
      09:11:20,375 INFO [STDOUT] at org.jboss.ejb3.cache.simple.SimpleStatefulCache$SessionTimeoutTask.run(SimpleStatefulCache.java:92)
      09:11:20,375 INFO [STDOUT] at java.util.TimerThread.mainLoop(Timer.java:512)
      09:11:20,375 INFO [STDOUT] at java.util.TimerThread.run(Timer.java:462)