FreeMarker template error (DEBUG mode; use RETHROW in production!):
Java method "com.highcom.cms.service.CMSTemplateEngine.documents(String)" threw an exception when invoked on com.highcom.cms.service.CMSTemplateEngine object "com.highcom.cms.service.CMSTemplateEngine@224b7d10"; see cause exception in the Java stack trace.
----
FTL stack trace ("~" means nesting-related):
- Failed at: #list cms.documents("channel=表格下载_业务申... [in template "xgzs_index.htm" at line 91, column 34]
----
Java stack trace (for programmers):
----
freemarker.core._TemplateModelException: [... Exception message was already printed; see it above ...]
at freemarker.ext.beans._MethodUtil.newInvocationTemplateModelException(_MethodUtil.java:311)
at freemarker.ext.beans._MethodUtil.newInvocationTemplateModelException(_MethodUtil.java:284)
at freemarker.ext.beans.OverloadedMethodsModel.exec(OverloadedMethodsModel.java:68)
at freemarker.core.MethodCall._eval(MethodCall.java:62)
at freemarker.core.Expression.eval(Expression.java:78)
at freemarker.core.IteratorBlock.acceptWithResult(IteratorBlock.java:69)
at freemarker.core.IteratorBlock.accept(IteratorBlock.java:64)
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.highcom.cms.service.HTMLGenerator.generateHTML(HTMLGenerator.java:26)
at com.highcom.cms.service.impl.PublishTaskServiceImpl.publishGeneral(PublishTaskServiceImpl.java:338)
at sun.reflect.GeneratedMethodAccessor397.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:301)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at com.sun.proxy.$Proxy42.publishGeneral(Unknown Source)
at com.highcom.cms.service.PublishGeneralTask.execute(PublishGeneralTask.java:23)
at com.highcom.edp.core.utils.threadpool.thread.WorkThread.run(WorkThread.java:77)
Caused by: java.lang.NullPointerException
at com.highcom.cms.service.CMSTemplateEngine.documents(CMSTemplateEngine.java:105)
at sun.reflect.GeneratedMethodAccessor311.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at freemarker.ext.beans.BeansWrapper.invokeMethod(BeansWrapper.java:1458)
at freemarker.ext.beans.ReflectionCallableMemberDescriptor.invokeMethod(ReflectionCallableMemberDescriptor.java:52)
at freemarker.ext.beans.MemberAndArguments.invokeMethod(MemberAndArguments.java:48)
at freemarker.ext.beans.OverloadedMethodsModel.exec(OverloadedMethodsModel.java:62)
... 25 more