馆藏介绍

首页> 馆藏介绍> 馆藏介绍>

FreeMarker template error (HTML_DEBUG mode; use RETHROW in production!)

The following has evaluated to null or missing:
==> Content  [in template "swikoon_pc/template/gcjs.template.html" at line 70, column 48]

----
Tip: If the failing expression is known to legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing</#if>. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)??
----

----
FTL stack trace ("~" means nesting-related):
	- Failed at: @cms_article contentid="${Content.con...  [in template "swikoon_pc/template/gcjs.template.html" at line 70, column 21]
	- Reached through: @cms_content catalogalias="${Catalog...  [in template "swikoon_pc/template/gcjs.template.html" at line 51, column 9]
----

Java stack trace (for programmers):
----
freemarker.core.InvalidReferenceException: [... Exception message was already printed; see it above ...]
	at freemarker.core.InvalidReferenceException.getInstance(InvalidReferenceException.java:134)
	at freemarker.core.UnexpectedTypeException.newDescriptionBuilder(UnexpectedTypeException.java:85)
	at freemarker.core.UnexpectedTypeException.<init>(UnexpectedTypeException.java:48)
	at freemarker.core.NonHashException.<init>(NonHashException.java:49)
	at freemarker.core.Dot._eval(Dot.java:48)
	at freemarker.core.Expression.eval(Expression.java:101)
	at freemarker.core.DollarVariable.calculateInterpolatedStringOrMarkup(DollarVariable.java:104)
	at freemarker.core.StringLiteral._eval(StringLiteral.java:103)
	at freemarker.core.Expression.eval(Expression.java:101)
	at freemarker.core.UnifiedCall.accept(UnifiedCall.java:95)
	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:371)
	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:134)
	at com.chestnut.contentcore.publish.staticize.CatalogStaticizeType.catalogStaticize(CatalogStaticizeType.java:85)
	at com.chestnut.contentcore.publish.staticize.CatalogStaticizeType.catalogStaticize(CatalogStaticizeType.java:76)
	at com.chestnut.contentcore.publish.staticize.CatalogStaticizeType.staticize(CatalogStaticizeType.java:68)
	at com.chestnut.contentcore.publish.strategies.ThreadPoolPublishStrategy.lambda$publish$0(ThreadPoolPublishStrategy.java:44)
	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:842)