Login Register
FreeMarker template error: The following has evaluated to null or missing: ==> lastBreadcrumb [in template "component://customize/template/cmsfront/commonDecorator.ftl" at line 6, column 31] ---- 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. (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 lastBreadcrumb = lastBreadcrumb [in template "component://customize/template/cmsfront/commonDecorator.ftl" at line 6, column 5] - Reached through: @cmsBreadcrumb contentId=decoratedCon... [in template "component://customize/template/cmsfront/commonDecorator.ftl" at line 4, 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:366) at freemarker.core.Environment$NestedElementTemplateDirectiveBody.render(Environment.java:2900) at net.buymice.cmssite.ftl.BreadcrumbDirective.execute(BreadcrumbDirective.java:105) at freemarker.core.Environment.visit(Environment.java:445) at freemarker.core.UnifiedCall.accept(UnifiedCall.java:101) at freemarker.core.Environment.visit(Environment.java:330) at freemarker.core.Environment.visit(Environment.java:336) at freemarker.core.Environment.process(Environment.java:309) at org.noerp.base.util.template.FreeMarkerWorker.renderTemplate(FreeMarkerWorker.java:257) at org.noerp.widget.model.HtmlWidget.renderHtmlTemplate(HtmlWidget.java:167) at org.noerp.widget.model.HtmlWidget$HtmlTemplate.renderWidgetString(HtmlWidget.java:216) at org.noerp.widget.model.HtmlWidget.renderWidgetString(HtmlWidget.java:140) at org.noerp.widget.model.ModelScreenWidget$PlatformSpecific.renderWidgetString(ModelScreenWidget.java:1319) at org.noerp.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98) at org.noerp.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:280) at org.noerp.widget.model.ModelScreen.renderScreenString(ModelScreen.java:164) at org.noerp.widget.model.ScreenFactory.renderReferencedScreen(ScreenFactory.java:211) at org.noerp.widget.model.ModelScreenWidget$IncludeScreen.renderWidgetString(ModelScreenWidget.java:780) at org.noerp.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98) at org.noerp.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:280) at org.noerp.widget.model.ModelScreen.renderScreenString(ModelScreen.java:164) at com.ofbizcn.content.data.DataResourceWorker.renderDataResourceAsText(DataResourceWorker.java:840) at com.ofbizcn.content.data.DataResourceWorker.renderDataResourceAsText(DataResourceWorker.java:662) at com.ofbizcn.content.content.ContentWorker.renderContentAsText(ContentWorker.java:375) at com.ofbizcn.content.content.ContentWorker.renderContentAsText(ContentWorker.java:531) at com.ofbizcn.content.content.ContentWorker.renderContentAsText(ContentWorker.java:462) at com.ofbizcn.content.content.ContentMapFacade.renderThis(ContentMapFacade.java:343) at com.ofbizcn.content.content.ContentMapFacade.toString(ContentMapFacade.java:355) at freemarker.ext.beans.StringModel.getAsString(StringModel.java:60) at freemarker.core.EvalUtil.modelToString(EvalUtil.java:59) at freemarker.core.EvalUtil.coerceModelToTextualCommon(EvalUtil.java:461) at freemarker.core.EvalUtil.coerceModelToStringOrMarkup(EvalUtil.java:389) at freemarker.core.EvalUtil.coerceModelToStringOrMarkup(EvalUtil.java:358) at freemarker.core.DollarVariable.calculateInterpolatedStringOrMarkup(DollarVariable.java:100) at freemarker.core.DollarVariable.accept(DollarVariable.java:63) at freemarker.core.Environment.visit(Environment.java:330) at freemarker.core.Environment.visit(Environment.java:336) at freemarker.core.Environment.process(Environment.java:309) at org.noerp.base.util.template.FreeMarkerWorker.renderTemplate(FreeMarkerWorker.java:257) at org.noerp.widget.model.HtmlWidget.renderHtmlTemplate(HtmlWidget.java:167) at org.noerp.widget.model.HtmlWidget$HtmlTemplate.renderWidgetString(HtmlWidget.java:216) at org.noerp.widget.model.HtmlWidget.renderWidgetString(HtmlWidget.java:140) at org.noerp.widget.model.ModelScreenWidget$PlatformSpecific.renderWidgetString(ModelScreenWidget.java:1319) at org.noerp.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98) at org.noerp.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:280) at org.noerp.widget.model.ModelScreen.renderScreenString(ModelScreen.java:164) at org.noerp.widget.model.ScreenFactory.renderReferencedScreen(ScreenFactory.java:211) at org.noerp.widget.model.ModelScreenWidget$IncludeScreen.renderWidgetString(ModelScreenWidget.java:780) at org.noerp.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98) at org.noerp.widget.model.ModelScreenWidget$DecoratorSection.renderWidgetString(ModelScreenWidget.java:906) at org.noerp.widget.model.ModelScreenWidget$SectionsRenderer.render(ModelScreenWidget.java:127) at org.noerp.widget.model.ModelScreenWidget$DecoratorSectionInclude.renderWidgetString(ModelScreenWidget.java:943) at org.noerp.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98) at org.noerp.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:280) at org.noerp.widget.model.ModelScreen.renderScreenString(ModelScreen.java:164) at org.noerp.widget.model.ScreenFactory.renderReferencedScreen(ScreenFactory.java:211) at org.noerp.widget.model.ModelScreenWidget$DecoratorScreen.renderWidgetString(ModelScreenWidget.java:860) at org.noerp.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98) at org.noerp.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:280) at org.noerp.widget.model.ModelScreen.renderScreenString(ModelScreen.java:164) at com.ofbizcn.content.data.DataResourceWorker.renderDataResourceAsText(DataResourceWorker.java:840) at com.ofbizcn.content.data.DataResourceWorker.renderDataResourceAsText(DataResourceWorker.java:662) at com.ofbizcn.content.content.ContentWorker.renderContentAsText(ContentWorker.java:375) at com.ofbizcn.content.content.ContentWorker.renderContentAsText(ContentWorker.java:531) at com.ofbizcn.content.content.ContentWorker.renderContentAsText(ContentWorker.java:345) at com.ofbizcn.content.content.ContentWorker.renderContentAsText(ContentWorker.java:531) at com.ofbizcn.content.content.ContentWorker.renderContentAsText(ContentWorker.java:345) at com.ofbizcn.content.content.ContentWorker.renderContentAsText(ContentWorker.java:531) at com.ofbizcn.content.cms.CmsEvents.cms(CmsEvents.java:344) at sun.reflect.GeneratedMethodAccessor86.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.noerp.webapp.event.JavaEventHandler.invoke(JavaEventHandler.java:92) at org.noerp.webapp.event.JavaEventHandler.invoke(JavaEventHandler.java:78) at org.noerp.webapp.control.RequestHandler.runEvent(RequestHandler.java:754) at org.noerp.webapp.control.RequestHandler.doRequest(RequestHandler.java:474) at org.noerp.webapp.control.ControlServlet.doGet(ControlServlet.java:207) at javax.servlet.http.HttpServlet.service(HttpServlet.java:635) at javax.servlet.http.HttpServlet.service(HttpServlet.java:742) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.noerp.webapp.control.ContextFilter.doFilter(ContextFilter.java:329) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:199) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:478) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87) at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:650) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342) at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:803) at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66) at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:868) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1459) at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Unknown Source)
科研服务