1 Reply Latest reply on Sep 23, 2002 11:10 PM by dmaclaren

    Stateful session and nested session references

    dmaclaren

      Ok, I have a structure noted below. I am using JBOSS-3.0.0.

      I have a session bean that has an object who has a EJB reference in it. When the top most is to Passivate I get the seeor listed below. This should be ok in EJB land. Am I missing some descriptor? In the Top EJB i have an EJB ref to the lower.

      Thanks for any help
      Don

      1. TestBeanA is a stateful session bean.
      2. TestBeanA has a class of A as a variable
      3. Class A has a variable that is a bean of TestBeanB

      TestBeanA will not passivate. Looks like it is choking on this nesting of objects. As far as I know, an EJB can have a reference to another EJB in it or down the Object path.

      Error as follows.
      23:45:28,997 DEBUG [EJBControllerSBean] Passivating the EJBC 23:45:29,067 ERROR [Log4jService$ThrowableListenerLoggingAdapter] unhandled throwable
      java.rmi.ServerException: Could not passivate; nested exception is:
      java.rmi.MarshalException: Invalid remote object
      at org.jboss.ejb.plugins.StatefulSessionFilePersistenceManager.passivateSession(StatefulSessionFilePersistenceMa
      nager.java:294)
      at org.jboss.ejb.plugins.StatefulSessionInstanceCache.passivate(StatefulSessionInstanceCache.java:78)
      at org.jboss.ejb.plugins.AbstractInstanceCache$1.execute(AbstractInstanceCache.java:615)
      at org.jboss.util.WorkerQueue$QueueLoop.run(WorkerQueue.java:206)
      at java.lang.Thread.run(Thread.java:536)
      Caused by: java.rmi.MarshalException: Invalid remote object
      at java.rmi.server.RemoteObject.writeObject(RemoteObject.java:342)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)