HTTP Status 500 – Internal Server Error

HTTP Status 500 – Internal Server Error

Type Exception Report

Message Request processing failed; nested exception is freemarker.core.InvalidReferenceException: The following has evaluated to null or missing:

Description The server encountered an unexpected condition that prevented it from fulfilling the request.

Exception

org.springframework.web.util.NestedServletException: Request processing failed; nested exception is freemarker.core.InvalidReferenceException: The following has evaluated to null or missing:
==> FTJ.getPackagesForArticle(pageData.content.naturalId!, “”, “3”) [in template “master-template/story/article-v3.ftl” at line 16, column 32]

—-
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 articlePackages = FTJ.getPack… [in template “master-template/story/article-v3.ftl” at line 16, column 7]
– Reached through: #include “/master-template/story/arti… [in template “sites/thinkadvisor/story/article.ftl” at line 58, column 5]
– Reached through: #include FTL.getTemplateName(“story/a… [in template “master-template/story/router.ftl” at line 16, column 1]
—-
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:982)
org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:861)
javax.servlet.http.HttpServlet.service(HttpServlet.java:655)
org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846)
javax.servlet.http.HttpServlet.service(HttpServlet.java:764)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:197)
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
com.alm.accesscontrol.SingleSignOnFilter.doFilter(SingleSignOnFilter.java:342)
org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)
org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:262)
net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:201)
net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:178)

Root Cause

freemarker.core.InvalidReferenceException: The following has evaluated to null or missing:
==> FTJ.getPackagesForArticle(pageData.content.naturalId!, “”, “3”) [in template “master-template/story/article-v3.ftl” at line 16, column 32]

—-
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 articlePackages = FTJ.getPack… [in template “master-template/story/article-v3.ftl” at line 16, column 7]
– Reached through: #include “/master-template/story/arti… [in template “sites/thinkadvisor/story/article.ftl” at line 58, column 5]
– Reached through: #include FTL.getTemplateName(“story/a… [in template “master-template/story/router.ftl” at line 16, column 1]
—-
freemarker.core.InvalidReferenceException.getInstance(InvalidReferenceException.java:134)
freemarker.core.Assignment.accept(Assignment.java:139)
freemarker.core.Environment.visit(Environment.java:347)
freemarker.core.Environment.visit(Environment.java:353)
freemarker.core.Environment.visit(Environment.java:353)
freemarker.core.Environment.include(Environment.java:2955)
freemarker.core.Include.accept(Include.java:171)
freemarker.core.Environment.visit(Environment.java:347)
freemarker.core.Environment.visit(Environment.java:353)
freemarker.core.Environment.visit(Environment.java:353)
freemarker.core.Environment.visit(Environment.java:353)
freemarker.core.Environment.include(Environment.java:2955)
freemarker.core.Include.accept(Include.java:171)
freemarker.core.Environment.visit(Environment.java:347)
freemarker.core.Environment.visit(Environment.java:353)
freemarker.core.Environment.process(Environment.java:326)
freemarker.template.Template.process(Template.java:383)
org.springframework.web.servlet.view.freemarker.FreeMarkerView.processTemplate(FreeMarkerView.java:367)
org.springframework.web.servlet.view.freemarker.FreeMarkerView.doRender(FreeMarkerView.java:284)
org.springframework.web.servlet.view.freemarker.FreeMarkerView.renderMergedTemplateModel(FreeMarkerView.java:234)
org.springframework.web.servlet.view.AbstractTemplateView.renderMergedOutputModel(AbstractTemplateView.java:167)
org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:303)
org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1257)
org.springframework.web.servlet.DispatcherServlet.processDispatchResult(DispatcherServlet.java:1037)
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:980)
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:897)
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:970)
org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:861)
javax.servlet.http.HttpServlet.service(HttpServlet.java:655)
org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846)
javax.servlet.http.HttpServlet.service(HttpServlet.java:764)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:197)
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
com.alm.accesscontrol.SingleSignOnFilter.doFilter(SingleSignOnFilter.java:342)
org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)
org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:262)
net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:201)
net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:178)

See also  July Court Date Set for LPL Network Firm Employee Charged With Double Murder

Note The full stack trace of the root cause is available in the server logs.

Apache Tomcat/9.0.53