Hi,

I have searched the forum, however, didn't find much relevant resources. I'm 
facing the "java.rmi.NoSuchObjectException: Could not activate; failed to 
restore state;" problem when I try to access a stateful session bean after 5 
minutes of idle time. However, the remover-period is set to 1800 which I think 
is 30 minutes, right? max-bean-life is also set to 1800. Basically reuse all 
the settings from the default server that configures in the 
/jboss/server/default/conf/standardjboss.xml file. I have no idea what may 
cause the stateful session bean gone after 5 minutes. Any idea?

What else have I missed?

I'm using JBoss 4.0 [Zion] version,  JDK 1.5
-----------------------------------------------------------------------------------------------

17:23:06,329 INFO  java.rmi.NoSuchObjectException: Could not activate; failed 
to restore state; CausedByException is:
        Could not get EJBObject; nested exception is:
        java.rmi.NoSuchObjectException: Could not activate; failed to restore 
state; CausedByException is:
        
/opt/jboss-4.0/server/default/tmp/sessions/UserSession-e9nl7089-4/e9nv9n35-1r.ser
 (No such file or directory)
        at 
org.jboss.ejb.plugins.AbstractInstanceCache.get(AbstractInstanceCache.java:120)
        at 
org.jboss.ejb.plugins.StatefulSessionInstanceInterceptor.invoke(StatefulSessionInstanceInterceptor.java:217)
        at 
org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:48)
        at 
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:105)
        at 
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:313)
        at 
org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:146)
        at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:192)
        at 
org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122)
        at 
org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:624)
        at org.jboss.ejb.Container.invoke(Container.java:870)
        at sun.reflect.GeneratedMethodAccessor83.invoke(Unknown Source)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:144)
        at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
        at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
        at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
        at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
        at 
org.jboss.invocation.jrmp.server.JRMPInvoker$MBeanServerAction.invoke(JRMPInvoker.java:805)
        at 
org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:406)
        at sun.reflect.GeneratedMethodAccessor87.invoke(Unknown Source)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)
        at sun.rmi.transport.Transport$1.run(Transport.java:153)
        at java.security.AccessController.doPrivileged(Native Method)
        at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
        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:595)
17:23:06,387 ERROR java.rmi.NoSuchObjectException: Could not activate; failed 
to restore state; CausedByException is:
        Could not get EJBObject; nested exception is:
        java.rmi.NoSuchObjectException: Could not activate; failed to restore 
state; CausedByException is:
        
/opt/jboss-4.0/server/default/tmp/sessions/UserSession-e9nl7089-4/e9nv9n35-1r.ser
 (No such file or directory)
17:23:06,405 INFO  java.rmi.NoSuchObjectException: Could not activate; failed 
to restore state; CausedByException is:
        Could not get EJBObject; nested exception is:
        java.rmi.NoSuchObjectException: Could not activate; failed to restore 
state; CausedByException is:
        
/opt/jboss-4.0/server/default/tmp/sessions/UserSession-e9nl7089-4/e9nv9n35-1r.ser
 (No such file or directory)
        at 
org.jboss.ejb.plugins.AbstractInstanceCache.get(AbstractInstanceCache.java:120)
        at 
org.jboss.ejb.plugins.StatefulSessionInstanceInterceptor.invoke(StatefulSessionInstanceInterceptor.java:217)
        at 
org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:48)
        at 
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:105)
        at 
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:313)
        at 
org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:146)
        at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:192)
        at 
org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122)
        at 
org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:624)
        at org.jboss.ejb.Container.invoke(Container.java:870)
        at sun.reflect.GeneratedMethodAccessor83.invoke(Unknown Source)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:144)
        at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
        at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
        at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
        at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
        at 
org.jboss.invocation.jrmp.server.JRMPInvoker$MBeanServerAction.invoke(JRMPInvoker.java:805)
        at 
org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:406)
        at sun.reflect.GeneratedMethodAccessor87.invoke(Unknown Source)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)
        at sun.rmi.transport.Transport$1.run(Transport.java:153)
        at java.security.AccessController.doPrivileged(Native Method)
        at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
        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:595)
17:23:06,421 ERROR java.rmi.NoSuchObjectException: Could not activate; failed 
to restore state; CausedByException is:
        Could not get EJBObject; nested exception is:
        java.rmi.NoSuchObjectException: Could not activate; failed to restore 
state; CausedByException is:
        
/opt/jboss-4.0/server/default/tmp/sessions/UserSession-e9nl7089-4/e9nv9n35-1r.ser
 (No such file or directory)

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3881562#3881562

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3881562


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to