FreeMarker template error (DEBUG mode; use RETHROW in production!): Xalan can't perform an XPath query against an empty Node Set. (There's no such restriction if you configure FreeMarker to use Jaxen for XPath.) ---- FTL stack trace ("~" means nesting-related): - Failed at: #if (item["./objectType"]?size > 0) [in template "ccm-cms/content-item.ftl" in macro "contentItem" at line 49, column 5] - Reached through: @ContentItem.contentItem ContentItem... [in template "templates/default-layout.html.ftl" at line 9, column 13] ~ Reached through: #nested [in template "templates/UniHB2018.html.ftl" in macro "layout" at line 388, column 17] ~ Reached through: @UniHB2018.layout [in template "templates/default-layout.html.ftl" at line 5, column 1] ---- Java stack trace (for programmers): ---- freemarker.template.TemplateModelException: [... Exception message was already printed; see it above ...] at freemarker.ext.dom.XalanXPathSupport.executeQuery(XalanXPathSupport.java:57) at freemarker.ext.dom.NodeListModel.get(NodeListModel.java:180) at freemarker.core.DynamicKeyName.dealWithStringKey(DynamicKeyName.java:165) at freemarker.core.DynamicKeyName._eval(DynamicKeyName.java:85) at freemarker.core.Expression.eval(Expression.java:101) at freemarker.core.BuiltInsForMultipleTypes$sizeBI._eval(BuiltInsForMultipleTypes.java:497) at freemarker.core.Expression.eval(Expression.java:101) at freemarker.core.EvalUtil.compare(EvalUtil.java:113) at freemarker.core.ComparisonExpression.evalToBoolean(ComparisonExpression.java:78) at freemarker.core.ParentheticalExpression.evalToBoolean(ParentheticalExpression.java:35) at freemarker.core.IfBlock.accept(IfBlock.java:49) at freemarker.core.Environment.visit(Environment.java:367) at freemarker.core.Environment.invokeMacroOrFunctionCommonPart(Environment.java:872) at freemarker.core.Environment.invokeMacro(Environment.java:809) at freemarker.core.UnifiedCall.accept(UnifiedCall.java:83) at freemarker.core.Environment.visit(Environment.java:367) at freemarker.core.Environment.invokeNestedContent(Environment.java:619) at freemarker.core.BodyInstruction.accept(BodyInstruction.java:60) at freemarker.core.Environment.visit(Environment.java:367) at freemarker.core.Environment.invokeMacroOrFunctionCommonPart(Environment.java:872) at freemarker.core.Environment.invokeMacro(Environment.java:809) at freemarker.core.UnifiedCall.accept(UnifiedCall.java:83) at freemarker.core.Environment.visit(Environment.java:331) at freemarker.core.Environment.visit(Environment.java:337) at freemarker.core.Environment.process(Environment.java:310) at freemarker.template.Template.process(Template.java:383) at org.libreccm.theming.FreeMarkerPresentationManager.servePage(FreeMarkerPresentationManager.java:283) at com.arsdigita.bebop.jsp.ShowAll.servePageWithPresentationManager(ShowAll.java:126) at com.arsdigita.bebop.jsp.ShowAll.doEndTag(ShowAll.java:90) at org.apache.jsp.templates.ccm_002dportalworkspace.index_jsp._jspx_meth_show_005fall_005f0(index_jsp.java:210) at org.apache.jsp.templates.ccm_002dportalworkspace.index_jsp._jspService(index_jsp.java:178) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:71) at javax.servlet.http.HttpServlet.service(HttpServlet.java:728) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:477) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339) at javax.servlet.http.HttpServlet.service(HttpServlet.java:728) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:742) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:484) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:409) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:337) at com.arsdigita.web.ApplicationFileServlet.doService(ApplicationFileServlet.java:174) at com.arsdigita.web.BaseApplicationServlet$1.excurse(BaseApplicationServlet.java:131) at com.arsdigita.kernel.KernelExcursion.run(KernelExcursion.java:58) at com.arsdigita.web.BaseApplicationServlet.doService(BaseApplicationServlet.java:138) at com.arsdigita.web.BaseServlet$1.excurse(BaseServlet.java:180) at com.arsdigita.kernel.KernelExcursion.run(KernelExcursion.java:58) at com.arsdigita.web.BaseServlet.internalService(BaseServlet.java:197) at com.arsdigita.web.BaseServlet.doGet(BaseServlet.java:286) at javax.servlet.http.HttpServlet.service(HttpServlet.java:621) at javax.servlet.http.HttpServlet.service(HttpServlet.java:728) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:742) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:484) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:409) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:337) at com.arsdigita.web.CCMDispatcherServlet.forward(CCMDispatcherServlet.java:377) at com.arsdigita.web.CCMDispatcherServlet.forward(CCMDispatcherServlet.java:349) at com.arsdigita.web.CCMDispatcherServlet.doService(CCMDispatcherServlet.java:261) at com.arsdigita.web.BaseServlet$1.excurse(BaseServlet.java:180) at com.arsdigita.kernel.KernelExcursion.run(KernelExcursion.java:58) at com.arsdigita.web.BaseServlet.internalService(BaseServlet.java:197) at com.arsdigita.web.BaseServlet.doGet(BaseServlet.java:286) at javax.servlet.http.HttpServlet.service(HttpServlet.java:621) at javax.servlet.http.HttpServlet.service(HttpServlet.java:728) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at com.arsdigita.shortcuts.ShortcutFilter.doService(ShortcutFilter.java:78) at com.arsdigita.web.BaseFilter.doFilter(BaseFilter.java:121) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at com.arsdigita.subsite.SubsiteFilter.doService(SubsiteFilter.java:106) at com.arsdigita.web.BaseFilter.doFilter(BaseFilter.java:121) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:110) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:492) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:165) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:452) at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:190) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:654) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:317) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:750)