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

    NoSuchObjectException from stateful session

    arcarc

      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:
      C:\otherPrograms\java\jboss-3.0.4\server\default\db\sessions\DCStreamsSe
      ssion\1059519195508.ser (The system cannot find the file specified)
      at org.jboss.ejb.plugins.AbstractInstanceCache.get(AbstractInstanceCache
      .java:186)
      at org.jboss.ejb.plugins.StatefulSessionInstanceInterceptor.invoke(State
      fulSessionInstanceInterceptor.java:212)
      at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInte
      rceptor.java:107)
      at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxIntercep
      torCMT.java:178)
      at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:6
      0)
      at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:204)
      at org.jboss.ejb.StatefulSessionContainer.invoke(StatefulSessionContaine
      r.java:380)
      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:
      382)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
      java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:25)

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