velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Will Glass-Husain" <wgl...@forio.com>
Subject reporting bugs
Date Fri, 13 Jul 2001 20:43:30 GMT
Hi,

What's the preferred place to report bugs in Velocity?

I attach my bug report at the end of this message for reference, although
I'd be glad to forward it to the appropriate spot.

Thanks, WILL


**************

Bug Report

Velocity version: 1.1rc2
Tomcat version: 3.2.2
JDK: 1.3.1
OS: Linux

Problem:
I put a badly formatted statement in my template file.  (I mistakenly typed
in an HTML editor instead of a text editor, resulting in a quote being
entered as '&quot;' instead of '"'.  Instead of throwing a
ParseErrorException, my HTML output said "Internal Servlet Error" and
printed a stacktrace.  Oddly, my servlet encloses the call to "getTemplate"
in a try/catch statement, so an exception should have been caught.  Fixing
the bad statement in the template file caused the error to go away.

The incorrect statement was:
#set ($a = &quot;Price&quot;)

This resulted in the following output:

Internal Servlet Error:

org.apache.velocity.runtime.parser.TokenMgrError: Lexical error at line 46,
column 13.  Encountered: "q" (113), after : "&"
	at
org.apache.velocity.runtime.parser.ParserTokenManager.getNextToken(ParserTok
enManager.java:3536)
	at
org.apache.velocity.runtime.parser.Parser.jj_scan_token(Parser.java:3055)
	at org.apache.velocity.runtime.parser.Parser.jj_3R_48(Parser.java:2329)
	at org.apache.velocity.runtime.parser.Parser.jj_3R_35(Parser.java:2455)
	at org.apache.velocity.runtime.parser.Parser.jj_3R_21(Parser.java:2512)
	at org.apache.velocity.runtime.parser.Parser.jj_3_6(Parser.java:2904)
	at org.apache.velocity.runtime.parser.Parser.jj_2_6(Parser.java:2213)
	at org.apache.velocity.runtime.parser.Parser.Expression(Parser.java:1522)
	at org.apache.velocity.runtime.parser.Parser.Assignment(Parser.java:1573)
	at org.apache.velocity.runtime.parser.Parser.Expression(Parser.java:1523)
	at org.apache.velocity.runtime.parser.Parser.SetDirective(Parser.java:1464)
	at org.apache.velocity.runtime.parser.Parser.Statement(Parser.java:295)
	at org.apache.velocity.runtime.parser.Parser.process(Parser.java:245)
	at org.apache.velocity.runtime.parser.Parser.parse(Parser.java:105)
	at org.apache.velocity.runtime.Runtime.parse(Runtime.java:619)
	at org.apache.velocity.Template.process(Template.java:164)
	at
org.apache.velocity.runtime.resource.ResourceManager.getResource(ResourceMan
ager.java:388)
	at org.apache.velocity.runtime.Runtime.getTemplate(Runtime.java:686)
	at org.apache.velocity.runtime.Runtime.getTemplate(Runtime.java:668)
	at
org.apache.velocity.servlet.VelocityServlet.getTemplate(VelocityServlet.java
:501)
	at SimServer.handleRequest(SimServer.java:194)
	at
org.apache.velocity.servlet.VelocityServlet.doRequest(VelocityServlet.java:3
33)
	at
org.apache.velocity.servlet.VelocityServlet.doGet(VelocityServlet.java:294)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
	at org.apache.tomcat.core.Handler.service(Handler.java:287)
	at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
	at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)
	at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
	at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
(Ajp12ConnectionHandler.java:166)
	at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
	at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
	at java.lang.Thread.run(Thread.java:484)


Mime
View raw message