1 Reply Latest reply on May 9, 2002 6:29 AM by r_clegg1

    no such object in table

    r_clegg1 Newbie

      am trying to call the create() of a stateful session bean which resides on another jboss instance (but on the same machine). The lookup works ok, but when the create
      is called i get java.rmi.NoSuchObjectException: no such object in table. If I call the create() from within the same jboss instance, everything works ok. Is it something to do with the rmiclass loader being disabled.
      If so, how do I get it enabled.

      java.util.Properties env = new java.util.Properties();
      // remote jboss server ........
      env.put(Context.PROVIDER_URL, "jnp://jbsyscc6:9099");
      Object objref = jndiContext.lookup("java:comp/env/ejb/chatmessages");
      chatHome = (ChatMessagesHome)PortableRemoteObject.narrow(objref, ChatMessagesHome.class);
      // abends here .......
      chatRemote = chatHome.create();

      [10:26:55,440,Default] Create com/pcl/avon/chatmessagesSysHome
      [10:26:55,830,ProxyBean] TRANSACTION ROLLBACK EXCEPTION:
      javax.transaction.TransactionRolledbackException: no such object in table; nested exception is:
      java.rmi.NoSuchObjectException: no such object in table
      at org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxInterceptorCMT.java:188)
      at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:347)
      at org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.java:86)
      at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:103)