Bug in jconsole of jdk 6 beta2 (Mustang)
These days i encountered a possible bug in jconsole of jdk 6 (it was called Mustang before):
When i start a JMXConnectorServer with the following code
LocateRegistry.createRegistry(9000);
MBeanServer mbs = ManagementFactory.getPlatformMBeanServer();
HashMap<String, Object> env = new HashMap<String, Object>();
JMXServiceURL url = new JMXServiceURL("service:jmx:rmi://localhost:3000/jndi/rmi://localhost:9000/server");
JMXConnectorServer cs = JMXConnectorServerFactory.newJMXConnectorServer(url, env, mbs);
cs.start();
i can connect with /usr/lib/jvm/java-1.5.0/bin/jconsole service:jmx:rmi://127.0.0.1:3000/jndi/rmi://127.0.0.1:9000/server
but not with /usr/lib/jvm/java-1.6.0/bin/jconsole service:jmx:rmi://127.0.0.1:3000/jndi/rmi://127.0.0.1:9000/server
With the 1.6 jconsole i simply get a connection failed error message, but no more details.
(jconsole of 1.6.0-beta2-b86, Linux 2.6.17-1.2174_FC5)
I filed this as a bug in the sun bug database three days ago, right now i got the notification that the report is accepted and is filed under bug id 6467247.
They say it may take a day or two before the bug shows up in the external database…