2 Replies Latest reply on May 7, 2004 12:23 PM by afleet

    [AbstractInstanceCache] failed to passivate

    afleet Newbie

      I have a stateful session bean which has an instance field of;

      public Context myInitialContext;

      I initialize this in ejbCreate, thus;

      myInitialContext = (Context)myInitialContext.lookup("java:comp/env");

      When I re-deploy the application having used it, I guess JBoss is
      passivating the bean. When it does so I see the following error...

      javax.ejb.EJBException: Could not passivate; failed to save state;
      CausedByException is: org.jboss.ejb.plugins.TxInterceptorBMT
      at org.jboss.ejb.plugins.StatefulSessionFilePersistenceManager.passivateSession(StatefulSess
      at org.jboss.ejb.plugins.StatefulSessionInstanceCache.passivate(StatefulSessionInstanceCache

      Since this error only started appearing after I inserted the instance
      variable it must be related,

      Any thoughts?