Gilles Letare created CAMEL-5598:
------------------------------------
Summary: BeanProcessor - InvocationTargetException propagates
cause instead of target
Key: CAMEL-5598
URL: https://issues.apache.org/jira/browse/CAMEL-5598
Project: Camel
Issue Type: Bug
Components: camel-core
Affects Versions: 2.10.0
Reporter: Gilles Letare
Priority: Trivial
In BeanProcessor.process, InvocationTargetException's are caught, but the
exception set on the exchange is the cause instead of the target.
See lines 164-180 on version 2.10.0:
try {
...
value = invocation.proceed(callback, sync);
...
} catch (InvocationTargetException e) {
exchange.setException(e.getCause());
...
}
I think it should be:
} catch (InvocationTargetException e) {
exchange.setException(e.getTargetException());
...
}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira