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 40170] - ArrayIndexOutOfBoundsException in ResourceCache
Date Wed, 02 Aug 2006 18:06:57 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=40170>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=40170





------- Additional Comments From jamey@jamescourtney.net  2006-08-02 18:06 -------
I've also been able to reproduce the problem on a standard Tomcat 5.0.28  
server using a simple client written in Java.  The client source is attached.

The only configuration change to the stock tomcat is to set the "cacheMaxSize" 
parameter for the root Context to "1" (1 Kb.).  This can be done by creating a 
$CATALINA_HOME/conf/Catalina/localhost/ROOT.xml Context file which contains 
the following:

<Context path="" docBase="${catalina.home}/webapps/ROOT"
        debug="10" privileged="false" cacheMaxSize="1">
</Context>

Next, create a subdirectory of the root webapp like 
$CATALINA_HOME/webapps/ROOT/foo.

Then, compile and execute the attached SimpleClient.java:

javac SimpleClient.java (no dependencies, just standard JDK)
java 
SimpleClient "$CATALINA_HOME/webapps/ROOT/foo" "http://localhost:8080/foo" 200

This will cause 200 client threads to each write a simple static xml file to 
the local files system in the 
$CATALINA_HOME/webapps/ROOT/foo directory.  The clients will then attempt to 
repeatedly access their file via the 
http://localhost:8080/foo/<client_file_name> URL.

The ArrayIndexOutOfBoundsException should follow shortly.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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


Mime
View raw message