Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
Scripting JSP 2.5.2
-
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
- is duplicated by
-
SLING-7843 exception message is lost inside Scripting JSP error handler
- Closed