tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 49488] Infrequent StringIndexOutOfBoundsException in WebappClassLoader
Date Tue, 22 Jun 2010 14:35:35 GMT

Konstantin Kolinko <> changed:

           What    |Removed                     |Added
             Status|NEW                         |NEEDINFO

--- Comment #2 from Konstantin Kolinko <> 2010-06-22 10:35:31
EDT ---
It is very strange. The code in RequestUtil.normalize() is

126      // Resolve occurrences of "//" in the normalized path
127     while (true) {
128         int index = normalized.indexOf("//");
129         if (index < 0)
130             break;
131         normalized = normalized.substring(0, index) +
132             normalized.substring(index + 1);
133     }

I do not see how it can break.

1. What exact version of Java are you using? Is it 32-bit, or 64-bit?
2. What exact version of Tomcat 5.5.x were you using before?
3. Is this error reproducible, or it happens randomly?

4. Do you have any clue about what class it tried to load?

Note, that it is possible to turn on debug logging in WebappClassLoader class,
by adding the following line to conf/


The code that fails is triggered only if the class file path contains a '//'. 
Having a double slash there is unusual. So maybe it is not Tomcat version
change that triggers this, but how you web application is deployed.

By the way, Tomcat 6.0.27 is already available for testing. See a [VOTE] thread
on dev@ list.

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message