FreeMarker template error: The following has evaluated to null or missing: ==> event.dt_surrogate_key [in template "ComponentTemplateSource:Featured Event:503140" at line 5, column 15] ---- Tip: It's the step after the last dot that caused this error, not those before it. ---- Tip: If the failing expression is known to legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use [#if myOptionalVar??]when-present[#else]when-missing[/#if]. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)?? ---- ---- FTL stack trace ("~" means nesting-related): - Failed at: #assign id = event.dt_surrogate_key [in template "ComponentTemplateSource:Featured Event:503140" at line 5, column 1] ---- Java stack trace (for programmers): ---- freemarker.core.InvalidReferenceException: [... Exception message was already printed; see it above ...] at freemarker.core.InvalidReferenceException.getInstance(InvalidReferenceException.java:134) at freemarker.core.Assignment.accept(Assignment.java:139) at freemarker.core.Environment.visit(Environment.java:325) at freemarker.core.Environment.visit(Environment.java:331) at freemarker.core.Environment.process(Environment.java:304) at com.i2rd.freemarker.component.FreeMarkerGenerator.render(FreeMarkerGenerator.java:267) at net.proteusframework.cms.controller.RenderChain.render_internal(RenderChain.java:174) at net.proteusframework.cms.controller.RenderChain.doChain(RenderChain.java:127) at net.proteusframework.cms.controller.PageElementChain.walk(PageElementChain.java:192) at net.proteusframework.cms.controller.RenderChain.renderChildElements(RenderChain.java:120) at net.proteusframework.cms.component.generator.PassthroughGenerator.render(PassthroughGenerator.java:135) at net.proteusframework.cms.controller.RenderChain.render_internal(RenderChain.java:174) at net.proteusframework.cms.controller.RenderChain.doChain(RenderChain.java:127) at net.proteusframework.cms.controller.PageElementChain.walk(PageElementChain.java:192) at net.proteusframework.cms.controller.RenderChain.renderChildElements(RenderChain.java:120) at net.proteusframework.cms.controller.HTMLBoxGenerator.render(HTMLBoxGenerator.java:170) at net.proteusframework.cms.controller.RenderChain.render_internal(RenderChain.java:174) at net.proteusframework.cms.controller.RenderChain.doChain(RenderChain.java:127) at net.proteusframework.cms.controller.PageElementChain.walk(PageElementChain.java:192) at net.proteusframework.cms.controller.RenderChain.renderChildElements(RenderChain.java:120) at net.proteusframework.cms.controller.HTMLBoxGenerator.render(HTMLBoxGenerator.java:170) at net.proteusframework.cms.controller.RenderChain.render_internal(RenderChain.java:174) at net.proteusframework.cms.controller.RenderChain.doChain(RenderChain.java:127) at net.proteusframework.cms.controller.PageElementChain.walk(PageElementChain.java:192) at net.proteusframework.cms.controller.RenderChain.renderChildElements(RenderChain.java:120) at net.proteusframework.cms.controller.HTMLPageGenerator.render(HTMLPageGenerator.java:466) at net.proteusframework.cms.controller.RenderChain.render_internal(RenderChain.java:174) at net.proteusframework.cms.controller.Processor.processAndRender(Processor.java:300) at net.proteusframework.cms.controller.Processor.handle(Processor.java:235) at net.proteusframework.cms.controller.Cms.doPost(Cms.java:594) at net.proteusframework.cms.controller.Cms.doGet(Cms.java:538) at net.proteusframework.cms.controller.Cms.service(Cms.java:294) at net.proteusframework.cms.controller.Cms.service(Cms.java:193) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at net.proteusframework.internet.servlet.filter.ClientLog4JFilter.doFilter(ClientLog4JFilter.java:192) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:264) at net.proteusframework.users.authentication.RecordAccessFilter.doFilter(RecordAccessFilter.java:77) at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274) at net.proteusframework.cms.controller.CmsContextFilter.doFilter(CmsContextFilter.java:184) at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274) at net.proteusframework.users.authentication.ProteusRememberMeProcessingFilter.doFilter(ProteusRememberMeProcessingFilter.java:100) at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274) at net.proteusframework.internet.servlet.filter.HibernateSessionHandlerFilter.doFilter(HibernateSessionHandlerFilter.java:99) at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274) at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:191) at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274) at org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:148) at org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:90) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at net.proteusframework.internet.servlet.filter.compression.CompressionFilter.doFilter(CompressionFilter.java:126) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:931) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407) at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:200) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310) 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)