FreeMarker template error (DEBU腦用G mode; use RETHROW in production!):雜討
The following has evaluated to 影火null or missing:
==> newsList.content_d為理atetime [in template "news.ftl"鐘林 at line 70, column 90]
----
Tip: 又體It's the step after the las間謝t dot that caused this error, not thos就笑e before it.
----
Tip: If the failin匠但g expression is known黃身 to legally refer to something that'司子s sometimes null or m能長issing, either specify a defa自放ult value like myOptionalVar聽道!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing. (These only cover t志喝he last step of the expr讀男ession; to cover the whole 日物expression, use parenthesis: (m文舊yOptionalVar.foo)!myDefault, (myOpti從自onalVar.foo)??
----
----
山美
FTL stack trace ("~" means 司業nesting-related):
- Failed at: ${new路嗎sList.content_datetime?string("男外y... [in template "n內兵ews.ftl" at line 70, column體些 88]
----
Java stack trace (f們公or programmers):
----
freemarker.cor匠務e.InvalidReferenceExcept愛日ion: [... Exception m去讀essage was already printed; see it a現亮bove ...]
at freemarker.core.InvalidR如子eferenceException.getInstance(Inval能頻idReferenceException.java:134)
at很男 freemarker.core.Unexpec技視tedTypeException.newDesc跳船riptionBuilder(Unexpected鄉不TypeException.java:85)
at 要如freemarker.core.Unexpect木河edTypeException.(UnexpectedTypeException司黑.java:48)
at freemarker.core.BuiltI醫火nsForMultipleTypes$stringBI._eval(外畫BuiltInsForMultipleTy站唱pes.java:763)
at freemarker.co房海re.Expression.eval(Expression.java:101哥聽)
at freemarker.core.MethodCall.報地_eval(MethodCall.java:55)
at freemark畫呢er.core.Expression.eval(Expression.j鄉地ava:101)
at freemarker.co章訊re.DollarVariable.calculateInterpol刀聽atedStringOrMarkup(DollarVari為音able.java:100)
at f店市reemarker.core.DollarVariable.場雜accept(DollarVariable.java:63)鄉懂
at freemarker.core.Envi離一ronment.visit(Environment.java:36舞空7)
at freemarker.core.IteratorBlock$I高還terationContext.executedNest下空edContentForCollOrSeqList制從ing(IteratorBlock.java:321)
at fre是小emarker.core.IteratorBlock$Ite水信rationContext.executeNestedConten學亮t(IteratorBlock.java:271)
at f動窗reemarker.core.IteratorBlock$Iteration笑鐘Context.accept(IteratorBlock.java:24腦木4)
at freemarker.core.Environm明就ent.visitIteratorBlock(Environment計多.java:643)
at freemarker.cor風又e.IteratorBlock.acceptWithResu著志lt(IteratorBlock.java:108)
a服房t freemarker.core.IteratorBl話來ock.accept(IteratorBlock.java:94)
a草的t freemarker.core.Environment.vis姐人it(Environment.java:331)
at f站上reemarker.core.Environment.visit(鐘快Environment.java:337)
at freemar快河ker.core.Environment.p舊慢rocess(Environment.java:3長件10)
at freemarker.templat做門e.Template.process(Te醫用mplate.java:383)
at com.smar友知tcity.cms.common.utils男南.FreemarkerUtils.freeMarkerC窗門ontent(FreemarkerUtils.java:46)
車懂
at com.smartcity.cms.c行可ontroller.TempController.new電公s_vist(TempController.java:13風拍2)
at sun.reflect.Native人雪MethodAccessorImpl.invoke也靜0(Native Method)
at sun.reflect.Nati明草veMethodAccessorImpl.invoke空門(NativeMethodAccessorImpl著不.java:62)
at sun.reflect離嗎.DelegatingMethodAcces討家sorImpl.invoke(Delegatin南會gMethodAccessorImpl.java:43)
at章道 java.lang.reflect.Me船醫thod.invoke(Method.java:498)
at 裡水org.springframework.web.method.su現黃pport.InvocableHandlerMethod.doInvoke費書(InvocableHandlerMethod.java:190)
男區at org.springframework.web.meth微樹od.support.InvocableHandle從銀rMethod.invokeForRequest(Invocabl有鐵eHandlerMethod.java:138)少明
at org.springframework.web.servl遠從et.mvc.method.annotation.Serv科在letInvocableHandlerMethod.invokeAn得離dHandle(ServletInvocableHandlerMetho可中d.java:106)
at org.sp就對ringframework.web.servlet女關.mvc.method.annotation.外分RequestMappingHandlerAdap姐習ter.invokeHandlerMethod(Req書也uestMappingHandlerAdapter.java:879)如房
at org.springframework.web.servle明笑t.mvc.method.annotation.RequestMappi道音ngHandlerAdapter.handleInternal(Req熱笑uestMappingHandlerAdapter又快.java:793)
at org.springframework.河金web.servlet.mvc.method.Abs業跳tractHandlerMethodAdapter商姐.handle(AbstractHandlerMethodA紙用dapter.java:87)
at org.springfr們器amework.web.servlet.DispatcherSer友外vlet.doDispatch(DispatcherServlet.java北腦:1040)
at org.springframework.web報友.servlet.DispatcherServlet.doService師喝(DispatcherServlet.java:943)
at 腦制org.springframework.web.servlet從學.FrameworkServlet.proces人村sRequest(FrameworkServlet.java:照小1006)
at org.springframework.web.se南自rvlet.FrameworkServlet.水農doGet(FrameworkServle議什t.java:898)
at javax.servlet.ht在她tp.HttpServlet.service(HttpServlet.jav術音a:634)
at org.spring員還framework.web.servlet.Framewor農公kServlet.service(FrameworkServ離大let.java:883)
at javax.servlet車銀.http.HttpServlet.service(HttpServlet.男有java:741)
at org.apache.cata音知lina.core.Application站男FilterChain.internalDoFilter(冷金ApplicationFilterChain.java:231)
國務
at org.apache.catalina.co子日re.ApplicationFilterChain.doFilter姐了(ApplicationFilterCh月說ain.java:166)
at org.中來apache.tomcat.websocket.serv他大er.WsFilter.doFilter(W輛上sFilter.java:53)
at org.一靜apache.catalina.core.Appl行廠icationFilterChain.intern動微alDoFilter(ApplicationFilterChai姐民n.java:193)
at org.a得黃pache.catalina.core.Applicatio新輛nFilterChain.doFilter(Applicat的跳ionFilterChain.java:166)
at 刀日org.springframework.web.filter.Cors市遠Filter.doFilterInternal(Cors近關Filter.java:92)
at org.spring時子framework.web.filter.Once司看PerRequestFilter.doFilter(OnceP又都erRequestFilter.java:119)
a腦服t org.apache.catalina.core日錢.ApplicationFilterChain.internalDoFi著要lter(ApplicationFilterChain.java:193)
得音
at org.apache.catalina.c空技ore.ApplicationFilter高舞Chain.doFilter(Applicati腦費onFilterChain.java:166)
at org.spri分鄉ngframework.web.filter.Reques這跳tContextFilter.doFilterIntern讀理al(RequestContextFilt車在er.java:100)
at org.springframew知山ork.web.filter.OncePerRequest下那Filter.doFilter(OncePerRequestFilter.ja報他va:119)
at org.apache.catalina.core.路國ApplicationFilterChain.internalD物海oFilter(ApplicationFilterC學門hain.java:193)
at org.apa時看che.catalina.core.Ap樂家plicationFilterChain.doFilter(A房視pplicationFilterChain.司鄉java:166)
at org.springframew房車ork.web.filter.FormC舊亮ontentFilter.doFilterInte快離rnal(FormContentFilter.java:93)
為木at org.springframework.web.fil村文ter.OncePerRequestFilter.doF懂兒ilter(OncePerRequestFilter.jav要家a:119)
at org.apac火冷he.catalina.core.ApplicationF家農ilterChain.internalDoFilter(Applic刀山ationFilterChain.java:對匠193)
at org.apache.師紅catalina.core.ApplicationFilterChain老老.doFilter(ApplicationFi這亮lterChain.java:166)
at org.springfra靜又mework.boot.web.servle美間t.support.ErrorPageFilter.do也筆Filter(ErrorPageFilter.java:12來學8)
at org.springframework.bo美議ot.web.servlet.support.Erro樂不rPageFilter.access$000亮畫(ErrorPageFilter.java:6來區6)
at org.springframework.boot.web日林.servlet.support.ErrorPageFilt劇為er$1.doFilterInternal(Er書員rorPageFilter.java:103有著)
at org.springframework.we書要b.filter.OncePerRequestFilter.doFil她海ter(OncePerRequestFilter.jav看物a:119)
at org.springframewo理短rk.boot.web.servlet.support.Err農坐orPageFilter.doFilter(ErrorPageF員那ilter.java:121)
at org.apache.catal國制ina.core.ApplicationFilterChain.i土音nternalDoFilter(Applic得們ationFilterChain.java:193)
at or鐵為g.apache.catalina.cor熱區e.ApplicationFilterCh的我ain.doFilter(ApplicationFilterChain.司為java:166)
at org.springframework.web.國報filter.CharacterEncodin是對gFilter.doFilterInternal(Character吃學EncodingFilter.java:201)
來問
at org.springframework.web.fil微書ter.OncePerRequestFi服長lter.doFilter(OncePe件去rRequestFilter.java:119)化數
at org.apache.catalina.core.Applicat區厭ionFilterChain.internalDoFil妹離ter(ApplicationFilterChain.java:193放公)
at org.apache.catali到做na.core.ApplicationFi男船lterChain.doFilter(Applic日廠ationFilterChain.java:166)女機
at org.apache.cat能厭alina.core.StandardWr著雜apperValve.invoke(Stand哥姐ardWrapperValve.java:200)
at org.a紅紙pache.catalina.core.StandardCont現窗extValve.invoke(StandardContextVa討日lve.java:96)
at org.apache.ca拿個talina.authenticator.Authenti生師catorBase.invoke(Authentic草算atorBase.java:490)
a黑為t org.apache.catalina.core.St地文andardHostValve.invoke(StandardH兵場ostValve.java:139)
樹能 at org.apache.catalina.valve裡資s.ErrorReportValve.inv商學oke(ErrorReportValve.java:92)
at org.人土apache.catalina.valv空有es.AbstractAccessLogValve.invo還草ke(AbstractAccessLogValve.java:678)
美又at org.apache.catalina.core.Standar河雨dEngineValve.invoke(StandardEngineV紙這alve.java:74)
at org.apac身讀he.catalina.connector.CoyoteAdapter坐我.service(CoyoteAdapter.java:343)
at o技兵rg.apache.coyote.http11.Http11Processo員從r.service(Http11Processor.java:408)事報
at org.apache.coyote上路.AbstractProcessorLi議音ght.process(AbstractPro從議cessorLight.java:66)
at和頻 org.apache.coyote.AbstractProtocol$現藍ConnectionHandler.process(A很妹bstractProtocol.java:836)
at org.apac很作he.tomcat.util.net.NioEndp雪日oint$SocketProcessor鐘窗.doRun(NioEndpoint.jav快匠a:1839)
at org.apa也信che.tomcat.util.net.So樂視cketProcessorBase.run(SocketPr河村ocessorBase.java:49)
at java.util.co我農ncurrent.ThreadPoolExecutor.runWor男微ker(ThreadPoolExecutor.java:1149)
音年at java.util.concurrent.Thr亮師eadPoolExecutor$Worker.run(哥劇ThreadPoolExecutor.java:624)
at org.a弟習pache.tomcat.util.thre坐雨ads.TaskThread$Wrapping作司Runnable.run(TaskThread.java:微藍61)
at java.lang.Thread紅劇.run(Thread.java:748)