[jboss-jira] [JBoss JIRA] (REMJMX-93) Unable to connect over remjmx on ip6
Rob Stryker (JIRA)
issues at jboss.org
Thu Feb 5 04:31:49 EST 2015
[ https://issues.jboss.org/browse/REMJMX-93?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13037766#comment-13037766 ]
Rob Stryker commented on REMJMX-93:
-----------------------------------
This seems to be a false alarm. Sorry for the spam. It seems when I added brackets, I included the port inside the brackets, which was incorrect.
Correct url is service:jmx:http-remoting-jmx://[fe80::5e51:4fff:fee6:e7ea]:9990
I will close this shortly if I am unable to replicate on any wildfly versions... For now it looks like it may just be a user error.
> Unable to connect over remjmx on ip6
> ------------------------------------
>
> Key: REMJMX-93
> URL: https://issues.jboss.org/browse/REMJMX-93
> Project: Remoting JMX
> Issue Type: Bug
> Components: Connection
> Reporter: Rob Stryker
> Assignee: Darran Lofthouse
>
> Exception trace is as follows:
> {code}
> 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}
> Code being run is basically:
> {code}
> 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) {
> {code}
> 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.
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)
More information about the jboss-jira
mailing list