Issue Details (XML | Word | Printable)

Key: OGNL-125
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Jesse Kuhnert
Reporter: Maja S Bratseth
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
OGNL

When OgnlException is wrapped in another exception, any exception wrapped by the OgnlException appears to be swallowed

Created: 16/Sep/07 12:26 PM   Updated: 19/Nov/07 02:23 PM
Component/s: Core Runtime
Affects Version/s: 2.6.11
Fix Version/s: 2.7.2

File Attachments: 1. Text File exception-patch.txt (2 kB)

Environment: Java 1.4 and up
Issue Links:
Related
 

Flags: Patch


 Description  « Hide
OgnlException keeps the chained exception in a field and does not pass it to the super constructor.
It overrides printStackTrace to print the chained exception.
But printStackTrace is not invoked for chained exceptions since java 1.4.
Therefore, the stacktrace of B is never printed when the chain is like this: A -> OgnlException -> B


 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Maja S Bratseth added a comment - 16/Sep/07 12:28 PM
patch

Maja S Bratseth added a comment - 16/Sep/07 12:29 PM
Same issue, patches for different versions.
Since 2.6.11 does not require java 1.4, the cause is set using reflection.