-
Bug
-
Resolution: Fixed
-
P4
-
5.0
-
b58
-
sparc
-
solaris_9
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2146890 | jdmk5.1_03 | Laurence Caullet | P4 | Closed | Fixed | 03 |
Name: em98259 Date: 06/18/2004
A DESCRIPTION OF THE REQUEST :
if JMXConnectorServer.start throws an exception, the program freezes for one minute.
JUSTIFICATION :
One wouldn't feel compelled to kill the process.
---------- BEGIN SOURCE ----------
import java.lang.management.*;
import javax.management.*;
import javax.management.remote.*;
class MB1 {
public static void main(String[] args) throws Exception {
MBeanServer mb = ManagementFactory.getPlatformMBeanServer();
JMXServiceURL url = new JMXServiceURL("service:jmx:rmi:///jndi/rmi://" + args[0] + "/server");
JMXConnectorServer cs = JMXConnectorServerFactory.newJMXConnectorServer(url, null, mb);
cs.start();
}
}
run it with java MB1 abcde
---------- END SOURCE ----------
(Incident Review ID: 280384)
======================================================================
A DESCRIPTION OF THE REQUEST :
if JMXConnectorServer.start throws an exception, the program freezes for one minute.
JUSTIFICATION :
One wouldn't feel compelled to kill the process.
---------- BEGIN SOURCE ----------
import java.lang.management.*;
import javax.management.*;
import javax.management.remote.*;
class MB1 {
public static void main(String[] args) throws Exception {
MBeanServer mb = ManagementFactory.getPlatformMBeanServer();
JMXServiceURL url = new JMXServiceURL("service:jmx:rmi:///jndi/rmi://" + args[0] + "/server");
JMXConnectorServer cs = JMXConnectorServerFactory.newJMXConnectorServer(url, null, mb);
cs.start();
}
}
run it with java MB1 abcde
---------- END SOURCE ----------
(Incident Review ID: 280384)
======================================================================
- backported by
-
JDK-2146890 Program needs one minute to finish if JMXConnectorServer.start fails
-
- Closed
-