Jetty
  1. Jetty
  2. JETTY-1348

Log.__nextedEx needs "getCause" as well.

    Details

    • Type: Bug Bug
    • Status: Resolved Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 6.1.26
    • Fix Version/s: 6.1.27
    • Component/s: None
    • Labels:
      None
    • Number of attachments :
      0

      Description

      As reported in jetty-user...

      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
      u.offermann@gmail.com

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            Joakim Erdfelt
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: