2 Replies Latest reply on Feb 24, 2005 1:47 PM by sdanig

    RMI Error : NoSuchObjectException

    solo7

      I have an RMI object that I create and bind inside an MBean using :
      Hashtable env = new Hashtable();
      env.put("java.naming.factory.initial", "org.jnp.interfaces.NamingContextFactory");
      env.put("java.naming.provider.url", "jnp://localhost:1099");
      env.put("java.naming.factory.url.pkgs", "org.jboss.naming:org.jnp.interfaces");
      Context ctx = new InitialContext(env);
      BasicAction action = new BasicActionImpl();
      ctx.bind("BasicAction", action);

      BasicAction extends UnicastRemoteObject.

      My client access the object using:
      Hashtable env = new Hashtable();
      env.put("java.naming.factory.initial", "org.jnp.interfaces.NamingContextFactory");
      env.put("java.naming.provider.url", "jnp://localhost:1099");
      env.put("java.naming.factory.url.pkgs", "org.jboss.naming:org.jnp.interfaces");
      Context ctx = new InitialContext(env);
      BasicAction action = (BasicAction)ctx.lookup("BasicAction");
      String value = action.perform("Some action.");

      The client is able to get the object, but when action.perform is called it throws a NoSuchObjectException: no such object in table

      Any help would be appreciated.

      Thanks,
      Brian
      Online Insight, Inc.