BeanELResolver hides target exception in ELException when catching InvocationTargetException

Description

When an InvocationTargetException is caught by the BeanELResolver of the Activiti engine, it creates an ELException out of it with the cause of the invocation target exception.

This is bad, as the cause is null for the invocation target exception. The responsible exception that actually caused the error is found in the target, thus the getCause() call should be replaced by a getTargetException() call in this case, otherwise, the real exception is hidden.

A patch to provide this has been attached.

Environment

None

Assignee

Joram Barrez

Reporter

Heiko Kopp

Labels

None

Components

Fix versions

Affects versions

Priority

Major
Configure