User: user57
Date: 02/03/04 19:01:02
Modified: src/main/org/jboss/system/server ServerImpl.java
Log:
o Using JMXExceptionDecoder
Revision Changes Path
1.9 +8 -41 jboss-system/src/main/org/jboss/system/server/ServerImpl.java
Index: ServerImpl.java
===================================================================
RCS file:
/cvsroot/jboss/jboss-system/src/main/org/jboss/system/server/ServerImpl.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- ServerImpl.java 5 Mar 2002 02:34:54 -0000 1.8
+++ ServerImpl.java 5 Mar 2002 03:01:02 -0000 1.9
@@ -25,10 +25,6 @@
import javax.management.MBeanServerFactory;
import javax.management.ObjectName;
import javax.management.MBeanException;
-import javax.management.RuntimeMBeanException;
-import javax.management.RuntimeErrorException;
-import javax.management.RuntimeOperationsException;
-import javax.management.ReflectionException;
import org.jboss.Version;
@@ -38,6 +34,7 @@
import org.jboss.system.UnifiedClassLoader;
import org.jboss.system.MBeanClassLoader;
+import org.jboss.util.jmx.JMXExceptionDecoder;
import org.jboss.util.file.FileSuffixFilter;
/**
@@ -48,7 +45,7 @@
*
* @author <a href="mailto:[EMAIL PROTECTED]">Marc Fleury</a>
* @author <a href="mailto:[EMAIL PROTECTED]">Jason Dillon</a>
- * @version $Revision: 1.8 $
+ * @version $Revision: 1.9 $
*/
public class ServerImpl
implements Server, ServerImplMBean
@@ -210,25 +207,9 @@
{
doStart();
}
- catch (MBeanException e)
- {
- throw e.getTargetException();
- }
- catch (RuntimeMBeanException e)
- {
- throw e.getTargetException();
- }
- catch (RuntimeOperationsException e)
- {
- throw e.getTargetException();
- }
- catch (ReflectionException e)
- {
- throw e.getTargetException();
- }
- catch (RuntimeErrorException e)
+ catch (Exception e)
{
- throw e.getTargetError();
+ JMXExceptionDecoder.rethrow(e);
}
}
catch (Throwable t)
@@ -657,17 +638,10 @@
new Object[0],
new String[0]);
}
- catch (MBeanException e)
- {
- log.error("failed to shutdown deployer", e.getTargetException());
- }
- catch (RuntimeMBeanException e)
- {
- log.error("failed to shutdown deployer", e.getTargetException());
- }
catch (Exception e)
{
- log.error("failed to shutdown deployer", e);
+ Throwable t = JMXExceptionDecoder.decode(e);
+ log.error("failed to shutdown deployer", t);
}
}
@@ -685,17 +659,10 @@
new Object[0],
new String[0]);
}
- catch (MBeanException e)
- {
- log.error("failed to shutdown", e.getTargetException());
- }
- catch (RuntimeMBeanException e)
- {
- log.error("failed to shutdown", e.getTargetException());
- }
catch (Exception e)
{
- log.error("failed to shutdown", e);
+ Throwable t = JMXExceptionDecoder.decode(e);
+ log.error("failed to shutdown", t);
}
}
}
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development