Expand my Community achievements bar.

Radically easy to access on brand approved content for distribution and omnichannel performant delivery. AEM Assets Content Hub and Dynamic Media with OpenAPI capabilities is now GA.

500 error - AEM error handler

Avatar

Level 4

Error while processing /content/demo/403

Status

500

Message

org.apache.sling.api.SlingException: Exception during response processing.

Location/content/demo/403
Parent Location/content/demo
Path

/content/ui-centre/403

Refererhttp://localhost:4502/content/demo/faq.html
ChangeLog

<pre></pre>

Go Back

Modified Resource

Parent of Modified Resource

I've overlaid the default.jsp found under the libs/sling/servlet/errorhandler/ to set up  custom error page.

and I've been using this pice of code

<%@include file="/libs/foundation/global.jsp"%> 

<%@taglib prefix="sling" uri="http://sling.apache.org/taglibs/sling/1.0" %><%

%><sling:defineObjects /><%

response.setStatus(500);

request.getRequestDispatcher("/content/demo/403.html").forward(request,response);

%>

I have no clue why it doesn't work. I used the same code for the 404 and it's working.

Any suggestion ?

1 Reply