Activity log for bug #478315

Date Who What changed Old value New value Message
2009-11-08 13:01:33 tomas bug added bug
2009-11-08 13:04:17 tomas description I had several problems in my view, including #(if..} instead of #{if..} and instead of seeing the description of the problem in the browser, I got 'Application error, check logs', here is the exception: Template execution error (In /app/views/errors/500.html around line 18) Execution error occured in template /app/views/errors/500.html. Exception raised was IndexOutOfBoundsException : toIndex = 52. play.exceptions.TemplateExecutionException: toIndex = 52 at play.templates.Template.throwException(Template.java:263) at play.templates.Template.render(Template.java:228) at play.server.HttpHandler.serve500(HttpHandler.java:348) at Invocation.HTTP Request(Play!) Caused by: java.lang.IndexOutOfBoundsException: toIndex = 52 at java.util.SubList.<init>(AbstractList.java:602) at java.util.RandomAccessSubList.<init>(AbstractList.java:758) at java.util.AbstractList.subList(AbstractList.java:468) at /app/views/errors/500.html.(line:18) at play.templates.Template.render(Template.java:208) ... 2 more This happened because groovy can pick up wrong line number, in my case it was greater than the number of lines in the file. Replacing line 98 in file 500.html with this fixes the problem - the whole template file would be shown: from = exception.lineNumber - 5 >= 0 && exception.lineNumber -5 < exception.source.size() ? exception.lineNumber - 5 : 0 Also, on line 105, the 'line' should be escaped: <pre>&nbsp;${line.escapeHtml()}</pre> I am using r.671 thanks I had several problems in my view, including #(if..} instead of #{if..} and instead of seeing the description of the problem in the browser, I got 'Application error, check logs', here is the exception: Template execution error (In /app/views/errors/500.html around line 18) Execution error occured in template /app/views/errors/500.html. Exception raised was IndexOutOfBoundsException : toIndex = 52. play.exceptions.TemplateExecutionException: toIndex = 52         at play.templates.Template.throwException(Template.java:263)         at play.templates.Template.render(Template.java:228)         at play.server.HttpHandler.serve500(HttpHandler.java:348)         at Invocation.HTTP Request(Play!) Caused by: java.lang.IndexOutOfBoundsException: toIndex = 52         at java.util.SubList.<init>(AbstractList.java:602)         at java.util.RandomAccessSubList.<init>(AbstractList.java:758)         at java.util.AbstractList.subList(AbstractList.java:468)         at /app/views/errors/500.html.(line:18)         at play.templates.Template.render(Template.java:208)         ... 2 more This happened because groovy can pick up wrong line number, in my case it was greater than the number of lines in the file. Replacing line 98 in file 500.html with this fixes the problem - the whole template file would be shown: from = exception.lineNumber - 5 >= 0 && exception.lineNumber < exception.source.size() ? exception.lineNumber - 5 : 0 Also, on line 105, the 'line' should be escaped:                     <pre>&nbsp;${line.escapeHtml()}</pre> I am using r.671 thanks
2009-11-08 16:27:47 Guillaume Bort play: status New Confirmed
2009-11-08 21:34:46 Nicolas Leroux play: assignee Nicolas (nicolas-lunatech)
2009-11-08 21:55:44 Nicolas Leroux play: status Confirmed Fix Committed
2010-01-04 22:14:17 Guillaume Bort nominated for series play/1.0
2010-01-04 22:14:17 Guillaume Bort bug task added play/1.0
2010-01-04 22:14:17 Guillaume Bort nominated for series play/1.1
2010-01-04 22:14:17 Guillaume Bort bug task added play/1.1
2010-01-04 22:14:40 Guillaume Bort play/1.1: status New Fix Committed
2010-01-04 22:14:45 Guillaume Bort play/1.0: milestone 1.0.1
2010-01-04 22:14:47 Guillaume Bort play/1.1: milestone 1.1
2010-01-21 21:22:33 Guillaume Bort play/1.0: status Fix Committed Fix Released