Bug 291 - Using an html file as the <location> in an <error-page> in web.xml causes a StackOverflowError. BugRat Report#538
Summary: Using an html file as the <location> in an <error-page> in web.xml causes a S...
Status: RESOLVED FIXED
Alias: None
Product: Tomcat 3
Classification: Unclassified
Component: Servlet (show other bugs)
Version: 3.2.x Nightly
Hardware: All All
: P1 normal (vote)
Target Milestone: ---
Assignee: Tomcat Developers Mailing List
URL:
Keywords:
: 315 338 (view as bug list)
Depends on:
Blocks:
 
Reported: 2000-12-06 11:31 UTC by Catherine Jung
Modified: 2004-11-16 19:05 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tomcat Developers Mailing List 2000-12-06 11:31:16 UTC
Specifying an HTML file as the <location> of an <error-page>
causes tomcat to go into a loop of webpage requests, until 
it hits a StackOverflowError.

This problem doesn't occur if you specify a jsp page instead
of an HTML file.



java.lang.StackOverflowError
        at java.io.FileNotFoundException.(FileNotFoundException.java:62)
        at java.io.FileInputStream.open(Native Method)
        at java.io.FileInputStream.(FileInputStream.java:64)
        at java.io.FileInputStream.(FileInputStream.java:95)
        at org.apache.tomcat.request.FileHandler.doService(StaticInterceptor.java:365)
        at org.apache.tomcat.core.Handler.service(Handler.java:286)
        at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
        at org.apache.tomcat.core.ContextManager.handleStatus(ContextManager.java:1049)
        at org.apache.tomcat.request.FileHandler.doService(StaticInterceptor.java:387)

repeat last 4 lines many, many times.

tomcat prints this to console many times before throwing this error:

2000-12-06 05:11:16 - Ctx( /Greeting ): 404 R( /Greeting + /index.htm + null) null

but nothing occurs in the error logs....
Comment 1 Marc Saegesser 2001-03-11 12:15:24 UTC
Apperas to be fixed in 3.2.2 but the bug report was never closed.
Comment 2 Ignacio J. Ortega 2001-03-11 13:49:01 UTC
Reopened for Tomcat 3.3,
Comment 3 Ignacio J. Ortega 2001-03-11 14:09:14 UTC
*** Bug 338 has been marked as a duplicate of this bug. ***
Comment 4 Ignacio J. Ortega 2001-03-11 15:16:39 UTC
*** Bug 315 has been marked as a duplicate of this bug. ***
Comment 5 Marc Saegesser 2001-03-11 19:07:22 UTC
Well, it wasn't fixed in 3.2.2.  My test case was incorrect.  Once I fixed it I 
was able to duplicate the bug.  I'll work on a solution prior to 3.2.2b2.
Comment 6 Marc Saegesser 2001-03-12 13:58:33 UTC
Fixed in 3.2.2