[新闻]官方商店现已上线,天天享折扣,月月有抽奖!FreeMarker template error:
Method "public java.lang.String com.agileeagle.gcms.website.content.domain.CmsContentVO.getDate(int)" threw an exception when invoked on com.agileeagle.gcms.website.content.domain.CmsContentVO object "com.agileeagle.gcms.website.content.domain.CmsContentVO@118d57ba". See cause exception.
The failing instruction (FTL stack trace):
----------
==> ${ctt.getDate(dateFormat?number)} [in template "cms_sys_defined/style_list/style_index_list_2.html" at line 2, column 196]
@cms_content_list count="7" tpl="2" s... [in template "fswqg_v2/default/cn/index/index.html" at line 92, column 57]
----------
Java stack trace (for programmers):
----------
freemarker.template.TemplateModelException: [... Exception message was already printed; see it above ...]
at freemarker.ext.beans.SimpleMethodModel.exec(SimpleMethodModel.java:135)
at freemarker.core.MethodCall._eval(MethodCall.java:98)
at freemarker.core.Expression.eval(Expression.java:111)
at freemarker.core.Expression.evalAndCoerceToString(Expression.java:115)
at freemarker.core.DollarVariable.accept(DollarVariable.java:76)
at freemarker.core.Environment.visit(Environment.java:265)
at freemarker.core.MixedContent.accept(MixedContent.java:93)
at freemarker.core.Environment.visitByHiddingParent(Environment.java:286)
at freemarker.core.IteratorBlock$Context.runLoop(IteratorBlock.java:193)
at freemarker.core.Environment.visitIteratorBlock(Environment.java:509)
at freemarker.core.IteratorBlock.accept(IteratorBlock.java:103)
at freemarker.core.Environment.visit(Environment.java:265)
at freemarker.core.Environment.include(Environment.java:1712)
at freemarker.core.Environment.include(Environment.java:1667)
at com.agileeagle.gcms.front.directive.ContentListDirective.execute(ContentListDirective.java:92)
at freemarker.core.Environment.visit(Environment.java:341)
at freemarker.core.UnifiedCall.accept(UnifiedCall.java:136)
at freemarker.core.Environment.visit(Environment.java:265)
at freemarker.core.MixedContent.accept(MixedContent.java:93)
at freemarker.core.Environment.visit(Environment.java:265)
at freemarker.core.Environment.process(Environment.java:243)
at freemarker.template.Template.process(Template.java:277)
at com.agileeagle.gcms.website.staticpage.service.impl.CmsStaticServiceImpl.indexStatic(CmsStaticServiceImpl.java:108)
at com.agileeagle.gcms.website.staticpage.service.impl.CmsStaticServiceImpl.index(CmsStaticServiceImpl.java:70)
at sun.reflect.GeneratedMethodAccessor445.invoke(Unknown Source)
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:317)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:96)
at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:260)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:94)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at com.sun.proxy.$Proxy81.index(Unknown Source)
at com.agileeagle.gcms.website.staticpage.service.impl.CmsServiceFacade.indexStatic(CmsServiceFacade.java:127)
at com.agileeagle.gcms.website.assist.task.job.IndexStaticJob.staticIndex(IndexStaticJob.java:54)
at com.agileeagle.gcms.website.assist.task.job.IndexStaticJob.executeInternal(IndexStaticJob.java:48)
at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:113)
at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
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:748)
Caused by: java.lang.ArrayIndexOutOfBoundsException