[jetty-user] Missing nested Exceptions
Udo Offermann <[email protected]>
| Newsgroups | gmane.comp.java.jetty.support |
|---|---|
| Message-ID | <[email protected]> |
Hi everybody,
I am missing nested exceptions in the logs printed out by jetty (ver 6.1.23 - actually I'm not missing exceptions at all, but... ;-)
Looking closer to the problem I found that for instant nested RuntimeExceptions are not logged. It seems to me that
org.mortbay.log.Log::unwind() considers only nested exceptions that contain one of the following methods:
private static final String[] __nestedEx =
{"getTargetException","getTargetError","getException","getRootCause"};
However java.lang.RuntimeException only supports getCause() which is missing in this list.
Is there a reason why getCause() is not considered?
Thanks in advance and best regards,
Udo
[email protected]