Project: Tomcat
Bug 48019 StackOverflowError on "include"
Reported: 2009-10-17 07:18:47 | Status: resolved fixed

JSP file name: /common/headers.jsp It's cotent: <% // example: <%@ include file="/common/headers.jsp" % > %> <meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> <meta http-equiv="Cache-Control" content="no-store" /> <meta http-equiv="Pragma" content="no-cache" /> <meta http-equiv="Expires" content="0" /> <link href="../css/css.css" rel="stylesheet" type="text/css"> Console output: java.lang.StackOverflowError at java.text.DateFormat.format(DateFormat.java:275) at java.text.Format.format(Format.java:140) at java.text.MessageFormat.subformat(MessageFormat.java:1288) at java.text.MessageFormat.format(MessageFormat.java:795) at java.util.logging.SimpleFormatter.format(SimpleFormatter.java:50) at java.util.logging.StreamHandler.publish(StreamHandler.java:179) at java.util.logging.ConsoleHandler.publish(ConsoleHandler.java:88) at java.util.logging.Logger.log(Logger.java:458) at java.util.logging.Logger.doLog(Logger.java:480) at java.util.logging.Logger.logp(Logger.java:680) at org.apache.juli.logging.DirectJDKLog.log(DirectJDKLog.java:167) at org.apache.juli.logging.DirectJDKLog.error(DirectJDKLog.java:135) at org.apache.jasper.compiler.JspReader.pushFile(JspReader.java:606) at org.apache.jasper.compiler.JspReader.<init>(JspReader.java:141) at org.apache.jasper.compiler.JspReader.<init>(JspReader.java:119) at org.apache.jasper.compiler.ParserController.determineSyntaxAndEncoding(ParserController.java:399) at org.apache.jasper.compiler.ParserController.doParse(ParserController.java:207) at org.apache.jasper.compiler.ParserController.parse(ParserController.java:137) at org.apache.jasper.compiler.Parser.processIncludeDirective(Parser.java:339) at org.apache.jasper.compiler.Parser.parseIncludeDirective(Parser.java:376) at org.apache.jasper.compiler.Parser.parseDirective(Parser.java:484) at org.apache.jasper.compiler.Parser.parseTagFileDirectives(Parser.java:1784) at org.apache.jasper.compiler.Parser.parse(Parser.java:127) This not exist in "6.0.18".

Files changed in fix:
java/org/apache/jasper/compiler/Parser.java