1 Reply Latest reply on Nov 8, 2002 1:05 PM by Juha Lindfors

    Client crashes when connecting to the RemoteMBeanServer

    Erik Newbie

      Hello

      I,ve written a very small client to connect to a remote mbeanserver (Jboss 3.0.2) when I call

      RemoteMBeanServer server = new RMIConnectorImpl (adaptor);

      My JVM (where the client is running on) crashes.
      Here is my complete client code to connect. Anyone any idea what is wrong here

      public void connect () { if (this.initialContext == null) { Properties env = new Properties(); env.setProperty("java.naming.factory.initial", "org.jnp.interfaces.NamingContextFactory");

      env.setProperty("java.naming.provider.url", "jbosshost:1099");
      this.initialContext = new InitialContext(env);
      }
      RMIAdaptor adaptor = (RMIAdaptor) this.initialContext.lookup("jmx:jbosshost:rmi");
      RemoteMBeanServer server = new RMIConnectorImpl (adaptor);

      }