< prev index next >
src/share/classes/sun/management/jmxremote/ConnectorBootstrap.java
Print this page
rev 10350 : 8048050: Agent NullPointerException when rmi.port in use
Reviewed-by: jbachorik, dfuchs
*** 765,775 ****
try {
connServer =
JMXConnectorServerFactory.newJMXConnectorServer(url, env, mbs);
connServer.start();
} catch (IOException e) {
! if (connServer == null) {
throw new AgentConfigurationError(CONNECTOR_SERVER_IO_ERROR,
e, url.toString());
} else {
throw new AgentConfigurationError(CONNECTOR_SERVER_IO_ERROR,
e, connServer.getAddress().toString());
--- 765,775 ----
try {
connServer =
JMXConnectorServerFactory.newJMXConnectorServer(url, env, mbs);
connServer.start();
} catch (IOException e) {
! if (connServer == null || connServer.getAddress() == null) {
throw new AgentConfigurationError(CONNECTOR_SERVER_IO_ERROR,
e, url.toString());
} else {
throw new AgentConfigurationError(CONNECTOR_SERVER_IO_ERROR,
e, connServer.getAddress().toString());
< prev index next >