FreeMarker template error (DEBUG mode; use RETHROW in production!):
The following has evaluated to null or missing:
==> mt_b2b_m01 [in template "mobB2b.ftl" at line 127, column 16]
----
Tip: If the failing expression is known to be 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: #if ((mt_b2b_m01?size) > 1) [in template "mobB2b.ftl" at line 127, 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:131)
at freemarker.core.UnexpectedTypeException.newDesciptionBuilder(UnexpectedTypeException.java:77)
at freemarker.core.UnexpectedTypeException.
(UnexpectedTypeException.java:40)
at freemarker.core.BuiltInsForMultipleTypes$sizeBI._eval(BuiltInsForMultipleTypes.java:448)
at freemarker.core.Expression.eval(Expression.java:78)
at freemarker.core.ParentheticalExpression._eval(ParentheticalExpression.java:44)
at freemarker.core.Expression.eval(Expression.java:78)
at freemarker.core.EvalUtil.compare(EvalUtil.java:110)
at freemarker.core.ComparisonExpression.evalToBoolean(ComparisonExpression.java:64)
at freemarker.core.ParentheticalExpression.evalToBoolean(ParentheticalExpression.java:31)
at freemarker.core.ConditionalBlock.accept(ConditionalBlock.java:46)
at freemarker.core.Environment.visit(Environment.java:324)
at freemarker.core.MixedContent.accept(MixedContent.java:54)
at freemarker.core.Environment.visit(Environment.java:324)
at freemarker.core.Environment.process(Environment.java:302)
at freemarker.template.Template.process(Template.java:325)
at com.concom.staticize.util.FreeMarkertUtil.analysisTemplate(FreeMarkertUtil.java:57)
at com.concom.staticize.job.task.yunying.b2b.B2bKeywordTask.b2bCreate(B2bKeywordTask.java:306)
at com.concom.staticize.job.task.yunying.b2b.B2bKeywordTask.calc(B2bKeywordTask.java:271)
at com.concom.staticize.job.task.yunying.b2b.B2bKeywordTask.lambda$null$0(B2bKeywordTask.java:246)
at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1604)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:750)