From: <jca...@us...> - 2003-09-11 23:26:47
|
Update of /cvsroot/openamf/openamf/src/java/org/openamf/invoker In directory sc8-pr-cvs1:/tmp/cvs-serv32261/src/java/org/openamf/invoker Modified Files: EJBServiceInvoker.java Log Message: fixed bug that was hidding real exceptions Index: EJBServiceInvoker.java =================================================================== RCS file: /cvsroot/openamf/openamf/src/java/org/openamf/invoker/EJBServiceInvoker.java,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** EJBServiceInvoker.java 15 Aug 2003 22:03:42 -0000 1.9 --- EJBServiceInvoker.java 11 Sep 2003 23:26:44 -0000 1.10 *************** *** 8,11 **** --- 8,12 ---- package org.openamf.invoker; + import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; import java.rmi.RemoteException; *************** *** 81,84 **** --- 82,89 ---- } + } catch (InvocationTargetException e) { + //use the cause since the exception is thrown when + //the service method throws an exception + throw new ServiceInvocationException(request, e.getTargetException()); } catch (Exception e) { throw new ServiceInvocationException(request, e); |