• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

Jboss and Stackoverflow error

 
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic