作者: 來源: 發(fā)布時(shí)間:FreeMarker template error (DEBUG mode; use RETHROW in production!):
The following has evaluated to null or missing:
==> field.date [in template "ms:custom:/show_solution_TX.html" at line 83, column 137]
----
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: ${field.date?string("yyyy-MM-dd")} [in template "ms:custom:/show_solution_TX.html" at line 83, column 135]
----
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.(UnexpectedTypeException.java:48)
at freemarker.core.BuiltInsForMultipleTypes$stringBI._eval(BuiltInsForMultipleTypes.java:780)
at freemarker.core.Expression.eval(Expression.java:101)
at freemarker.core.MethodCall._eval(MethodCall.java:55)
at freemarker.core.Expression.eval(Expression.java:101)
at freemarker.core.DollarVariable.calculateInterpolatedStringOrMarkup(DollarVariable.java:100)
at freemarker.core.DollarVariable.accept(DollarVariable.java:63)
at freemarker.core.Environment.visit(Environment.java:347)
at freemarker.core.Environment.visit(Environment.java:353)
at freemarker.core.Environment.process(Environment.java:326)
at freemarker.template.Template.process(Template.java:383)
at net.mingsoft.co.service.RenderingService.rendering(RenderingService.java:202)
at net.mingsoft.co.service.RenderingService$$FastClassBySpringCGLIB$$c182fa46.invoke()
at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:779)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:750)
at org.springframework.aop.interceptor.AsyncExecutionInterceptor.lambda$invoke$0(AsyncExecutionInterceptor.java:115)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
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)
主站蜘蛛池模板:
芦溪县|
龙州县|
永州市|
鲁甸县|
潞城市|
江华|
沾益县|
维西|
苗栗市|
鄯善县|
萝北县|
大足县|
思茅市|
于都县|
衡山县|
瑞安市|
临邑县|
乳源|
无极县|
天全县|
鄂温|
佛山市|
凤城市|
洛阳市|
娱乐|
正蓝旗|
阿尔山市|
鲜城|
开江县|
万盛区|
忻城县|
泗洪县|
富裕县|
文昌市|
晋城|
克什克腾旗|
伊川县|
宁海县|
锡林郭勒盟|
定安县|
陇西县|