Hi, I want to get an application specific exception (which extends java.rmi.RemoteException) from calling a rmi binding service. But the exception always wrappered in a InvocationTargetException.
RMI spec supports remote exception. I am not sure if I missed something in the composite configuration or Tuscany doesn't support throwing the RemoteException directly. In RuntimeWireInvoker.java, I find the following code which relates to the exception handling. Object body = resp.getBody(); if (resp.isFault()) { throw new InvocationTargetException((Throwable)body); } I guess the wrapping here is the cause of the exception wrapper. Best Regards, Yang Sun