Code example for InvocationTargetException

Methods: getTargetException

0
			} 
			catch (SystemException ex) { 
				throw convertCorbaAccessException(ex, invocation.getMethod()); 
			} 
			catch (InvocationTargetException ex) { 
				throw ex.getTargetException(); 
			} 
			catch (Throwable ex) { 
				throw new RemoteInvocationFailureException("Invocation of method [" + invocation.getMethod() + 
						"] failed in RMI service [" + getJndiName() + "]", ex); 
			} 
		} 
		else { 
			// traditional RMI stub 
			try { 
				return RmiClientInterceptorUtils.invokeRemoteMethod(invocation, stub); 
			} 
			catch (InvocationTargetException ex) { 
				Throwable targetEx = ex.getTargetException(); 
				if (targetEx instanceof RemoteException) { 
Contextual code suggestions in your IDE  Get Codota for Java