FreeMarker template error (HTML_DEBUG mode; use RETHROW in production!)
Expression has thrown an unchecked exception; see the cause exception.
The blamed expression:
==> internalUrl(content.logo) [in template "huarun_h5/template/index.template.html" titles="玩娛樂城能賺錢嗎" at line 67, column 48]
----
FTL stack trace ("~" means nesting-related):
- Failed at: ${internalUrl(content.logo)} [in template "huarun_h5/template/index.template.html" titles="玩娛樂城能賺錢嗎" at line 67, column 46]
- Reached through: @cms_content catalogalias="news_dynam... [in template "huarun_h5/template/index.template.html" titles="玩娛樂城能賺錢嗎" at line 63, column 11]
- Reached through: @cms_catalog alias="news_dynamic" lev... [in template "huarun_h5/template/index.template.html" titles="玩娛樂城能賺錢嗎" at line 43, column 5]
----
Java stack trace (for programmers):
----
freemarker.core._MiscTemplateException: [... Exception message was already printed; see it above ...]
at freemarker.core.Expression.eval(Expression.java:106)
at freemarker.core.DollarVariable.calculateInterpolatedStringOrMarkup(DollarVariable.java:104)
at freemarker.core.DollarVariable.accept(DollarVariable.java:63)
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.ruoyi.common.staticize.tag.AbstractTag.onTagEnd(AbstractTag.java:81)
at com.ruoyi.common.staticize.tag.AbstractTag.execute(AbstractTag.java:50)
at freemarker.core.Environment.visit(Environment.java:452)
at freemarker.core.UnifiedCall.accept(UnifiedCall.java:102)
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.ruoyi.common.staticize.tag.AbstractTag.onTagEnd(AbstractTag.java:81)
at com.ruoyi.common.staticize.tag.AbstractTag.execute(AbstractTag.java:50)
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.ruoyi.common.staticize.StaticizeService.process(StaticizeService.java:78)
at com.ruoyi.contentcore.service.impl.PublishServiceImpl.doSiteStaticize(PublishServiceImpl.java:193)
at com.ruoyi.contentcore.service.impl.PublishServiceImpl.lambda$siteStaticize$1(PublishServiceImpl.java:181)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
at com.ruoyi.contentcore.service.impl.PublishServiceImpl.siteStaticize(PublishServiceImpl.java:181)
at com.ruoyi.contentcore.service.impl.PublishServiceImpl$2.run0(PublishServiceImpl.java:170)
at com.ruoyi.common.async.AsyncTask.run(AsyncTask.java:90)
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)
Caused by: java.lang.NullPointerException: Cannot invoke "freemarker.template.SimpleScalar.getAsString()" because "simpleScalar" is null
at com.ruoyi.contentcore.template.func.InternalUrlFunction.exec0(InternalUrlFunction.java:46)
at com.ruoyi.common.staticize.func.AbstractFunc.exec(AbstractFunc.java:13)
at freemarker.core.MethodCall._eval(MethodCall.java:62)
at freemarker.core.Expression.eval(Expression.java:101)
... 41 more