Mantis Bugtracker
  

Viewing Issue Advanced Details Jump to Notes ] View Simple ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0002967 [Resin] minor always 09-25-08 11:28 03-25-09 10:36
Reporter ferg View Status public  
Assigned To ferg
Priority urgent Resolution fixed Platform
Status closed   OS
Projection none   OS Version
ETA none Fixed in Version 4.0.0 Product Version 3.1.7
  Product Build
Summary 0002967: JSP error message display
Description (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


Steps To Reproduce
Additional Information
Attached Files

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

There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
09-25-08 11:28 ferg New Issue
03-25-09 10:36 ferg Assigned To  => ferg
03-25-09 10:36 ferg Status new => closed
03-25-09 10:36 ferg Resolution open => fixed
03-25-09 10:36 ferg Fixed in Version  => 4.0.0
02-14-12 11:24 cowan Relationship added related to 0004957


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
31 total queries executed.
27 unique queries executed.
Powered by Mantis Bugtracker