新闻动态

当前位置: 首页 >新闻动态

共41条 首页 上一页 1 2 3 4 5
FreeMarker template error (HTML_DEBUG mode; use RETHROW in production!)

For "&&" right-hand operand: Expected a boolean, but this has evaluated to a number (wrapper: f.t.SimpleNumber):
==> PageCount  [in template "yyky_ALL/template/list.template.html" at line 198, column 105]

----
FTL stack trace ("~" means nesting-related):
	- Failed at: #if pn == 5 && PageCount  [in template "yyky_ALL/template/list.template.html" at line 198, column 89]
	- Reached through: @cms_content catalogid="${Catalog.cat...  [in template "yyky_ALL/template/list.template.html" at line 151, column 49]
----

Java stack trace (for programmers):
----
freemarker.core.NonBooleanException: [... Exception message was already printed; see it above ...]
	at freemarker.core.Expression.modelToBoolean(Expression.java:195)
	at freemarker.core.Expression.evalToBoolean(Expression.java:178)
	at freemarker.core.Expression.evalToBoolean(Expression.java:163)
	at freemarker.core.AndExpression.evalToBoolean(AndExpression.java:36)
	at freemarker.core.ConditionalBlock.accept(ConditionalBlock.java:48)
	at freemarker.core.Environment.visit(Environment.java:371)
	at freemarker.core.IteratorBlock$IterationContext.executedNestedContentForCollOrSeqListing(IteratorBlock.java:321)
	at freemarker.core.IteratorBlock$IterationContext.executeNestedContent(IteratorBlock.java:271)
	at freemarker.core.IteratorBlock$IterationContext.accept(IteratorBlock.java:244)
	at freemarker.core.Environment.visitIteratorBlock(Environment.java:645)
	at freemarker.core.IteratorBlock.acceptWithResult(IteratorBlock.java:108)
	at freemarker.core.IteratorBlock.accept(IteratorBlock.java:94)
	at freemarker.core.Environment.visit(Environment.java:335)
	at freemarker.core.Environment.visit(Environment.java:341)
	at freemarker.core.Environment.visit(Environment.java:377)
	at freemarker.core.Environment$NestedElementTemplateDirectiveBody.render(Environment.java:3423)
	at com.chestnut.common.staticize.tag.AbstractTag.onTagEnd(AbstractTag.java:96)
	at com.chestnut.common.staticize.tag.AbstractTag.execute(AbstractTag.java:65)
	at freemarker.core.Environment.visit(Environment.java:452)
	at freemarker.core.UnifiedCall.accept(UnifiedCall.java:102)
	at freemarker.core.Environment.visit(Environment.java:335)
	at freemarker.core.Environment.visit(Environment.java:341)
	at freemarker.core.Environment.process(Environment.java:314)
	at com.chestnut.common.staticize.StaticizeService.process(StaticizeService.java:93)
	at com.chestnut.contentcore.publish.staticize.CatalogStaticizeType.doCatalogStaticize(CatalogStaticizeType.java:174)
	at com.chestnut.contentcore.publish.staticize.CatalogStaticizeType.catalogStaticize(CatalogStaticizeType.java:100)
	at com.chestnut.contentcore.publish.staticize.CatalogStaticizeType.catalogStaticize(CatalogStaticizeType.java:91)
	at com.chestnut.contentcore.publish.staticize.CatalogStaticizeType.staticize(CatalogStaticizeType.java:83)
	at com.chestnut.contentcore.publish.strategies.ThreadPoolPublishStrategy.lambda$publish$0(ThreadPoolPublishStrategy.java:59)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
	at java.base/java.lang.Thread.run(Thread.java:833)