AnsweredAssumed Answered

Error while creating template in studio

Question asked by prabhakaran on May 28, 2009
Hi All,

Am new to studio, i tried to create website using studio,
I did the following steps
1. Create the project
2.i have created pages(Main and sub pages) using add button in left panel under page
3. Create the template, add the component and associate with home page.
it works fine
when i tried to create another template by add button

It  throws the following logs:

First i have create templete and associate with the home page,
When i try to create another template , server shows the following log

11:18:58,046 ERROR [freemarker.runtime]

Unable to process tag and commit output
The problematic instruction:
———-
==> user-directive region [on line 5, column 13 in common/dynamic-absolute.ftl]
in user-directive absoluteTemplate.body [on line 26, column 17 in common/dynamic.ftl]
———-

Java backtrace for programmers:
———-
freemarker.template.TemplateException: Unable to process tag and commit output
   at org.alfresco.web.scripts.RegionFreemarkerTagDirective.execute(RegionFreemarkerTagDirective.java:133)
   at freemarker.core.Environment.visit(Environment.java:261)
   at freemarker.core.UnifiedCall.accept(UnifiedCall.java:126)
   at freemarker.core.Environment.visit(Environment.java:208)
   at freemarker.core.MixedContent.accept(MixedContent.java:92)
   at freemarker.core.Environment.visit(Environment.java:208)
   at freemarker.core.IteratorBlock$Context.runLoop(IteratorBlock.java:179)
   at freemarker.core.Environment.visit(Environment.java:415)
   at freemarker.core.IteratorBlock.accept(IteratorBlock.java:102)
   at freemarker.core.Environment.visit(Environment.java:208)
   at freemarker.core.MixedContent.accept(MixedContent.java:92)
   at freemarker.core.Environment.visit(Environment.java:208)
   at freemarker.core.Macro$Context.runMacro(Macro.java:164)
   at freemarker.core.Environment.visit(Environment.java:601)
   at freemarker.core.UnifiedCall.accept(UnifiedCall.java:106)
   at freemarker.core.Environment.visit(Environment.java:208)
   at freemarker.core.MixedContent.accept(MixedContent.java:92)
   at freemarker.core.Environment.visit(Environment.java:208)
   at freemarker.core.ConditionalBlock.accept(ConditionalBlock.java:79)
   at freemarker.core.Environment.visit(Environment.java:208)
   at freemarker.core.MixedContent.accept(MixedContent.java:92)
   at freemarker.core.Environment.visit(Environment.java:208)
   at freemarker.core.ConditionalBlock.accept(ConditionalBlock.java:79)
   at freemarker.core.Environment.visit(Environment.java:208)
   at freemarker.core.MixedContent.accept(MixedContent.java:92)
   at freemarker.core.Environment.visit(Environment.java:208)
   at freemarker.core.Environment.process(Environment.java:188)
   at freemarker.template.Template.process(Template.java:237)
   at org.alfresco.web.scripts.PresentationTemplateProcessor.process(PresentationTemplateProcessor.java:146)
   at org.alfresco.web.scripts.FreemarkerProcessor.executeBody(FreemarkerProcessor.java:240)
   at org.alfresco.web.framework.render.AbstractProcessor.execute(AbstractProcessor.java:85)
   at org.alfresco.web.framework.render.RenderHelper.processTemplate(RenderHelper.java:376)
   at org.alfresco.web.framework.render.bean.TemplateInstanceRenderer.body(TemplateInstanceRenderer.java:135)
   at org.alfresco.web.framework.render.AbstractRenderer.render(AbstractRenderer.java:105)
   at org.alfresco.web.framework.render.bean.PageRenderer.body(PageRenderer.java:81)
   at org.alfresco.web.framework.render.AbstractRenderer.render(AbstractRenderer.java:105)
   at org.alfresco.web.framework.render.RenderUtil.startPageRenderer(RenderUtil.java:144)
   at org.alfresco.web.framework.render.RenderUtil.renderPage(RenderUtil.java:117)
   at org.alfresco.web.framework.render.PresentationUtil.renderPage(PresentationUtil.java:85)
   at org.alfresco.web.site.servlet.DispatcherServlet.dispatchPage(DispatcherServlet.java:459)
   at org.alfresco.web.site.servlet.DispatcherServlet.dispatch(DispatcherServlet.java:336)
   at org.alfresco.web.site.servlet.DispatcherServlet.service(DispatcherServlet.java:153)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
   at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
   at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
   at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
   at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
   at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
   at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
   at java.lang.Thread.run(Thread.java:595)
Caused by: org.alfresco.web.site.exception.TagExecutionException: Unable to process tag: org.alfresco.web.site.taglib.RegionTag@1c4f6ba
   at org.alfresco.tools.TagUtil.execute(TagUtil.java:172)
   at org.alfresco.tools.TagUtil.execute(TagUtil.java:78)
   at org.alfresco.web.scripts.FreemarkerTagSupportDirective.executeTag(FreemarkerTagSupportDirective.java:89)
   at org.alfresco.web.scripts.RegionFreemarkerTagDirective.execute(RegionFreemarkerTagDirective.java:128)
   … 54 more
Caused by: javax.servlet.jsp.JspException: org.alfresco.error.AlfrescoRuntimeException: Unable to retrieve object: Global.4e9ae4b4fdterst of type: component
   at org.alfresco.web.site.taglib.RegionTag.doStartTag(RegionTag.java:118)
   at org.alfresco.tools.TagUtil.execute(TagUtil.java:142)
   … 57 more
Caused by: org.alfresco.error.AlfrescoRuntimeException: Unable to retrieve object: Global.4e9ae4b4fdterst of type: component
   at org.alfresco.web.framework.ModelObjectManager.getObject(ModelObjectManager.java:140)
   at org.alfresco.web.site.Model.getObject(Model.java:513)
   at org.alfresco.web.site.Model.getComponent(Model.java:102)
   at org.alfresco.web.site.Model.getComponent(Model.java:117)
   at org.alfresco.web.framework.render.RenderUtil.getComponentBoundToRegion(RenderUtil.java:764)
   at org.alfresco.web.framework.render.RenderUtil.startRegionRenderer(RenderUtil.java:254)
   at org.alfresco.web.framework.render.RenderUtil.renderRegion(RenderUtil.java:213)
   at org.alfresco.web.framework.render.PresentationUtil.renderRegion(PresentationUtil.java:124)
   at org.alfresco.web.site.taglib.RegionTag.doStartTag(RegionTag.java:109)
   … 58 more
Caused by: org.alfresco.web.framework.exception.ModelObjectPersisterException: Error loading object id: Global.4e9ae4b4fdterst from persister id: RemoteStore_alfresco/site-data/components_component
   at org.alfresco.web.framework.MultiModelObjectPersister.getObject(MultiModelObjectPersister.java:110)
   at org.alfresco.web.framework.ModelObjectManager.getObject(ModelObjectManager.java:136)
   … 66 more
Caused by: org.alfresco.web.framework.exception.ModelObjectPersisterException: Failure to load model object for path: Global.4e9ae4b4fdterst.xml
   at org.alfresco.web.framework.StoreModelObjectPersister.getObjectByPath(StoreModelObjectPersister.java:170)
   at org.alfresco.web.framework.StoreModelObjectPersister.getObject(StoreModelObjectPersister.java:108)
   at org.alfresco.web.framework.MultiModelObjectPersister.getObject(MultiModelObjectPersister.java:106)
   … 67 more
Caused by: java.io.IOException: Unable to retrieve document path: Global.4e9ae4b4fdterst.xml in remote store: alfresco due to error: Address already in use: connect
   at org.alfresco.web.scripts.RemoteStore.getDocumentResponse(RemoteStore.java:460)
   at org.alfresco.web.scripts.RemoteStore.getDocument(RemoteStore.java:443)
   at org.alfresco.web.framework.StoreModelObjectPersister.getObjectByPath(StoreModelObjectPersister.java:139)
   … 69 more
11:18:58,062 ERROR [org.alfresco.web.site.FrameworkHelper] A Page Rendering problem was handled
11:18:58,062 ERROR [org.alfresco.web.site.FrameworkHelper] Page Id: 0307475429
11:18:58,062 ERROR [org.alfresco.web.site.FrameworkHelper] Trace
org.alfresco.web.framework.exception.RendererExecutionException: FreemarkerProcessor failed to process template: /common/dynamic.ftl
   at org.alfresco.web.scripts.FreemarkerProcessor.executeBody(FreemarkerProcessor.java:244)
   at org.alfresco.web.framework.render.AbstractProcessor.execute(AbstractProcessor.java:85)
   at org.alfresco.web.framework.render.RenderHelper.processTemplate(RenderHelper.java:376)
   at org.alfresco.web.framework.render.bean.TemplateInstanceRenderer.body(TemplateInstanceRenderer.java:135)
   at org.alfresco.web.framework.render.AbstractRenderer.render(AbstractRenderer.java:105)
   at org.alfresco.web.framework.render.bean.PageRenderer.body(PageRenderer.java:81)
   at org.alfresco.web.framework.render.AbstractRenderer.render(AbstractRenderer.java:105)
   at org.alfresco.web.framework.render.RenderUtil.startPageRenderer(RenderUtil.java:144)
   at org.alfresco.web.framework.render.RenderUtil.renderPage(RenderUtil.java:117)
   at org.alfresco.web.framework.render.PresentationUtil.renderPage(PresentationUtil.java:85)
   at org.alfresco.web.site.servlet.DispatcherServlet.dispatchPage(DispatcherServlet.java:459)
   at org.alfresco.web.site.servlet.DispatcherServlet.dispatch(DispatcherServlet.java:336)
   at org.alfresco.web.site.servlet.DispatcherServlet.service(DispatcherServlet.java:153)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
   at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
   at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
   at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
   at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
   at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
   at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
   at java.lang.Thread.run(Thread.java:595)
Caused by: org.alfresco.web.scripts.WebScriptException: Failed to process template /common/dynamic.ftl
   at org.alfresco.web.scripts.PresentationTemplateProcessor.process(PresentationTemplateProcessor.java:150)
   at org.alfresco.web.scripts.FreemarkerProcessor.executeBody(FreemarkerProcessor.java:240)
   … 25 more
Caused by: freemarker.template.TemplateException: Unable to process tag and commit output
   at org.alfresco.web.scripts.RegionFreemarkerTagDirective.execute(RegionFreemarkerTagDirective.java:133)
   at freemarker.core.Environment.visit(Environment.java:261)
   at freemarker.core.UnifiedCall.accept(UnifiedCall.java:126)
   at freemarker.core.Environment.visit(Environment.java:208)
   at freemarker.core.MixedContent.accept(MixedContent.java:92)
   at freemarker.core.Environment.visit(Environment.java:208)
   at freemarker.core.IteratorBlock$Context.runLoop(IteratorBlock.java:179)
   at freemarker.core.Environment.visit(Environment.java:415)
   at freemarker.core.IteratorBlock.accept(IteratorBlock.java:102)
   at freemarker.core.Environment.visit(Environment.java:208)
   at freemarker.core.MixedContent.accept(MixedContent.java:92)
   at freemarker.core.Environment.visit(Environment.java:208)
   at freemarker.core.Macro$Context.runMacro(Macro.java:164)
   at freemarker.core.Environment.visit(Environment.java:601)
   at freemarker.core.UnifiedCall.accept(UnifiedCall.java:106)
   at freemarker.core.Environment.visit(Environment.java:208)
   at freemarker.core.MixedContent.accept(MixedContent.java:92)
   at freemarker.core.Environment.visit(Environment.java:208)
   at freemarker.core.ConditionalBlock.accept(ConditionalBlock.java:79)
   at freemarker.core.Environment.visit(Environment.java:208)
   at freemarker.core.MixedContent.accept(MixedContent.java:92)
   at freemarker.core.Environment.visit(Environment.java:208)
   at freemarker.core.ConditionalBlock.accept(ConditionalBlock.java:79)
   at freemarker.core.Environment.visit(Environment.java:208)
   at freemarker.core.MixedContent.accept(MixedContent.java:92)
   at freemarker.core.Environment.visit(Environment.java:208)
   at freemarker.core.Environment.process(Environment.java:188)
   at freemarker.template.Template.process(Template.java:237)
   at org.alfresco.web.scripts.PresentationTemplateProcessor.process(PresentationTemplateProcessor.java:146)
   … 26 more
Caused by: org.alfresco.web.site.exception.TagExecutionException: Unable to process tag: org.alfresco.web.site.taglib.RegionTag@1c4f6ba
   at org.alfresco.tools.TagUtil.execute(TagUtil.java:172)
   at org.alfresco.tools.TagUtil.execute(TagUtil.java:78)
   at org.alfresco.web.scripts.FreemarkerTagSupportDirective.executeTag(FreemarkerTagSupportDirective.java:89)
   at org.alfresco.web.scripts.RegionFreemarkerTagDirective.execute(RegionFreemarkerTagDirective.java:128)
   … 54 more
Caused by: javax.servlet.jsp.JspException: org.alfresco.error.AlfrescoRuntimeException: Unable to retrieve object: Global.4e9ae4b4fdterst of type: component
   at org.alfresco.web.site.taglib.RegionTag.doStartTag(RegionTag.java:118)
   at org.alfresco.tools.TagUtil.execute(TagUtil.java:142)
   … 57 more
Caused by: org.alfresco.error.AlfrescoRuntimeException: Unable to retrieve object: Global.4e9ae4b4fdterst of type: component
   at org.alfresco.web.framework.ModelObjectManager.getObject(ModelObjectManager.java:140)
   at org.alfresco.web.site.Model.getObject(Model.java:513)
   at org.alfresco.web.site.Model.getComponent(Model.java:102)
   at org.alfresco.web.site.Model.getComponent(Model.java:117)
   at org.alfresco.web.framework.render.RenderUtil.getComponentBoundToRegion(RenderUtil.java:764)
   at org.alfresco.web.framework.render.RenderUtil.startRegionRenderer(RenderUtil.java:254)
   at org.alfresco.web.framework.render.RenderUtil.renderRegion(RenderUtil.java:213)
   at org.alfresco.web.framework.render.PresentationUtil.renderRegion(PresentationUtil.java:124)
   at org.alfresco.web.site.taglib.RegionTag.doStartTag(RegionTag.java:109)
   … 58 more
Caused by: org.alfresco.web.framework.exception.ModelObjectPersisterException: Error loading object id: Global.4e9ae4b4fdterst from persister id: RemoteStore_alfresco/site-data/components_component
   at org.alfresco.web.framework.MultiModelObjectPersister.getObject(MultiModelObjectPersister.java:110)
   at org.alfresco.web.framework.ModelObjectManager.getObject(ModelObjectManager.java:136)
   … 66 more
Caused by: org.alfresco.web.framework.exception.ModelObjectPersisterException: Failure to load model object for path: Global.4e9ae4b4fdterst.xml
   at org.alfresco.web.framework.StoreModelObjectPersister.getObjectByPath(StoreModelObjectPersister.java:170)
   at org.alfresco.web.framework.StoreModelObjectPersister.getObject(StoreModelObjectPersister.java:108)
   at org.alfresco.web.framework.MultiModelObjectPersister.getObject(MultiModelObjectPersister.java:106)
   … 67 more
Caused by: java.io.IOException: Unable to retrieve document path: Global.4e9ae4b4fdterst.xml in remote store: alfresco due to error: Address already in use: connect
   at org.alfresco.web.scripts.RemoteStore.getDocumentResponse(RemoteStore.java:460)
   at org.alfresco.web.scripts.RemoteStore.getDocument(RemoteStore.java:443)
   at org.alfresco.web.framework.StoreModelObjectPersister.getObjectByPath(StoreModelObjectPersister.java:139)
   … 69 more
11:19:10,734 INFO  [org.alfresco.web.scripts.AbstractRuntime] Caught exception & redirecting to status template: Unable to retrieve object: 0307475429 of type: page


please help me to solve the issue.

Thanks in advance..
:?

Outcomes