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);
}
JVM crashes are due to bugs in the VM implementation, you can rarely work around them by changing your own code.