<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Sorry, I wasn't following this thread. Mostly, I'm going to plead
ignorance - I've never touched JBoss jmx-remoting. However, Jason
seems to be on the right track. The line numbers in Tim's stack trace
don't match the JBoss implementation of
javax.management.remote.JMXServiceURL.<br>
<br>
-Ron<br>
<br>
Jason T. Greene wrote:
<blockquote cite="mid:470E3F61.2030601@redhat.com" type="cite">OK, I
just verified and this is explicitly disallowed in the JDK version of
JMXSerivceURL (IMO a bug). It is however allowed in URL.
<br>
<br>
The JBoss implementation of JMXServiceURL does allow it, so the problem
is that it is not in endorsed libs.
<br>
<br>
-Jason
<br>
<br>
Jason T. Greene wrote:
<br>
<blockquote type="cite">No escaping should be needed. The JDK allows
underscores in hostnames. In reality there is nothing wrong with them,
they just aren't allowed in DNS.
<br>
<br>
Tim Fox wrote:
<br>
<blockquote type="cite"><br>
<br>
Dimitris Andreadis wrote:
<br>
<blockquote type="cite">Am I missing the point, or this is JDK
code being executed (javax.management...). How escaping the hostname
could help?
<br>
</blockquote>
<br>
AFAICT the string is just a JMX service name, it doesn't *have to*
contain the actual hostname AFAICT:
<br>
<br>
String serviceURL = "service:jmx:rmi://" + bindAddress + "/jndi/rmi://"
+ bindAddress + ":" + registryPort + jndiPath;
<br>
<br>
So should be to escape it before passing it to the JDK code.
<br>
<br>
Maybe someone from the remoting team should comment, since this is
remoting code...
<br>
<br>
<blockquote type="cite"><br>
java.net.MalformedURLException: Bad URL path:
_laptop/jndi/rmi://tims_laptop:1090/jmxconnector
<br>
at
javax.management.remote.JMXServiceURL.validate(JMXServiceURL.java:348)
<br>
at
javax.management.remote.JMXServiceURL.<init>(JMXServiceURL.java:208)
<br>
at
org.jboss.mx.remoting.service.JMXConnectorServerService.start(JMXConnectorServerService.java:106)
<br>
<br>
This looks like a non-issue to me. Better change your hostname :)
<br>
<br>
Tim Fox wrote:
<br>
<blockquote type="cite">I'm not familiar with that code, but
I'm assuming that whoever is generating the URLs should be able to
escape any occurences of '_' pretty easily....
<br>
<br>
<br>
Dimitris Andreadis wrote:
<br>
<blockquote type="cite">So, is this a JDK problem, or not?
<br>
<br>
_______________________________________________
<br>
jboss-development mailing list
<br>
<a class="moz-txt-link-abbreviated" href="mailto:jboss-development@lists.jboss.org">jboss-development@lists.jboss.org</a>
<br>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/jboss-development">https://lists.jboss.org/mailman/listinfo/jboss-development</a>
<br>
</blockquote>
<br>
</blockquote>
_______________________________________________
<br>
jboss-development mailing list
<br>
<a class="moz-txt-link-abbreviated" href="mailto:jboss-development@lists.jboss.org">jboss-development@lists.jboss.org</a>
<br>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/jboss-development">https://lists.jboss.org/mailman/listinfo/jboss-development</a>
<br>
</blockquote>
<br>
</blockquote>
<br>
<br>
</blockquote>
<br>
<br>
</blockquote>
<br>
<div class="moz-signature">-- <br>
<font color="#000000">JBoss, a Division of Red Hat<br>
"My company's smarter than your company."
</font></div>
</body>
</html>