2 Replies Latest reply on Apr 11, 2004 9:24 AM by Huafu Wu

    Passivated ejb has been removed before the client connection

    thomas.b Newbie

      Hello, I'm getting the exception below.
      The bean has already been removed, but the client using this bean is still alive.
      The exceptions has been thrown when the client tries to get access to the server.

      Why removes the server the file "ds4h2b8t-8.ser" before the session has been closed?

      Thanks for your help
      Thomas

      Version of the JBoss server:

      13:35:19,862 55280 main INFO [system.server.Server:doStart] - JBoss (MX MicroKernel) [3.2.3 (build: CVSTag=JBoss_3_2_3 date=200311301445)] Started in 55s:218ms


      log / exception :

      13:22:19,511 4926605 RMI TCP Connection(130)-172.27.237.101 DEBUG [acsf.server.ServerBean:unregister] - Entering ...
      13:22:19,511 4926605 RMI TCP Connection(130)-172.27.237.101 DEBUG [acsf.server.ServerBean:unregister] - Lookup for : aareal/de.aareal.framework.acsf.common.ClientInfoImpl
      13:22:19,542 4926636 RMI TCP Connection(130)-172.27.237.101 DEBUG [acsf.server.ServerBean:unregister] - ClientInfo : de.aareal.framework.acsf.common.ClientInfoImpl@1e565bd
      13:22:19,542 4926636 RMI TCP Connection(130)-172.27.237.101 DEBUG [acsf.server.ServerBean:unregister] - Leaving ...
      13:22:19,542 4926636 RMI TCP Connection(130)-172.27.237.101 DEBUG [acsf.common.ClientInfoImpl:unregister] - Entering ...
      13:22:19,542 4926636 RMI TCP Connection(130)-172.27.237.101 DEBUG [acsf.common.ClientInfoImpl:unregister] - Removing client : de.aareal.framework.acsf.common.Client_Stub[RemoteStub [ref: [endpoint:[172.27.237.101:4186](remote),objID:[158f9d3:fb724eecc6:-8000, 0]]]]
      13:22:25,761 4932855 Thread-27 DEBUG [ejb.plugins.StatefulSessionFilePersistenceManager:removePassivated] - Removing passivated state file: C:\daten\jboss-3.2.3\server\default\tmp\sessions\de.aareal.framework.acsf.common.ServerBean-ds4gaej6-3\ds4h2b8t-8.ser
      13:22:25,761 4932855 Thread-27 DEBUG [ejb.plugins.StatefulSessionFilePersistenceManager:removePassivated] - Removing passivated state file: C:\daten\jboss-3.2.3\server\default\tmp\sessions\de.aareal.framework.acsf.common.ServerBean-ds4gaej6-3\ds4grs6q-7.ser
      13:22:25,761 4932855 Thread-27 DEBUG [ejb.plugins.StatefulSessionFilePersistenceManager:removePassivated] - Removing passivated state file: C:\daten\jboss-3.2.3\server\default\tmp\sessions\de.aareal.framework.acsf.common.ServerBean-ds4gaej6-3\ds4ged2o-6.ser
      13:22:25,777 4932871 Thread-27 DEBUG [ejb.plugins.StatefulSessionFilePersistenceManager:removePassivated] - Removing passivated state file: C:\daten\jboss-3.2.3\server\default\tmp\sessions\de.aareal.framework.acsf.common.ServerBean-ds4gaej6-3\ds4gebml-5.ser
      13:22:25,777 4932871 Thread-27 DEBUG [ejb.plugins.StatefulSessionFilePersistenceManager:removePassivated] - Removing passivated state file: C:\daten\jboss-3.2.3\server\default\tmp\sessions\de.aareal.framework.acsf.common.ServerBean-ds4gaej6-3\ds4ge9mz-4.ser
      13:22:44,058 4951152 RMI TCP Connection(133)-172.27.237.101 DEBUG [ejb.plugins.StatefulSessionFilePersistenceManager:activateSession] - Attempting to activate; ctx=org.jboss.ejb.StatefulSessionEnterpriseContext@1a422d9
      13:22:44,074 4951168 RMI TCP Connection(133)-172.27.237.101 DEBUG [ejb.plugins.StatefulSessionFilePersistenceManager:activateSession] - Reading session state from: C:\daten\jboss-3.2.3\server\default\tmp\sessions\de.aareal.framework.acsf.common.ServerBean-ds4gaej6-3\ds4h2b8t-8.ser
      13:22:44,074 4951168 RMI TCP Connection(133)-172.27.237.101 DEBUG [ejb.plugins.AbstractInstanceCache:get] - Activation failure
      javax.ejb.EJBException: Could not activate; failed to restore state; CausedByException is:
      C:\daten\jboss-3.2.3\server\default\tmp\sessions\de.aareal.framework.acsf.common.ServerBean-ds4gaej6-3\ds4h2b8t-8.ser (Das System kann die angegebene Datei nicht finden)
      at org.jboss.ejb.plugins.StatefulSessionFilePersistenceManager.activateSession(StatefulSessionFilePersistenceManager.java:324)
      at org.jboss.ejb.plugins.StatefulSessionInstanceCache.activate(StatefulSessionInstanceCache.java:90)
      at org.jboss.ejb.plugins.AbstractInstanceCache.get(AbstractInstanceCache.java:107)
      at org.jboss.ejb.plugins.StatefulSessionInstanceInterceptor.invoke(StatefulSessionInstanceInterceptor.java:210)
      at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:84)
      at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:267)
      at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:128)
      at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191)
      at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122)
      at org.jboss.ejb.StatefulSessionContainer.internalInvoke(StatefulSessionContainer.java:416)
      at org.jboss.ejb.Container.invoke(Container.java:700)
      at sun.reflect.GeneratedMethodAccessor37.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
      at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:367)
      at sun.reflect.GeneratedMethodAccessor36.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261)
      at sun.rmi.transport.Transport$1.run(Transport.java:148)
      at java.security.AccessController.doPrivileged(Native Method)
      at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
      at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
      at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
      at java.lang.Thread.run(Thread.java:534)
      java.io.FileNotFoundException: C:\daten\jboss-3.2.3\server\default\tmp\sessions\de.aareal.framework.acsf.common.ServerBean-ds4gaej6-3\ds4h2b8t-8.ser (Das System kann die angegebene Datei nicht finden)
      at java.io.FileInputStream.open(Native Method)
      at java.io.FileInputStream.(FileInputStream.java:106)
      at org.jboss.ejb.plugins.StatefulSessionFilePersistenceManager.activateSession(StatefulSessionFilePersistenceManager.java:308)
      at org.jboss.ejb.plugins.StatefulSessionInstanceCache.activate(StatefulSessionInstanceCache.java:90)
      at org.jboss.ejb.plugins.AbstractInstanceCache.get(AbstractInstanceCache.java:107)
      at org.jboss.ejb.plugins.StatefulSessionInstanceInterceptor.invoke(StatefulSessionInstanceInterceptor.java:210)
      at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:84)
      at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:267)
      at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:128)
      at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191)
      at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122)
      at org.jboss.ejb.StatefulSessionContainer.internalInvoke(StatefulSessionContainer.java:416)
      at org.jboss.ejb.Container.invoke(Container.java:700)
      at sun.reflect.GeneratedMethodAccessor37.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
      at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:367)
      at sun.reflect.GeneratedMethodAccessor36.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261)
      at sun.rmi.transport.Transport$1.run(Transport.java:148)
      at java.security.AccessController.doPrivileged(Native Method)
      at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
      at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
      at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
      at java.lang.Thread.run(Thread.java:534)
      13:23:19,230 4986324 IdleRemover DEBUG [resource.connectionmanager.IdleRemover:run] - run: IdleRemover notifying pools, interval: 450000