Uploaded image for project: 'Remoting JMX'
  1. Remoting JMX
  2. REMJMX-93

Unable to connect over remjmx on ip6

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Major Major
    • None
    • None
    • Connection
    • 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.

            darran.lofthouse@redhat.com Darran Lofthouse
            rob.stryker Rob Stryker (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: