https://issues.apache.org/bugzilla/show_bug.cgi?id=49488

           Summary: Infrequent StringIndexOutOfBoundsException in
                    WebappClassLoader
           Product: Tomcat 6
           Version: 6.0.24
          Platform: PC
        OS/Version: Windows Server 2003
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Catalina
        AssignedTo: dev@tomcat.apache.org
        ReportedBy: bratapfe...@gmx.de


After switching from Tomcat 5.5 to Tomcat 6.0.24, every now and then Tomcat's
WebappClassLoader throws StringIndexOutOfBoundsExceptions, which leads to
various exceptions like NoDefClassFoundError. With Tomcat 5.5, everything went
fine. The web application in which the exceptions occur remained untouched
throughout the whole time. The error is also present in Tomcat 6.0.26.

Here is a short stack trace from the Catalina log file:

java.lang.StringIndexOutOfBoundsException: String index out of range: 95
         at java.lang.String.substring(String.java:1934)
         at
org.apache.catalina.util.RequestUtil.normalize(RequestUtil.java:131)
         at
org.apache.naming.resources.FileDirContext.normalize(FileDirContext.java:771)
         at
org.apache.naming.resources.FileDirContext.file(FileDirContext.java:809)
         at
org.apache.naming.resources.FileDirContext.getAttributes(FileDirContext.java:429)
         at
org.apache.naming.resources.BaseDirContext.getAttributes(BaseDirContext.java:747)
         at
org.apache.naming.resources.ProxyDirContext.getAttributes(ProxyDirContext.java:840)
         at
org.apache.catalina.loader.WebappClassLoader.findResourceInternal(WebappClassLoader.java:2414)
         at
org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:2266)
         at
org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:976)
         at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1451)
         at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1329)
         at java.lang.Class.getDeclaredClasses0(Native Method)
         at java.lang.Class.getDeclaredClasses(Class.java:1699)

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

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

Reply via email to