Expression groupBy is undefined on line 60, column 6 in publicreport.ftl. The problematic instruction: ---------- ==> if groupBy=="name" [on line 60, column 1 in publicreport.ftl] ---------- Java backtrace for programmers: ---------- freemarker.core.InvalidReferenceException: Expression groupBy is undefined on line 60, column 6 in publicreport.ftl. at freemarker.core.TemplateObject.assertNonNull(TemplateObject.java:125) at freemarker.core.ComparisonExpression.isTrue(ComparisonExpression.java:121) at freemarker.core.ConditionalBlock.accept(ConditionalBlock.java:77) at freemarker.core.Environment.visit(Environment.java:221) at freemarker.core.MixedContent.accept(MixedContent.java:92) at freemarker.core.Environment.visit(Environment.java:221) at freemarker.core.Environment.process(Environment.java:199) at freemarker.template.Template.process(Template.java:259) at us.sourcio.monitorus.manager.ReportManager.createPublicReportFile(ReportManager.java:2663) at us.sourcio.monitorus.manager.ReportManager.regeneratePublicReports(ReportManager.java:2743) at us.sourcio.monitorus.service.ReportService.regeneratePublicReports(ReportService.java:1158) at us.sourcio.monitorus.timer.PublicReportTimerTask.run(PublicReportTimer.java:53) at java.util.TimerThread.mainLoop(Timer.java:555) at java.util.TimerThread.run(Timer.java:505)