1 Reply Latest reply on Jun 22, 2011 8:50 AM by gg cc

    Ejb Stateful Could not activate; failed to restore state

    gg cc Newbie

      Hi all,


      I am using an Ejb stateful in my web but after ten minutes i got the exception Could not activate; failed to restore state.


      this code is in my servlet:


      HttpSession session = request.getSession(true);

      UnidadDocumentalBoEjbLocal ejbud = (BoEjbLocal) session.getAttribute("ejbud");


      if(ejbud == null)


            //get the default JNDI initial context

            Context ctx = new InitialContext();

            //get the bussiness interface

            Object obj = ctx.lookup("jbib-enterprise/BoEjb/local");

            //convert obj

             ejbud = (BoEjbLocal) obj;


             session.setAttribute("ejbud", ejbud);



      Before the exception i can see in my log:


      (SFSB Passivation Thread - jboss.j2ee:ear=jbib-enterprise.ear,....) passivate


      In my standardjboss.xml i have:


        <!-- <max-bean-age>600</max-bean-age> -->


      i see that in my folder tmp/log of my server is the session file....


      how can i reactivate my session after passivating ???


      thanks in advance.