Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

500 error - AEM error handler

demd43642519
Level 4
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 ?

0 Replies