RuntimeException rex = ex.getTargetException(); if (rex instanceof RuntimeMBeanException) { throw ((RuntimeMBeanException) rex).getTargetException();
RuntimeException rex = ex.getTargetException(); if (rex instanceof RuntimeMBeanException) { throw ((RuntimeMBeanException) rex).getTargetException();
public Object handleRuntimeOperationsException(ProxyContext ctx, RuntimeOperationsException e, Method m, Object[] args) throws Exception { // target is always a runtime exception, so its ok to throw it from here throw e.getTargetException(); }
public Object handleRuntimeOperationsException(ProxyContext ctx, RuntimeOperationsException e, Method m, Object[] args) throws Exception { // target is always a runtime exception, so its ok to throw it from here throw e.getTargetException(); }
targetExc = ((RuntimeMBeanException) e).getTargetException(); } else if (e instanceof RuntimeOperationsException) { targetExc = ((RuntimeOperationsException) e).getTargetException(); } else if (e instanceof RuntimeErrorException) { Error atargetExc = ((RuntimeErrorException) e).getTargetError();
log.error("RuntimeOperationsException", e.getTargetException()); throw e.getTargetException();
log.error("RuntimeOperationsException", e.getTargetException()); throw e.getTargetException();
throw e.getTargetException(); } catch (MBeanException e) { throw e.getTargetException();
e = ((RuntimeOperationsException)e).getTargetException();
/** * Attempt to decode the given Throwable. If it * is a container JMX exception, then the target * is returned. Otherwise the argument is returned. */ public static Throwable decode(final Throwable t) { Throwable result = t; while (true) { if (result instanceof MBeanException) result = ((MBeanException) result).getTargetException(); else if (result instanceof ReflectionException) result = ((ReflectionException) result).getTargetException(); else if (result instanceof RuntimeOperationsException) result = ((RuntimeOperationsException) result).getTargetException(); else if (result instanceof RuntimeMBeanException) result = ((RuntimeMBeanException) result).getTargetException(); else if (result instanceof RuntimeErrorException) result = ((RuntimeErrorException) result).getTargetError(); else // can't decode break; } return result; }
RuntimeException rex = ex.getTargetException(); if (rex instanceof RuntimeMBeanException) { throw ((RuntimeMBeanException) rex).getTargetException();
} catch (RuntimeOperationsException e) { logger.log(BasicLevel.ERROR, "Cannot deploy file: " + targetFileName + " :", e); Exception t = e.getTargetException(); String errmess = t.getMessage(); Throwable c = t.getCause();
} catch (RuntimeOperationsException e) { logger.log(BasicLevel.ERROR, "Cannot deploy file: " + targetFileName + " :", e); Exception t = e.getTargetException(); String errmess = t.getMessage(); Throwable c = t.getCause();