中青在线
2011年11月04日 星期五
 上一期 下一期 >     返回首页

FreeMarker template error!


Expression nowpage is undefined on line 322, column 8 in 81/81.mht.
The problematic instruction:
----------
==> list nowpage.showArticles?chunk(2) as articles [on line 322, column 1 in 81/81.mht]
----------

Java backtrace for programmers:
----------
freemarker.core.InvalidReferenceException: Expression nowpage is undefined on line 322, column 8 in 81/81.mht.
	at freemarker.core.TemplateObject.assertNonNull(TemplateObject.java:124)
	at freemarker.core.TemplateObject.invalidTypeException(TemplateObject.java:134)
	at freemarker.core.Dot._getAsTemplateModel(Dot.java:78)
	at freemarker.core.Expression.getAsTemplateModel(Expression.java:89)
	at freemarker.core.SequenceBuiltins$SequenceBuiltIn._getAsTemplateModel(SequenceBuiltins.java:89)
	at freemarker.core.Expression.getAsTemplateModel(Expression.java:89)
	at freemarker.core.MethodCall._getAsTemplateModel(MethodCall.java:86)
	at freemarker.core.Expression.getAsTemplateModel(Expression.java:89)
	at freemarker.core.IteratorBlock.accept(IteratorBlock.java:94)
	at freemarker.core.Environment.visit(Environment.java:209)
	at freemarker.core.MixedContent.accept(MixedContent.java:99)
	at freemarker.core.Environment.visit(Environment.java:209)
	at freemarker.core.Environment.process(Environment.java:189)
	at freemarker.template.Template.process(Template.java:237)
	at com.founder.mp.apublish.plan.FreeMarkerProcessor.process(FreeMarkerProcessor.java:89)
	at com.founder.mp.apublish.plan.impl.PaperPublishPlan.run(PaperPublishPlan.java:41)
	at com.founder.mp.apublish.plan.impl.PeriodPublishPlan.run(PeriodPublishPlan.java:53)
	at com.founder.mp.apublish.task.impl.PublishPeriodTask.publish(PublishPeriodTask.java:30)
	at com.founder.mp.apublish.task.impl.PublishPeriodTask.runIt(PublishPeriodTask.java:47)
	at com.founder.mp.apublish.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:711)
	at java.lang.Thread.run(Thread.java:619)