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 49488] Infrequent StringIndexOutOfBoundsException in WebappClassLoader
Date Tue, 22 Jun 2010 14:35:35 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=49488

Konstantin Kolinko <knst.kolinko@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO

--- Comment #2 from Konstantin Kolinko <knst.kolinko@gmail.com> 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/logging.properties:

org.apache.catalina.loader.WebappClassLoader.level=FINE


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: 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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message