Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-571

JspServletWrapper swallows jsp exceptions if root cause is null

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Scripting JSP 2.0.2
    • Scripting JSP 2.0.6
    • Scripting
    • 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)

      Attachments

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

        Activity

          People

            cziegeler Carsten Ziegeler
            tripod Tobias Bocanegra
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: