Author: rob.stryker(a)jboss.com
Date: 2007-11-11 14:32:33 -0500 (Sun, 11 Nov 2007)
New Revision: 4834
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/extensions/jmx/JMXModel.java
Log:
undoing the last fix so that I can properly re-commit it with JIRA issue attached
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/extensions/jmx/JMXModel.java
===================================================================
---
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/extensions/jmx/JMXModel.java 2007-11-11
19:31:24 UTC (rev 4833)
+++
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/extensions/jmx/JMXModel.java 2007-11-11
19:32:33 UTC (rev 4834)
@@ -427,9 +427,6 @@
public static class JMXSafeRunner {
public static void run(IServer s, JMXRunnable r) {
- // do nothing if the server is down.
- if( s.getServerState() != IServer.STATE_STARTED ) return;
-
ClassLoader currentLoader = Thread.currentThread()
.getContextClassLoader();
ClassLoader newLoader = JMXClassLoaderRepository.getDefault()
@@ -447,13 +444,9 @@
r.run(connection);
}
} catch (Exception e) {
- // if the server isn't started (or began shutting
- // down during the op), don't log the error.
- if( s.getServerState() != IServer.STATE_STARTED ) {
- JBossServerCorePlugin.getDefault().getLog().log(
- new Status(IStatus.ERROR, JBossServerCorePlugin.PLUGIN_ID,
- "Error while running JMX-safe code", e));
- }
+ JBossServerCorePlugin.getDefault().getLog().log(
+ new Status(IStatus.ERROR, JBossServerCorePlugin.PLUGIN_ID,
+ "Error while running JMX-safe code", e));
}
Thread.currentThread().setContextClassLoader(currentLoader);
}
Show replies by date