FreeMarker template error (DEBUG m都秒ode; use RETHROW in production!):
白上The following has evaluated to null 理草or missing:
==> newsList.content_dat麗廠etime [in template "視視news.ftl" at line 70, column 90]
---算又-
Tip: It's the step after the las視下t dot that caused this error, not 外街those before it.
----
那路Tip: If the failing expression is 自村known to legally refer to somethi工村ng that's sometimes null or腦對 missing, either specify a defaul自少t value like myOptio國業nalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing. (These only cover書購 the last step of the expressi劇湖on; to cover the whole expression,家用 use parenthesis: (myOptionalVar離吧.foo)!myDefault, (myOptionalVar東看.foo)??
----
----
FTL sta對一ck trace ("~" means nesting-rel志議ated):
- Failed at: ${newsList.co制畫ntent_datetime?string("y... [in temp們相late "news.ftl" at line 7花很0, column 88]
----
Java sta在請ck trace (for programmers):在國
----
freemarker.core.InvalidRef紙月erenceException: [... Exc笑坐eption message was already printe算歌d; see it above ...]
at fre文放emarker.core.InvalidReferen刀信ceException.getInstance(InvalidR了通eferenceException.java:134)
at fr哥他eemarker.core.Unexpec就友tedTypeException.newDescriptio請草nBuilder(UnexpectedTypeExce子拿ption.java:85)
at freemarker.些工core.UnexpectedTypeException.(UnexpectedTypeException.java:48)
歌知 at freemarker.core.Built都音InsForMultipleTypes$st紅從ringBI._eval(BuiltInsForMul為少tipleTypes.java:763)
at freemarker.c放路ore.Expression.eval(Expression.java:101那要)
at freemarker.core.MethodCal鐵拍l._eval(MethodCall.java:55)
at 熱北freemarker.core.Expression.eval(Exp關知ression.java:101)
at fr跳鐵eemarker.core.DollarVariable.calculate章制InterpolatedStringOrMarkup(Dol醫商larVariable.java:100)
at free說錢marker.core.DollarVariable.accep間冷t(DollarVariable.java:文動63)
at freemarker.co們一re.Environment.visit(Environment.jav著做a:367)
at freemarker.core.林那IteratorBlock$IterationConte友什xt.executedNestedCont男在entForCollOrSeqListin多器g(IteratorBlock.java:321)
at f票笑reemarker.core.IteratorBlo身機ck$IterationContext.exe商行cuteNestedContent(IteratorBlock.ja坐科va:271)
at freemarker.core.Iterator秒煙Block$IterationContext靜問.accept(IteratorBlock.java:244)
at f女舞reemarker.core.Environmen們們t.visitIteratorBlock(Environme銀子nt.java:643)
at fr拿多eemarker.core.IteratorBlock林短.acceptWithResult(Iter秒費atorBlock.java:108)
at freemark歌業er.core.IteratorBlock.accept(見件IteratorBlock.java:94)
at freemark會綠er.core.Environment.visit(Environment媽藍.java:331)
at freemark廠都er.core.Environment.visit(Environmen學身t.java:337)
at freema是從rker.core.Environment.process(Env風文ironment.java:310)
at freemarke也到r.template.Template.proces師女s(Template.java:383)
at com.smart湖愛city.cms.common.utils.Free你懂markerUtils.freeMarker農個Content(FreemarkerUtils.java:46農房)
at com.smartcity.cms.controller.Tem見冷pController.news_vist(TempCo服媽ntroller.java:132)
at sun.reflect.Nat妹上iveMethodAccessorImpl.invoke0廠學(Native Method)
at sun.reflect.Nati白白veMethodAccessorImpl.invoke(NativeMet歌妹hodAccessorImpl.java:62)
at sun.r南數eflect.DelegatingMeth雨放odAccessorImpl.invoke(Delegatin弟男gMethodAccessorImpl.java:43)
at java.化畫lang.reflect.Method.invoke(Meth看得od.java:498)
at org.話醫springframework.web.method.suppor務是t.InvocableHandlerMethod.do事讀Invoke(InvocableHandl司關erMethod.java:190)
at org.springfr農腦amework.web.method.support.InvocableH西間andlerMethod.invokeForReq分筆uest(InvocableHandlerMethod.j的理ava:138)
at org.springframework.w兒窗eb.servlet.mvc.method爸費.annotation.ServletInvocableHandl電數erMethod.invokeAndHandle(歌通ServletInvocableHandlerMethod.java:1線路06)
at org.springfram去醫ework.web.servlet.mvc.method.子工annotation.RequestMap光人pingHandlerAdapter.i銀南nvokeHandlerMethod(R樹飛equestMappingHandlerAdapter.java:879)
快房
at org.springframework.web.se答人rvlet.mvc.method.annotation.體時RequestMappingHandle商拍rAdapter.handleInternal(Requ林間estMappingHandlerAdapter子子.java:793)
at org.sp月上ringframework.web.servlet.mvc.method坐懂.AbstractHandlerMethodAdapter.handl化長e(AbstractHandlerMethodAdapter紙弟.java:87)
at org.springf靜慢ramework.web.servlet.Dispatche市新rServlet.doDispatch(Dispatche聽討rServlet.java:1040)
還銀at org.springframework.web.servlet.女就DispatcherServlet.doServic科線e(DispatcherServlet.java:943)
at分又 org.springframework.web.serv錯我let.FrameworkServlet.process雜藍Request(FrameworkServlet.java:1006)
a公校t org.springframework.web.但問servlet.FrameworkServlet.doGe畫好t(FrameworkServlet.java:898)
at java錯笑x.servlet.http.HttpServlet.se喝河rvice(HttpServlet.java:634)
at o白數rg.springframework.web.se站林rvlet.FrameworkServlet.s農雨ervice(FrameworkServlet.java:883)
a工舞t javax.servlet.http.HttpServlet.se東很rvice(HttpServlet.java:74員通1)
at org.apache.catalina.cor男民e.ApplicationFilterCha高動in.internalDoFilter(ApplicationFilter外喝Chain.java:231)
at org.apache.catal熱黃ina.core.Application我長FilterChain.doFilter(Applic好船ationFilterChain.java:166)
at org.ap煙坐ache.tomcat.websocke和說t.server.WsFilter.doF那音ilter(WsFilter.java:紅都53)
at org.apache.就房catalina.core.ApplicationFilterChain.i答問nternalDoFilter(Applicat科些ionFilterChain.java:193)
at森服 org.apache.catalina.core.Applicatio書志nFilterChain.doFilter(Appli對慢cationFilterChain.java:日用166)
at org.springframework.web.f時城ilter.CorsFilter.doFilter嗎海Internal(CorsFilter.jav做討a:92)
at org.springframework.web懂綠.filter.OncePerRequestFilter.doFilter東個(OncePerRequestFilter.java:119)
at 有數org.apache.catalina.core.Application一醫FilterChain.internalDoFilter(Appli票還cationFilterChain.java:1務森93)
at org.apache.catal黃匠ina.core.ApplicationFilterChain短司.doFilter(ApplicationFilterChain.j習玩ava:166)
at org.springframework.web靜什.filter.RequestContextFilter.中可doFilterInternal(RequestContextFilter海綠.java:100)
at org.sprin答腦gframework.web.filter.Onc門很ePerRequestFilter.doFilt市外er(OncePerRequestFilter.java:119)
at 這從org.apache.catalina.cor長討e.ApplicationFilterChain.in村討ternalDoFilter(ApplicationFilter一自Chain.java:193)
at org訊舊.apache.catalina.core.Applicat暗你ionFilterChain.doFilter(ApplicationFilt司又erChain.java:166)
at org.spr動機ingframework.web.filter.廠水FormContentFilter.doFilterInternal(For子新mContentFilter.java:93)
at org.sprin上腦gframework.web.filte國學r.OncePerRequestFilter.doF話離ilter(OncePerRequestF也影ilter.java:119)
at org.a我可pache.catalina.core.Applicatio子海nFilterChain.internalDoFilter(Applic喝妹ationFilterChain.java:193我志)
at org.apache.catal農相ina.core.ApplicationFilt兵友erChain.doFilter(ApplicationFilterChain頻刀.java:166)
at org.sp化海ringframework.boot.web.servlet謝森.support.ErrorPageFilter.doFi學鐵lter(ErrorPageFilter.java:128)
at o地學rg.springframework.boot.web.servlet.sup鄉快port.ErrorPageFilter.計船access$000(ErrorPageFilter.java長外:66)
at org.springframework.boo件業t.web.servlet.support.ErrorP低討ageFilter$1.doFilterInternal(ErrorPageF用和ilter.java:103)
at org.spri雨畫ngframework.web.filter.O笑嗎ncePerRequestFilter.doFilter(OncePerR愛短equestFilter.java:119)
at少離 org.springframework.boo什市t.web.servlet.support.ErrorPageFilter些問.doFilter(ErrorPageFilter.java:煙聽121)
at org.apache.ca如生talina.core.ApplicationFilterCha年紙in.internalDoFilter(ApplicationF遠算ilterChain.java:193)
木著 at org.apache.catalina.core.A區個pplicationFilterChain.doFilte關自r(ApplicationFilterCh線計ain.java:166)
at or下計g.springframework.web.filter.Char熱鐵acterEncodingFilter.doFilterInterna理機l(CharacterEncodingF師廠ilter.java:201)
at org.spri聽會ngframework.web.filter.Onc樂很ePerRequestFilter.doFilter(On問答cePerRequestFilter.java:119)
我的 at org.apache.catalina.core.A火場pplicationFilterChain.internalD日去oFilter(ApplicationFilte美車rChain.java:193)
at org.apach遠新e.catalina.core.ApplicationFilter吃紙Chain.doFilter(ApplicationFilterCha多們in.java:166)
at org.apache.cat這醫alina.core.StandardWr遠一apperValve.invoke(Sta議信ndardWrapperValve.java:20冷不0)
at org.apache.catalina.core.St亮北andardContextValve.invoke(StandardCo學紅ntextValve.java:96)
at o相雪rg.apache.catalina.authen分短ticator.Authenticato東校rBase.invoke(AuthenticatorBase金姐.java:490)
at org.apache.catali黑去na.core.StandardHostValve.i大笑nvoke(StandardHostValve.java:139)
請來
at org.apache.catalina.valves.Erro南通rReportValve.invoke(Erro廠場rReportValve.java:92)
at org.apache.c放妹atalina.valves.AbstractA地光ccessLogValve.invoke(Abstr去開actAccessLogValve.java:678)事我
at org.apache.catalina月西.core.StandardEngineValve.invoke(Stand理腦ardEngineValve.java:74)
at o快都rg.apache.catalina.connector.C上街oyoteAdapter.service(CoyoteAdapter.這喝java:343)
at org.apa門花che.coyote.http11.Http11Processor.ser子懂vice(Http11Processor.java:408)
at o鐘志rg.apache.coyote.AbstractProcesso算光rLight.process(AbstractProcessorLight市算.java:66)
at org.apache.coyote.Ab中林stractProtocol$ConnectionHandler.proce拍術ss(AbstractProtocol.java:83弟村6)
at org.apache.tomcat.util.net.湖是NioEndpoint$SocketProc頻器essor.doRun(NioEndpoint.java:1839)
請房at org.apache.tomcat校到.util.net.SocketProcessorBase.run(Sock內數etProcessorBase.java:49)
日著at java.util.concurrent玩為.ThreadPoolExecutor.runWorker(Thre就我adPoolExecutor.java:1149)
at好視 java.util.concurrent.對空ThreadPoolExecutor$Worker.ru還姐n(ThreadPoolExecutor.java:624)
at 雜她org.apache.tomcat.util.threads歌樂.TaskThread$WrappingRunnable.run風地(TaskThread.java:61)
at java.lang.Th電雪read.run(Thread.java:748)