Method public java.util.List com.jiufang.cms.service.CMSTemplateEngine.documents(java.lang.String) threw an exception when invoked on com.jiufang.cms.service.CMSTemplateEngine@5f7e27b2 The problematic instruction: ---------- ==> list cms.documents("channel=涓冨彴娌砡渚ㄨ仈鍔ㄦ??,num=18,order=document.documentSort asc|document.doc.publishDate desc") as document [on line 7, column 11 in qth_index.html] ---------- Java backtrace for programmers: ---------- freemarker.template.TemplateModelException: Method public java.util.List com.jiufang.cms.service.CMSTemplateEngine.documents(java.lang.String) threw an exception when invoked on com.jiufang.cms.service.CMSTemplateEngine@5f7e27b2 at freemarker.ext.beans.OverloadedMethodModel.exec(OverloadedMethodModel.java:134) at freemarker.core.MethodCall._getAsTemplateModel(MethodCall.java:93) at freemarker.core.Expression.getAsTemplateModel(Expression.java:89) at freemarker.core.IteratorBlock.accept(IteratorBlock.java:94) at freemarker.core.Environment.visit(Environment.java:208) at freemarker.core.MixedContent.accept(MixedContent.java:92) at freemarker.core.Environment.visit(Environment.java:208) at freemarker.core.Environment.process(Environment.java:188) at freemarker.template.Template.process(Template.java:232) at com.jiufang.cms.service.HTMLGenerator.generateHTML(HTMLGenerator.java:63) at com.jiufang.cms.service.impl.PublishTaskServiceImpl.publishIndex(PublishTaskServiceImpl.java:591) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) 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.$Proxy21.publishIndex(Unknown Source) at com.jiufang.cms.service.PublishIndexTask.execute(PublishIndexTask.java:52) at com.jiufang.edp.core.utils.threadpool.thread.WorkThread.run(WorkThread.java:77) Caused by: java.lang.NullPointerException at com.jiufang.cms.service.CMSTemplateEngine.documents(CMSTemplateEngine.java:124) at sun.reflect.GeneratedMethodAccessor299.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at freemarker.ext.beans.BeansWrapper.invokeMethod(BeansWrapper.java:880) at freemarker.ext.beans.OverloadedMethodModel.exec(OverloadedMethodModel.java:111) ... 25 more