0 Replies Latest reply on Jul 29, 2003 5:30 PM by Alan Chappell

    NoSuchObjectException from stateful session

    Alan Chappell Newbie

      I have a client that connects to a stateful session bean. At startup, the client looks up a reference to the session and then uses the reference to retrieve some information. A few seconds laters (1-3) after the user clicks a couple buttons, the client requests the same information from the session that worked before but this time gets a NoSuchObjectException. Exception included below.

      I've read the message in the FAQ about persistence in stateful session beans, but don't see how that applies. All instance variables are public so they should be serializable. We are talking about a VERY short delay between uses of the session. Further, I added print outs in the passivate and activate methods and they are not being called.

      java.rmi.NoSuchObjectException: Could not activate; CausedByException is:
      ssion\1059519195508.ser (The system cannot find the file specified)
      at org.jboss.ejb.plugins.AbstractInstanceCache.get(AbstractInstanceCache
      at org.jboss.ejb.plugins.StatefulSessionInstanceInterceptor.invoke(State
      at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInte
      at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxIntercep
      at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:6
      at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:204)
      at org.jboss.ejb.StatefulSessionContainer.invoke(StatefulSessionContaine
      at org.jboss.ejb.Container.invoke(Container.java:712)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
      at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces

      Any thoughts appreciated. I can provide more info if needed.