Uploaded image for project: 'Alfresco One Platform'
  1. Alfresco One Platform
  2. ACE-4771

ERROR [freemarker.runtime] Error executing FreeMarker template

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 5.1
    • Fix Version/s: None
    • Component/s: Web Scripts and Surf
    • Labels:
      None
    • Cloud or Enterprise:
      Cloud and Enterprise

      Description

      The following error occurred on TS this morning after successfully starting up one of the cluster nodes:

      2015-11-30 07:51:10,028 ERROR [freemarker.runtime] Error executing FreeMarker template
      FreeMarker template error:
      The following has evaluated to null or missing:
      ==> context.properties["error-templateId"]  [in template "errors/region-error.ftl" at line 1, column 23]
      
      Tip: If the failing expression is known to be legally null/missing, either specify a default value with myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing</#if>. (T
      hese only cover the last step of the expression; to cover the whole expression, use parenthessis: (myOptionVar.foo)!myDefault, (myOptionVar.foo)??
      
      The failing instruction (FTL stack trace):
      ----------
      ==> #assign templateId = context.properti...  [in template "errors/region-error.ftl" at line 1, 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:98)
      	at freemarker.core.Assignment.accept(Assignment.java:112)
      	at freemarker.core.Environment.visit(Environment.java:265)
      	at freemarker.core.MixedContent.accept(MixedContent.java:93)
      	at freemarker.core.Environment.visit(Environment.java:265)
      	at freemarker.core.Environment.process(Environment.java:243)
      	at org.springframework.extensions.webscripts.processor.FTLTemplateProcessor.process(FTLTemplateProcessor.java:192)
      	at org.springframework.extensions.webscripts.WebTemplateProcessor.executeBody(WebTemplateProcessor.java:438)
      	at org.springframework.extensions.surf.render.RenderService.renderErrorHandlerPage(RenderService.java:1070)
      	at org.springframework.extensions.surf.render.RenderService.handleRenderProblem(RenderService.java:1592)
      	at org.springframework.extensions.surf.render.RenderService.renderRegion(RenderService.java:870)
      	at org.springframework.extensions.directives.RegionDirectiveData.render(RegionDirectiveData.java:91)
      	at org.springframework.extensions.surf.extensibility.impl.ExtensibilityModelImpl.merge(ExtensibilityModelImpl.java:414)
      	at org.springframework.extensions.surf.extensibility.impl.AbstractExtensibilityDirective.merge(AbstractExtensibilityDirective.java:170)
      	at org.springframework.extensions.surf.extensibility.impl.AbstractExtensibilityDirective.execute(AbstractExtensibilityDirective.java:137)
      	at freemarker.core.Environment.visit(Environment.java:341)
      	at freemarker.core.UnifiedCall.accept(UnifiedCall.java:136)
      	at freemarker.core.Environment.visit(Environment.java:265)
      	at freemarker.core.MixedContent.accept(MixedContent.java:93)
      	at freemarker.core.Environment.visit(Environment.java:265)
      	at freemarker.core.Macro$Context.runMacro(Macro.java:209)
      	at freemarker.core.Environment.visit(Environment.java:694)
      	at freemarker.core.UnifiedCall.accept(UnifiedCall.java:116)
      	at freemarker.core.Environment.visit(Environment.java:265)
      	at freemarker.core.MixedContent.accept(MixedContent.java:93)
      	at freemarker.core.Environment.visit(Environment.java:265)
      	at freemarker.core.Environment.process(Environment.java:243)
      	at org.springframework.extensions.webscripts.processor.FTLTemplateProcessor.process(FTLTemplateProcessor.java:192)
      	at org.springframework.extensions.webscripts.WebTemplateProcessor.executeBody(WebTemplateProcessor.java:438)
      	at org.springframework.extensions.surf.render.AbstractProcessor.execute(AbstractProcessor.java:57)
      	at org.springframework.extensions.surf.render.RenderService.processTemplate(RenderService.java:723)
      	at org.springframework.extensions.surf.render.bean.TemplateInstanceRenderer.body(TemplateInstanceRenderer.java:141)
      	at org.springframework.extensions.surf.render.AbstractRenderer.render(AbstractRenderer.java:77)
      	at org.springframework.extensions.surf.render.bean.PageRenderer.body(PageRenderer.java:85)
      	at org.springframework.extensions.surf.render.AbstractRenderer.render(AbstractRenderer.java:77)
      	at org.springframework.extensions.surf.render.RenderService.renderPage(RenderService.java:769)
      	at org.springframework.extensions.surf.mvc.PageView.dispatchPage(PageView.java:410)
      	at org.springframework.extensions.surf.mvc.PageView.renderView(PageView.java:249)
      	at org.springframework.extensions.surf.mvc.AbstractWebFrameworkView.renderMergedOutputModel(AbstractWebFrameworkView.java:320)
      	at org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:264)
      	at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1216)
      	at org.springframework.web.servlet.DispatcherServlet.processDispatchResult(DispatcherServlet.java:1001)
      	at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:945)
      	at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:867)
      	at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:953)
      	at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:844)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:620)
      	at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:829)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
      	at org.alfresco.web.site.servlet.SecurityHeadersFilter.doFilter(SecurityHeadersFilter.java:168)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
      	at org.alfresco.web.site.servlet.CSRFFilter.doFilter(CSRFFilter.java:322)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
      	at org.alfresco.web.site.servlet.SSOAuthenticationFilter.doFilter(SSOAuthenticationFilter.java:447)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
      	at org.alfresco.web.site.servlet.MTAuthenticationFilter.doFilter(MTAuthenticationFilter.java:74)
      	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:220)
      	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
      	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
      	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
      	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
      	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
      	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
      	at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1040)
      	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)
      	at org.apache.tomcat.util.net.AprEndpoint$SocketWithOptionsProcessor.run(AprEndpoint.java:2379)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
      	at java.lang.Thread.run(Thread.java:745)
      

      The error then cycled in the logs rapidly and continually. Tomcat had to be stopped as it would have filled the log file system in a matter of minutes. The strange thing is there was nothing wrong with the deployment. After checking everything over for 10 minutes I restarted Tomcat and the system is running normally with no further occurrences of the problem.

      I believe this issue is a replica of something previously seen by the Cloud team: Cloud-2120.

        Attachments

          Activity

            People

            • Assignee:
              shareteam Share Team
              Reporter:
              pjones Philip Jones [X] (Inactive)
            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 minutes
                2m