Hi,
I am trying to implement Error handling in our project using ACS-Commons Error page handler. I have followed the steps mentioned here . On a 404 error, the page is displaying the 404 error page as expected. But on 500 errors, the 500 error page is not shown. I can see the following error in the logs:
Caused by: java.lang.IllegalStateException: Committed
at org.eclipse.jetty.server.Response.resetBuffer(Response.java:1154)
at org.eclipse.jetty.server.Response.reset(Response.java:1075)
at javax.servlet.ServletResponseWrapper.reset(ServletResponseWrapper.java:179)
at javax.servlet.ServletResponseWrapper.reset(ServletResponseWrapper.java:179)
at javax.servlet.ServletResponseWrapper.reset(ServletResponseWrapper.java:179)
at javax.servlet.ServletResponseWrapper.reset(ServletResponseWrapper.java:179)
at javax.servlet.ServletResponseWrapper.reset(ServletResponseWrapper.java:179)
at com.adobe.acs.commons.errorpagehandler.impl.ErrorPageHandlerImpl.resetRequestAndResponse(ErrorPageHandlerImpl.java:634)...
My understanding is that due to a larger size of the page, the response is getting committed and the hence resetBuffer fails. Increasing the buffer manually by explicity setting the buffer fixes the issue.
<%@page session="false" buffer="128kb"
However, we dont want to increase the buffer size as this may impact performance as suggested here.
This issue exists even if dont use ACS-Commons and if we redirect to the error page in overlaid 500.jsp
Can you please suggest a solution on how we can implement error handling here? Also, would there be a significant impact if the buffer size is increased to 128kb?
Thanks in Advance.
Chaitanya Pai