Hi devs,
After creating a number of aggregate queries, I get an error in my log when I try to edit.
Error details below:
- ERROR 2014-11-25 09:29:23,015 #parse(): syntax error in #parse()-ed template ‘/dhis-web-maintenance-program/updateCaseAggregation.vm’, called at /ma
in.vm[line 153, column 9] (Log4JLogChute.java [http-apr-8080-exec-2])
- ERROR 2014-11-25 09:29:23,015 Unable to render Velocity Template, ‘/main.vm’ (CommonsLogger.java [http-apr-8080-exec-2])
org.apache.velocity.exception.ParseErrorException: Encountered “)">\r\n \r\n \r\n \r\n\t\t<label for="dataSets">” at /dh
is-web-maintenance-program/updateCaseAggregation.vm[line 27, column 101]
Was expecting one of:
“[” …
“,” …
“)” …
…
Any ideas what might be causing this?
Thanks.
Busoye
Version:
2.17
Build revision:
17561
Dan
(Dan)
2
I’ve found the bug the that is causing this, here is a diff against the current trunk, but the bug exists in 2.17 as well.
09:35:23|dhis-2:dan$bzr diff
=== modified file ‘dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-program/src/main/webapp/dhis-web-maintenance-program/updateCaseAggregation.vm’
— dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-program/src/main/webapp/dhis-web-maintenance-program/updateCaseAggregation.vm 2014-11-03 13:35:42 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-program/src/main/webapp/dhis-web-maintenance-program/updateCaseAggregation.vm 2014-11-25 14:18:04 +0000
@@ -24,7 +24,7 @@
<tr>
<td><label for="name">$i18n.getString( "name" ) <em title="$i18n.getString( "required" )" class="required">*</em></label></td>
Dan Cocos
BAO Systemswww.baosystems.com
T: +1 202-352-2671 | skype: dancocos
···
On Nov 25, 2014, at 3:35 AM, Adebusoye Anifalaje busoye@hisp.org wrote:
Hi devs,
After creating a number of aggregate queries, I get an error in my log when I try to edit.
Error details below:
- ERROR 2014-11-25 09:29:23,015 #parse(): syntax error in #parse()-ed template ‘/dhis-web-maintenance-program/updateCaseAggregation.vm’, called at /ma
in.vm[line 153, column 9] (Log4JLogChute.java [http-apr-8080-exec-2])
- ERROR 2014-11-25 09:29:23,015 Unable to render Velocity Template, ‘/main.vm’ (CommonsLogger.java [http-apr-8080-exec-2])
org.apache.velocity.exception.ParseErrorException: Encountered “)">\r\n \r\n \r\n \r\n\t\t<label for="dataSets">” at /dh
is-web-maintenance-program/updateCaseAggregation.vm[line 27, column 101]
Was expecting one of:
“[” …
“,” …
“)” …
…
Any ideas what might be causing this?
Thanks.
Busoye
Version:
2.17
Build revision:
17561
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help : https://help.launchpad.net/ListHelp
dancocos
(Dan Cocos - BAO Systems)
3
There is a bug in the template
Here is the diff against 2.18-SNAPSHOT, but it also exists in the 2.17 builds.
09:35:23|dhis-2:dan$bzr diff
=== modified file ‘dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-program/src/main/webapp/dhis-web-maintenance-program/updateCaseAggregation.vm’
— dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-program/src/main/webapp/dhis-web-maintenance-program/updateCaseAggregation.vm 2014-11-03 13:35:42 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-program/src/main/webapp/dhis-web-maintenance-program/updateCaseAggregation.vm 2014-11-25 14:18:04 +0000
@@ -24,7 +24,7 @@
$i18n.getString( "name" )
*
Dan Cocos
BAO Systems
www.baosystems.com
T: +1 202-352-2671 | skype: dancocos
···
On Nov 25, 2014, at 3:35 AM, Adebusoye Anifalaje busoye@hisp.org wrote:
Hi devs,
After creating a number of aggregate queries, I get an error in my log when I try to edit.
Error details below:
- ERROR 2014-11-25 09:29:23,015 #parse(): syntax error in #parse()-ed template ‘/dhis-web-maintenance-program/updateCaseAggregation.vm’, called at /ma
in.vm[line 153, column 9] (Log4JLogChute.java [http-apr-8080-exec-2])
- ERROR 2014-11-25 09:29:23,015 Unable to render Velocity Template, ‘/main.vm’ (CommonsLogger.java [http-apr-8080-exec-2])
org.apache.velocity.exception.ParseErrorException: Encountered “)">\r\n \r\n \r\n \r\n\t\t<label for="dataSets">” at /dh
is-web-maintenance-program/updateCaseAggregation.vm[line 27, column 101]
Was expecting one of:
“[” …
“,” …
“)” …
…
Any ideas what might be causing this?
Thanks.
Busoye
Version:
2.17
Build revision:
17561
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help : https://help.launchpad.net/ListHelp