The problem of catch spring implementation's Exception
------------------------------------------------------
Key: TUSCANY-2779
URL: https://issues.apache.org/jira/browse/TUSCANY-2779
Project: Tuscany
Issue Type: Bug
Components: Java SCA Spring Implementation Extension
Affects Versions: Java-SCA-1.4
Environment: SuSE Linux 10.3 for PPC IBM JDK 1.6
Reporter: zhulei
Fix For: Java-SCA-1.4
I find that I can not catch the Exception message when I test the spring
implementation recently.
I try to recode the source code as It's very important for me. I find a bug in
it and revise it. I success.
the code of org.apache.tuscany.sca.implementation.spring.SpringInvoker.doInvoke
befor changed :
} catch (InvocationTargetException e) {
throw new SpringInvocationException("Spring invoker invoke method
'"+ theMethod.getName()+"' error.",e);
changed and tested:
} catch (InvocationTargetException e) {
throw new SpringInvocationException("Spring invoker invoke method
'"+ theMethod.getName()+"' error.",e.getCaus());
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.