Hi Ranchers,
We have a
J2EE Web application running on Jboss-3.2.1/Solaris. In some cases, when
Jboss tries to server the error page, it goes into an infinite loop and finally throws a StackOverflow error.
The stack trace looks like this:
at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:501)
at com.xyz.ui.jsp.error_jsp._jspService(error_jsp.java:780)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:356)
at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:294)
at org.mortbay.jetty.servlet.Dispatcher.dispatch(Dispatcher.java:196)
at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:133)
at org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:430)
at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:501)
at com.xyz.ui.jsp.error_jsp._jspService(error_jsp.java:780)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:356)
at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:294)
at org.mortbay.jetty.servlet.Dispatcher.dispatch(Dispatcher.java:196)
at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:133)
at org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:430)
at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:501)
This is the code at error_jsp.java:780 (in bold) :
} catch (Throwable t) {
out = _jspx_out;
if (out != null && out.getBufferSize() != 0)
out.clearBuffer();
if (pageContext != null) pageContext.handlePageException(t); }
It looks like Jboss encounters another exception while serving error.jsp and thus goes in an infinite loop. But this happens intermittently and we are not sure why it happens.
Will appreciate any thoughts/suggestion on this.
Thanks,
Basu.