Sling
  1. Sling
  2. SLING-571

JspServletWrapper swallows jsp exceptions if root cause is null

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: Scripting JSP 2.0.2
    • Fix Version/s: Scripting JSP 2.0.6
    • Component/s: Scripting
    • Labels:
      None

      Description

      For example for a JSP compile error the 'realException' is null and the following stack-frame resolution fails:

      (JspServletWrapper.java, line 492ff)

      // First identify the stack frame in the trace that represents the JSP
      StackTraceElement[] frames = realException.getStackTrace();
      StackTraceElement jspFrame = null;

      for (int i=0; i<frames.length; ++i) {
      if ( frames[i].getClassName().equals(this.getServlet().getClass().getName()) )

      { jspFrame = frames[i]; break; }

      }

      Suggest to check for (realException == null)

      1. SLING-571-fourth.patch
        6 kB
        Alexander Klimetschek
      2. SLING-571-third.patch
        6 kB
        Alexander Klimetschek
      3. SLING-571-reloaded.patch
        6 kB
        Alexander Klimetschek
      4. SLING-571.patch
        5 kB
        Alexander Klimetschek

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Carsten Ziegeler
            Reporter:
            Tobias Bocanegra
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development