tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 5599] New: - StackOverflowError
Date Fri, 28 Dec 2001 05:48:55 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5599>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5599

StackOverflowError

           Summary: StackOverflowError
           Product: Tomcat 4
           Version: 4.0.1 Final
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Critical
          Priority: Other
         Component: Catalina
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: bmatlack@workzen.userworld.com


When doing a forward from a servlet with a url-pattern of "*" or "/*" catalina 
goes into an infinite loop. A url-pattern of "*.go" works fine.

<servlet-mapping>
  <servlet-name>myservlet</servlet-name>
  <url-pattern>/*</url-pattern>
</servlet-mapping>

String nextpage = "/test.jsp";
try{
  ServletContext context = getServletContext();
  RequestDispatcher rd = context.getRequestDispatcher(nextpage);
  if(response.isCommitted())
    rd.include(request,response);
  else
    rd.forward(request,response);
  }catch(Exception e){}

javax.servlet.ServletException: Servlet execution threw an exception
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
(ApplicationFilterChain.java:269)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter
(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.StandardWrapperValve.invoke
(StandardWrapperValve.java:243)
	at org.apache.catalina.core.StandardPipeline.invokeNext
(StandardPipeline.java:566)
	at org.apache.catalina.core.StandardPipeline.invoke
(StandardPipeline.java:472)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
	at org.apache.catalina.core.StandardContextValve.invoke
(StandardContextValve.java:201)
	at org.apache.catalina.core.StandardPipeline.invokeNext
(StandardPipeline.java:566)
	at org.apache.catalina.core.StandardPipeline.invoke
(StandardPipeline.java:472)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
	at org.apache.catalina.core.StandardContext.invoke
(StandardContext.java:2344)
	at org.apache.catalina.core.StandardHostValve.invoke
(StandardHostValve.java:164)
	at org.apache.catalina.core.StandardPipeline.invokeNext
(StandardPipeline.java:566)
	at org.apache.catalina.valves.ErrorDispatcherValve.invoke
(ErrorDispatcherValve.java:170)
	at org.apache.catalina.core.StandardPipeline.invokeNext
(StandardPipeline.java:564)
	at org.apache.catalina.valves.ErrorReportValve.invoke
(ErrorReportValve.java:170)
	at org.apache.catalina.core.StandardPipeline.invokeNext
(StandardPipeline.java:564)
	at org.apache.catalina.valves.AccessLogValve.invoke
(AccessLogValve.java:462)
	at org.apache.catalina.core.StandardPipeline.invokeNext
(StandardPipeline.java:564)
	at org.apache.catalina.core.StandardPipeline.invoke
(StandardPipeline.java:472)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
	at org.apache.catalina.core.StandardEngineValve.invoke
(StandardEngineValve.java:163)
	at org.apache.catalina.core.StandardPipeline.invokeNext
(StandardPipeline.java:566)
	at org.apache.catalina.core.StandardPipeline.invoke
(StandardPipeline.java:472)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
	at org.apache.catalina.connector.http.HttpProcessor.process
(HttpProcessor.java:1011)
	at org.apache.catalina.connector.http.HttpProcessor.run
(HttpProcessor.java:1106)
	at java.lang.Thread.run(Thread.java:484)


root cause 

java.lang.StackOverflowError
	at org.apache.catalina.core.ApplicationHttpRequest.removeAttribute
(ApplicationHttpRequest.java:233)
	at org.apache.catalina.core.ApplicationHttpRequest.removeAttribute
(ApplicationHttpRequest.java:233)
	at org.apache.catalina.core.ApplicationHttpRequest.removeAttribute
(ApplicationHttpRequest.java:233)
	at org.apache.catalina.core.ApplicationHttpRequest.removeAttribute
(ApplicationHttpRequest.java:233)
	at org.apache.catalina.core.ApplicationHttpRequest.removeAttribute
....
(ApplicationHttpRequest.java:233)
        at org.apache.catalina.core.ApplicationHttpRequest.removeAttribute
(ApplicationHttpRequest.java:233)
	at org.apache.catalina.core.ApplicationHttpRequest.removeAttribute
(ApplicationHttpRequest.java:233)
	at org.apache.catalina.core.ApplicationDispatcher.invoke
(ApplicationDispatcher.java:672)
	at org.apache.catalina.core.ApplicationDispatcher.doForward
(ApplicationDispatcher.java:431)
	at org.apache.catalina.core.ApplicationDispatcher.forward
(ApplicationDispatcher.java:355)
	at com.workzen.servlet.controller.TestController.goForward
(TestController.java:283)
	at com.workzen.servlet.controller.TestController.doGet
(TestController.java:150)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at org.apache.catalina.core.ApplicationDispatcher.invoke
(ApplicationDispatcher.java:679)
	at org.apache.catalina.core.ApplicationDispatcher.doForward
(ApplicationDispatcher.java:431)
	at org.apache.catalina.core.ApplicationDispatcher.forward
(ApplicationDispatcher.java:355)
	at com.workzen.servlet.controller.TestController.goForward
(TestController.java:283)
	at com.workzen.servlet.controller.TestController.doGet
(TestController.java:150)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
....

--
To unsubscribe, e-mail:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message