Mantis - Resin
Viewing Issue Advanced Details
2967 minor always 09-25-08 11:28 03-25-09 10:36
ferg  
ferg  
urgent  
closed 3.1.7  
fixed  
none    
none 4.0.0  
0002967: JSP error message display
(rep by Takahiro Fukuda)


=====================
[Phenomenon]
=====================
There is JSP that is described in the custom tag(using the tag file).
It fails in the display of the JSP, when I specify the system property "file.encoding" for UTF-8.
(However, JSP is normally displayed in the request since the second times...)

- StackTrace
-----------
[show] /index.jsp:7: illegal utf8 encoding at 0x3a

com.caucho.jsp.JspLineParseException: /index.jsp:7: illegal utf8 encoding
at 0x3a
    at com.caucho.jsp.java.JavaJspBuilder.error(JavaJspBuilder.java:489)
    at com.caucho.jsp.java.JavaJspBuilder.startElement(JavaJspBuilder.java:259)
    at com.caucho.jsp.JspParser.parseOpenTag(JspParser.java:1329)
    at com.caucho.jsp.JspParser.parseNode(JspParser.java:544)
    at com.caucho.jsp.JspParser.parseJsp(JspParser.java:374)
    at com.caucho.jsp.JspParser.parse(JspParser.java:263)
    at com.caucho.jsp.JspCompilerInstance.parse(JspCompilerInstance.java:515)
    at com.caucho.jsp.JspCompilerInstance.generate(JspCompilerInstance.java:454)
    at com.caucho.jsp.JspCompilerInstance.compile(JspCompilerInstance.java:386)
    at com.caucho.jsp.JspManager.compile(JspManager.java:241)
    at com.caucho.jsp.JspManager.createPage(JspManager.java:170)
    at com.caucho.jsp.JspManager.createPage(JspManager.java:149)
    at com.caucho.jsp.PageManager.getPage(PageManager.java:248)
    at com.caucho.jsp.PageManager.getPage(PageManager.java:178)
    at com.caucho.jsp.PageManager.getPage(PageManager.java:161)
    at com.caucho.jsp.QServlet.getSubPage(QServlet.java:295)
    at com.caucho.jsp.QServlet.getPage(QServlet.java:210)
    at com.caucho.server.dispatch.PageFilterChain.compilePage(PageFilterChain.java:238)
    at com.caucho.server.dispatch.PageFilterChain.doFilter(PageFilterChain.java:145)
    at com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:187)
    at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:266)
    at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:270)
    at com.caucho.server.port.TcpConnection.run(TcpConnection.java:678)
    at com.caucho.util.ThreadPool$Item.runTasks(ThreadPool.java:721)
    at com.caucho.util.ThreadPool$Item.run(ThreadPool.java:643)
    at java.lang.Thread.run(Thread.java:595)
Caused by: com.caucho.jsp.JspParseException: illegal utf8 encoding at 0x3a
    at com.caucho.jsp.JspCompilerInstance.completeTag(JspCompilerInstance.java:682)
    at com.caucho.jsp.JspCompilerInstance.generateTag(JspCompilerInstance.java:636)
    at com.caucho.jsp.JspCompilerInstance.compileTag(JspCompilerInstance.java:558)
    at com.caucho.jsp.TagFileManager.getTag(TagFileManager.java:139)
    at com.caucho.jsp.TagFileManager.getTag(TagFileManager.java:115)
    at com.caucho.jsp.TagFileManager.getTag(TagFileManager.java:103)
    at com.caucho.jsp.ParseTagManager.getTagImpl(ParseTagManager.java:142)
    at com.caucho.jsp.ParseTagManager.getTag(ParseTagManager.java:81)
    at com.caucho.jsp.java.JavaJspGenerator.getTag(JavaJspGenerator.java:2216)
    at com.caucho.jsp.java.JavaJspBuilder.startElement(JavaJspBuilder.java:257)
    at com.caucho.jsp.JspParser.parseOpenTag(JspParser.java:1329)
    at com.caucho.jsp.JspParser.parseNode(JspParser.java:544)
    at com.caucho.jsp.JspParser.parseJsp(JspParser.java:374)
    at com.caucho.jsp.JspParser.parse(JspParser.java:263)
    at com.caucho.jsp.JspCompilerInstance.parse(JspCompilerInstance.java:515)
    at com.caucho.jsp.JspCompilerInstance.generate(JspCompilerInstance.java:454)
    at com.caucho.jsp.JspCompilerInstance.compile(JspCompilerInstance.java:386)
    at com.caucho.jsp.JspManager.compile(JspManager.java:241)
    at com.caucho.jsp.JspManager.createPage(JspManager.java:170)
    at com.caucho.jsp.JspManager.createPage(JspManager.java:149)
    at com.caucho.jsp.PageManager.getPage(PageManager.java:248)
    at com.caucho.jsp.PageManager.getPage(PageManager.java:178)
    at com.caucho.jsp.PageManager.getPage(PageManager.java:161)
    at com.caucho.jsp.QServlet.getSubPage(QServlet.java:295)
    at com.caucho.jsp.QServlet.getPage(QServlet.java:210)
    at com.caucho.server.dispatch.PageFilterChain.compilePage(PageFilterChain.java:238)
    at com.caucho.server.dispatch.PageFilterChain.doFilter(PageFilterChain.java:145)
    at com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:187)
    at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:266)
    at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:270)
    at com.caucho.server.port.TcpConnection.run(TcpConnection.java:678)
    at com.caucho.util.ThreadPool$Item.runTasks(ThreadPool.java:721)
    at com.caucho.util.ThreadPool$Item.run(ThreadPool.java:643)
    at java.lang.Thread.run(Thread.java:595)
Caused by: java.io.CharConversionException: illegal utf8 encoding at 0x3a
    at com.caucho.vfs.i18n.UTF8Reader.read(UTF8Reader.java:109)
    at com.caucho.vfs.i18n.UTF8Reader.read(UTF8Reader.java:184)
    at com.caucho.vfs.AbstractByteToChar.readChar(AbstractByteToChar.java:153)
    at com.caucho.vfs.AbstractByteToChar.addChar(AbstractByteToChar.java:125)
    at com.caucho.java.JavacErrorParser.parseErrors(JavacErrorParser.java:74)
    at com.caucho.java.InternalCompiler.executeInt(InternalCompiler.java:214)
    at com.caucho.java.InternalCompiler.compileInt(InternalCompiler.java:96)
    at com.caucho.java.AbstractJavaCompiler.run(AbstractJavaCompiler.java:102)
    at java.lang.Thread.run(Thread.java:595)
-----------

See the attachement war file.
Please access following URL after deploying.
(In the display since the second times, it comes to reproduce it by deleting/WEB-INF/work folder.)

http://localhost:8080/tagfiles/ [^]

I confirmed it with Resin3.1.6 and Resin3.1.7a.
Resin started by the following methods.

%RESIN_HOME%\httpd.exe -Dfile.encoding=UTF-8


related to 0004957closed ferg Backport 2967 to Resin 3.1.x 

There are no notes attached to this issue.