DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7013>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7013 Entering a servlet path with non-ISO8859-1 characters sends Tomcat into a death spiral Summary: Entering a servlet path with non-ISO8859-1 characters sends Tomcat into a death spiral Product: Tomcat 3 Version: 3.2.3 Final Platform: PC URL: http://kgs.kiseido.com/jsp/en_US/graphPage.jsp OS/Version: Linux Status: NEW Severity: Critical Priority: Other Component: Unknown AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] My JSP server has one page that takes an input field, and plugs that input field into the path information of a servlet. This works great, but when somebody enters a non-ISO8859-1 character in the field, Tomcat goes into an infinite loop, eventually runs out of memory and dies. Here's the error log: 2002-03-10 05:53:26 - Ctx( /jsp ): IOException in: R( /jsp + /servlet/graph + /,?,?,?E?Es-ja_JP.png) Bogus path info "/,?,?,?E?Es-ja_JP.png" 2002-03-10 05:53:26 - Ctx( /jsp ): IOException in: R( /jsp + /servlet/graph + /,?,?,?E?Es-ja_JP.png) Not an ISO 8859_1 character:? 2002-03-10 05:53:26 - Ctx( /jsp ): IOException in: R( /jsp + /servlet/graph + /,?2002-03-10 06:03:10 - Ctx( /jsp ): IOException in: R( /jsp + /servlet/graph + /,?,?,?E?Es-ja_JP.png) Not an ISO 8859_1 character:? 2002-03-10 06:03:19 - Ctx( /jsp ): Exception in: R( /jsp + /servlet/graph + /,?,?,?E?Es-ja_JP.png) - java.lang.OutOfMemoryError ... thousands of identical copies of above error follow ... 2002-03-10 06:03:19 - Ctx( /jsp ): IOException in: R( /jsp + /servlet/graph + /,?,?,?E?Es-ja_JP.png) Not an ISO 8859_1 character:? 2002-03-10 06:03:30 - Ctx( /jsp ): Exception in: R( /jsp + /servlet/graph + /,?,?,?E?Es-ja_JP.png) - java.lang.OutOfMemoryError ,?,?E?Es-ja_JP.png) Not an ISO 8859_1 character:? 2002-03-10 05:53:26 - Ctx( /jsp ): IOException in: R( /jsp + /servlet/graph + /,?,?,?E?Es-ja_JP.png) Not an ISO 8859_1 character:? As you can see, even after the out of memory error tomcat stays in this unstoppable loop. One time that this happened the JVM crashed, another time everything just hung and I had to kill it myself. This is using Sun's java 1.4 JVM and Tomcat 3.2.4 (I know I put in 3.2.3 in the form, but 3.2.4 wasn't an option). I don't see a way I can work around this because it seems to happen before my servlet is even called...in other words, as soon as somebody tries again to type an unacceptable character, *boom* my JSP engine will die again until I go in and repair. Anybody know a quick fix for it? Thanks. -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>