AnsweredAssumed Answered

RM 04200001 Failed to retrieve template

Question asked by rvent on May 20, 2013
Latest reply on Jul 1, 2013 by sqrl00
Hello,

I am playing around with RM. Everything seems to work fine except when i try to access the File Plan in the Rm Site.

When i click on File Plan i see the following error: all the links on the File Plank page do not work. The Records Search page loads up, however, all searches come out empty. (maybe i have to wait some time before it gets indexed…?). The Records Management Console seems to be working.

Any Ideas? I've checked that the file is at the specified location:
root -> cat tomcat/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/rm/components/documentlibrary/documentlist.get.head.ftl

<#include "/org/alfresco/components/component.head.inc">
<!– DoD 5015.2 Document List –>
<@link rel="stylesheet" type="text/css" href="${url.context}/res/components/documentlibrary/documentlist.css" />
<@link rel="stylesheet" type="text/css" href="${url.context}/res/rm/components/documentlibrary/documentlist.css" />
<@script type="text/javascript" src="${url.context}/res/components/documentlibrary/documentlist.js"></@script>
<@script type="text/javascript" src="${url.context}/res/rm/components/documentlibrary/documentlist.js"></@script>
<@script type="text/javascript" src="${url.context}/res/components/documentlibrary/documentlist-view-detailed.js">
<@script type="text/javascript" src="${url.context}/res/components/documentlibrary/documentlist-view-simple.js">
<@script type="text/javascript" src="${url.context}/res/components/documentlibrary/documentlist-view-gallery.js">
<@script type="text/javascript" src="${url.context}/res/yui/slider/slider.js">


Error:

2013-05-20 10:26:41,577  ERROR [surf.render.RenderService] [http-apr-8080-exec-4] The following error occurred rendering the template header.
org.springframework.extensions.webscripts.WebScriptException: 04200001 Failed to retrieve template org/alfresco/rm/components/documentlibrary/documentlist.get.head.ftl
        at org.springframework.extensions.webscripts.processor.FTLTemplateProcessor.hasTemplate(FTLTemplateProcessor.java:269)
        at org.springframework.extensions.webscripts.TemplateProcessorRegistry.findValidTemplatePath(TemplateProcessorRegistry.java:252)
        at org.springframework.extensions.webscripts.WebScriptProcessor.executeHeader(WebScriptProcessor.java:167)
        at org.springframework.extensions.surf.render.AbstractProcessor.execute(AbstractProcessor.java:66)
        at org.springframework.extensions.surf.render.RenderService.process(RenderService.java:599)
        at org.springframework.extensions.surf.render.RenderService.renderSubComponent(RenderService.java:505)
        at org.springframework.extensions.surf.render.RenderService.processComponent(RenderService.java:419)
        at org.springframework.extensions.surf.render.RenderService.renderComponent(RenderService.java:942)
        at org.springframework.extensions.surf.render.bean.TemplateInstanceRenderer.header(TemplateInstanceRenderer.java:108)
        at org.springframework.extensions.surf.render.RenderService.renderTemplateHeaderAsString(RenderService.java:1142)
        at org.springframework.extensions.webscripts.ProcessorModelHelper.populateTemplateModel(ProcessorModelHelper.java:651)
        at org.springframework.extensions.webscripts.WebTemplateProcessor.executeBody(WebTemplateProcessor.java:369)
        at org.springframework.extensions.surf.render.AbstractProcessor.execute(AbstractProcessor.java:57)
        at org.springframework.extensions.surf.render.RenderService.processTemplate(RenderService.java:721)
        at org.springframework.extensions.surf.render.bean.TemplateInstanceRenderer.body(TemplateInstanceRenderer.java:140)
        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:762)
        at org.springframework.extensions.surf.mvc.PageView.dispatchPage(PageView.java:411)
        at org.springframework.extensions.surf.mvc.PageView.renderView(PageView.java:306)
        at org.springframework.extensions.surf.mvc.AbstractWebFrameworkView.renderMergedOutputModel(AbstractWebFrameworkView.java:316)
        at org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:250)
        at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1047)
        at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:817)
        at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:719)
        at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:644)
        at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:549)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
        at org.alfresco.web.site.servlet.MTAuthenticationFilter.doFilter(MTAuthenticationFilter.java:74)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
        at org.alfresco.web.site.servlet.SSOAuthenticationFilter.doFilter(SSOAuthenticationFilter.java:374)
        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:168)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
        at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
        at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1002)
        at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:585)
        at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:1813)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
        at java.lang.Thread.run(Thread.java:722)
Caused by: java.io.IOException: There was an error loading the template on an earlier attempt; it is attached as a cause
        at freemarker.cache.TemplateCache.throwLoadFailedException(TemplateCache.java:409)
        at freemarker.cache.TemplateCache.getTemplate(TemplateCache.java:289)
        at freemarker.cache.TemplateCache.getTemplate(TemplateCache.java:238)
        at freemarker.template.Configuration.getTemplate(Configuration.java:493)
        at freemarker.template.Configuration.getTemplate(Configuration.java:458)
        at org.springframework.extensions.webscripts.processor.FTLTemplateProcessor.hasTemplate(FTLTemplateProcessor.java:260)
        … 51 more
Caused by: freemarker.core.ParseException: Unexpected end of file reached.

        at freemarker.core.FMParser.generateParseException(FMParser.java:4697)
        at freemarker.core.FMParser.jj_consume_token(FMParser.java:4568)
        at freemarker.core.FMParser.UnifiedMacroTransform(FMParser.java:1973)
        at freemarker.core.FMParser.FreemarkerDirective(FMParser.java:2399)
        at freemarker.core.FMParser.Content(FMParser.java:2618)
        at freemarker.core.FMParser.OptionalBlock(FMParser.java:2786)
        at freemarker.core.FMParser.UnifiedMacroTransform(FMParser.java:1972)
        at freemarker.core.FMParser.FreemarkerDirective(FMParser.java:2399)
        at freemarker.core.FMParser.Content(FMParser.java:2618)
        at freemarker.core.FMParser.OptionalBlock(FMParser.java:2786)
        at freemarker.core.FMParser.UnifiedMacroTransform(FMParser.java:1972)
        at freemarker.core.FMParser.FreemarkerDirective(FMParser.java:2399)
        at freemarker.core.FMParser.Content(FMParser.java:2618)
        at freemarker.core.FMParser.OptionalBlock(FMParser.java:2786)
        at freemarker.core.FMParser.UnifiedMacroTransform(FMParser.java:1972)
        at freemarker.core.FMParser.FreemarkerDirective(FMParser.java:2399)
        at freemarker.core.FMParser.Content(FMParser.java:2618)
        at freemarker.core.FMParser.OptionalBlock(FMParser.java:2786)
        at freemarker.core.FMParser.Root(FMParser.java:2958)
        at freemarker.template.Template.<init>(Template.java:149)
        at freemarker.cache.TemplateCache.loadTemplate(TemplateCache.java:457)
        at freemarker.cache.TemplateCache.getTemplate(TemplateCache.java:370)
        … 55 more

Outcomes