Author: rob.stryker(a)jboss.com
Date: 2012-05-14 04:40:05 -0400 (Mon, 14 May 2012)
New Revision: 40979
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.jmx.integration/src/org/jboss/ide/eclipse/as/jmx/integration/JBoss70ConnectionProvider.java
trunk/as/plugins/org.jboss.ide.eclipse.as.jmx.integration/src/org/jboss/ide/eclipse/as/jmx/integration/JBoss71ServerConnection.java
Log:
JBIDE-11826 cosmetic
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.jmx.integration/src/org/jboss/ide/eclipse/as/jmx/integration/JBoss70ConnectionProvider.java
===================================================================
---
trunk/as/plugins/org.jboss.ide.eclipse.as.jmx.integration/src/org/jboss/ide/eclipse/as/jmx/integration/JBoss70ConnectionProvider.java 2012-05-14
08:24:36 UTC (rev 40978)
+++
trunk/as/plugins/org.jboss.ide.eclipse.as.jmx.integration/src/org/jboss/ide/eclipse/as/jmx/integration/JBoss70ConnectionProvider.java 2012-05-14
08:40:05 UTC (rev 40979)
@@ -98,10 +98,12 @@
else
disconnect();
} catch( IOException ioe) {
+ Status s = null;
if( started )
- JBossServerCorePlugin.log(new Status(IStatus.ERROR,
JBossServerCorePlugin.PLUGIN_ID, "Error connecting to this server's JMX service:
" + event.getServer().getName(), ioe));
+ s = (new Status(IStatus.ERROR, JBossServerCorePlugin.PLUGIN_ID, "Unable to
reach JBoss instance. Please ensure your server is up and exposes its management ports via
the -Djboss.bind.address.management=yourwebsite.com system property."));
else
- JBossServerCorePlugin.log(new Status(IStatus.ERROR,
JBossServerCorePlugin.PLUGIN_ID, "Error disconnecting from this server's JMX
service: " + event.getServer().getName(), ioe));
+ s = (new Status(IStatus.ERROR, JBossServerCorePlugin.PLUGIN_ID, "Error
disconnecting from this server's JMX service: " + event.getServer().getName(),
ioe));
+ JBossServerCorePlugin.log(s);
}
}
}
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.jmx.integration/src/org/jboss/ide/eclipse/as/jmx/integration/JBoss71ServerConnection.java
===================================================================
---
trunk/as/plugins/org.jboss.ide.eclipse.as.jmx.integration/src/org/jboss/ide/eclipse/as/jmx/integration/JBoss71ServerConnection.java 2012-05-14
08:24:36 UTC (rev 40978)
+++
trunk/as/plugins/org.jboss.ide.eclipse.as.jmx.integration/src/org/jboss/ide/eclipse/as/jmx/integration/JBoss71ServerConnection.java 2012-05-14
08:40:05 UTC (rev 40979)
@@ -72,7 +72,7 @@
return null;
} catch( RuntimeException re) {
IStatus stat = new Status(IStatus.ERROR, JBossServerCorePlugin.PLUGIN_ID,
- "Runtime Exception contacting JBoss instance. Please ensure your server is up
and exposes its management ports via the -Djboss.bind.address.management=yourwebsite.com
system property", re);
+ "Unable to reach JBoss instance. Please ensure your server is up and exposes
its management ports via the -Djboss.bind.address.management=yourwebsite.com system
property", re);
throw new JMXException(stat);
}
}
Show replies by date