-
Bug
-
Resolution: Won't Do
-
Major
-
None
-
None
-
None
Exception trace is as follows:
java.net.MalformedURLException: Bad port number: "": java.lang.NumberFormatException: For input string: ""
at javax.management.remote.JMXServiceURL.<init>(JMXServiceURL.java:211)
at org.jboss.ide.eclipse.as.jmx.integration.JBoss71ServerConnection.createConnection(JBoss71ServerConnection.java:85)
Code being run is basically:
String url = "service:jmx:http-remoting-jmx://fe80::5e51:4fff:fee6:e7ea:9990"; JMXConnector connector = null; try { connector = JMXConnectorFactory.connect(new JMXServiceURL(url), environment); MBeanServerConnection connection = connector.getMBeanServerConnection(); synchronized(this) { this.connectionToConnector.put(connection, connector); } return connection; } catch(IOException ioe) {
It's obvious that JMXServiceURL. is parsing the url based on the location of the colons and that ip6 urls, having many colons, is confusing it. But I'm not sure if this is a bug in JMXServiceURL for not properly handling ip6 or if this is a user error, ie, I'm not passing the proper url.