推动高质量发展和高水平安全良性互动
发布时间:2026年08月05日
FreeMarker template error (DEBUG mode; use RETHROW in production!):
The following has evaluated to null or missing:
==> item.content [in template "content/content.ftl" at line 23, column 19]
----
Tip: It's the step after the last dot that caused this error, not those before it.
----
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: ${item.content} [in template "content/content.ftl" at line 23, column 17]
- Reached through: @Content contentId=contentId; item [in template "content/content.ftl" at line 1, column 1]
- Reached through: #include "content/content.ftl" [in template "content.ftl" at line 6, column 1]
----
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.EvalUtil.coerceModelToTextualCommon(EvalUtil.java:490)
at freemarker.core.EvalUtil.coerceModelToStringOrMarkup(EvalUtil.java:410)
at freemarker.core.EvalUtil.coerceModelToStringOrMarkup(EvalUtil.java:379)
at freemarker.core.DollarVariable.calculateInterpolatedStringOrMarkup(DollarVariable.java:104)
at freemarker.core.DollarVariable.accept(DollarVariable.java:63)
at freemarker.core.Environment.visit(Environment.java:380)
at freemarker.core.Environment$NestedElementTemplateDirectiveBody.render(Environment.java:3458)
at cn.iocoder.yudao.module.cms.web.directive.content.ContentDirective.execute(ContentDirective.java:60)
at freemarker.core.Environment.visit(Environment.java:461)
at freemarker.core.UnifiedCall.accept(UnifiedCall.java:101)
at freemarker.core.Environment.visit(Environment.java:344)
at freemarker.core.Environment.include(Environment.java:3139)
at freemarker.core.Include.accept(Include.java:171)
at freemarker.core.Environment.visit(Environment.java:344)
at freemarker.core.Environment.visit(Environment.java:350)
at freemarker.core.Environment.process(Environment.java:323)
at freemarker.template.Template.process(Template.java:383)
at cn.iocoder.yudao.module.cms.service.generate.impl.GenerateServiceImpl.handleProcess(GenerateServiceImpl.java:515)
at cn.iocoder.yudao.module.cms.service.generate.impl.GenerateServiceImpl.handleContentProcess(GenerateServiceImpl.java:371)
at cn.iocoder.yudao.module.cms.service.generate.impl.GenerateServiceImpl.contentGenerate(GenerateServiceImpl.java:286)
at cn.iocoder.yudao.module.cms.service.content.ContentServiceImpl.lambda$triggerAsyncGeneration$0(ContentServiceImpl.java:521)
at java.base/java.util.concurrent.CompletableFuture$AsyncRun.run(Unknown Source)
at com.alibaba.ttl.TtlRunnable.run(TtlRunnable.java:60)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.base/java.lang.Thread.run(Unknown Source)