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

JspServletWrapper does not propagate exception message

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Scripting JSP 2.5.2
    • Scripting JSP 2.6.0
    • Scripting
    • None

    Description

      The JspServletWrapper does not propagate the correct exception message, which requires to have the entire exception stack logged and preserved in order to analyze the issue.

      Caused by: org.apache.sling.api.SlingException:
              at org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.handleJspExceptionInternal(JspServletWrapper.java:685) [org.apache.sling.scripting.jsp:2.5.2]
              at org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:602) [org.apache.sling.scripting.jsp:2.5.2]
              at org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:527) [org.apache.sling.scripting.jsp:2.5.2]
              at org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:445) [org.apache.sling.scripting.jsp:2.5.2]
              at org.apache.sling.scripting.jsp.JspScriptEngineFactory$JspScriptEngine.callJsp(JspScriptEngineFactory.java:501) [org.apache.sling.scripting.jsp:2.5.2]
              at org.apache.sling.scripting.jsp.JspScriptEngineFactory$JspScriptEngine.eval(JspScriptEngineFactory.java:586) [org.apache.sling.scripting.jsp:2.5.2]
              at org.apache.sling.scripting.core.impl.DefaultSlingScript.call(DefaultSlingScript.java:391) [org.apache.sling.scripting.core:2.4.1.T20211122115952-1fa8067]
              ... 91 common frames omitted
      Caused by: org.apache.sling.api.resource.ResourceNotFoundException: Resource at '/content/foo.html' not found: No resource found
              at org.apache.sling.servlets.get.impl.DefaultGetServlet.doGet(DefaultGetServlet.java:288) [org.apache.sling.servlets.get:2.1.44]
              at org.apache.sling.api.servlets.SlingSafeMethodsServlet.mayService(SlingSafeMethodsServlet.java:266) [org.apache.sling.api:2.24.0]
              at org.apache.sling.api.servlets.SlingSafeMethodsServlet.service(SlingSafeMethodsServlet.java:342) [org.apache.sling.api:2.24.0]
              at org.apache.sling.api.servlets.SlingSafeMethodsServlet.service(SlingSafeMethodsServlet.java:374) [org.apache.sling.api:2.24.0]
              at org.apache.sling.engine.impl.request.RequestData.service(RequestData.java:574) [org.apache.sling.engine:2.8.0]
              at org.apache.sling.engine.impl.filter.SlingComponentFilterChain.render(SlingComponentFilterChain.java:45) [org.apache.sling.engine:2.8
      

      Attachments

        Issue Links

          Activity

            People

              joerghoh Joerg Hoh
              joerghoh Joerg Hoh
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m