tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From BugRat Mail System <tomcat-b...@cortexity.com>
Subject BugRat Report #573 has been filed.
Date Tue, 12 Dec 2000 14:46:01 GMT
Bug report #573 has just been filed.

You can view the report at the following URL:

   <http://znutar.cortexity.com/BugRatViewer/ShowReport/573>

REPORT #573 Details.

Project: Tomcat
Category: Bug Report
SubCategory: New Bug Report
Class: swbug
State: received
Priority: medium
Severity: serious
Confidence: public
Environment: 
   Release: 3.2 final
   JVM Release: 1.3
   Operating System: Solaris
   OS Release: 7
   Platform: Sparc

Synopsis: 
setting <error-page><location> to an html file causes a stack overflow

Description:
In my web.xml:

<error-page>
  <error-code>404</error-code>
  <location>/foo.html</location>
</error-page>
	
<error-page>
  <exception-type>java.lang.NullPointerException</exception-type>
  <location>/foo.html</location>
</error-page>

I've verified that foo.html loads correctly. If I 
try to access a non-existent page, or access a servlet
which throws a NullPointerException, I get the following
stack trace in my browser:

java.lang.StackOverflowError
	at java.lang.StringBuffer.expandCapacity(StringBuffer.java:195)
	at java.lang.StringBuffer.append(StringBuffer.java:401)
	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)
	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)

This repeats for quite a while.



Mime
View raw message