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 Summary: ArrayIndexOutOfBoundsException in ResourceCache Product: Tomcat 5 Version: 5.0.28 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: Connector:Coyote AssignedTo: tomcat-dev@jakarta.apache.org ReportedBy: [EMAIL PROTECTED] I'm pretty regularly seeing the following error in my embedded Tomcat (5.0.28) connector. It appears to occur as a result of one thread entering the ResourceCache.lookup(String name) method and getting the index of an element in the cache using the find method. Before this thread can access the element at that index the cache array is modified by a second thread and the index is now outside the bounds of the array. A basic race condition. 2005-11-28 15:09:01: ERROR An exception or error occurred in the container during the request processing java.lang.ArrayIndexOutOfBoundsException: 4868 at org.apache.naming.resources.ResourceCache.lookup(ResourceCache.java:288) at org.apache.naming.resources.ProxyDirContext.cacheLookup(ProxyDirContext. java:1393) at org.apache.naming.resources.ProxyDirContext.lookup(ProxyDirContext.java: 279) at org.apache.tomcat.util.http.mapper.Mapper.internalMapWrapper(Mapper.java :775) at org.apache.tomcat.util.http.mapper.Mapper.internalMap(Mapper.java:621) at org.apache.tomcat.util.http.mapper.Mapper.map(Mapper.java:511) at org.apache.coyote.tomcat5.CoyoteAdapter.postParseRequest(CoyoteAdapter.j ava:279) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:158) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:79 9) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processC onnection(Http11Protocol.java:705) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:57 7) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool .java:683) at java.lang.Thread.run(Thread.java:534) -- 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]