AnsweredAssumed Answered

Errot while creating a custom components

Question asked by prabhakaran on Jun 8, 2009
Hi All,

Am new to studio, my requirement is to create a header component, I have created a component and it works fine in first time. When i changed or edit the page and refresh the browser it shows the following exception please help me to create the custome component… Thanks in advance………


FreemarkerProcessor failed to process template: null
   at org.apache.jsp.core.error_002dviewer_jsp._jspService(error_002dviewer_jsp.java:122)
   at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
   at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
   at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
   at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
   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.ApplicationDispatcher.invoke(ApplicationDispatcher.java:630)
   at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:535)
   at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:472)
   at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:968)
   at org.apache.jsp.core.page_002derror_jsp._jspService(page_002derror_jsp.java:75)
   at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
   at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
   at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
   at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
   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.ApplicationDispatcher.invoke(ApplicationDispatcher.java:630)
   at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:535)
   at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:472)
   at org.alfresco.web.framework.render.bean.JSPProcessor.doInclude(JSPProcessor.java:145)
   at org.alfresco.web.framework.render.bean.JSPProcessor.executeBody(JSPProcessor.java:122)
   at org.alfresco.web.framework.render.RenderUtil.renderErrorHandlerPage(RenderUtil.java:817)
   at org.alfresco.web.framework.render.PresentationUtil.handlePageRenderProblem(PresentationUtil.java:222)
   at org.alfresco.web.framework.render.PresentationUtil.renderPage(PresentationUtil.java:89)
   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.framework.exception.ComponentRendererExecutionException: Unable to render component: Global.32ce763494AboutPanel
   at org.alfresco.web.framework.render.bean.ComponentRenderer.header(ComponentRenderer.java:85)
   at org.alfresco.web.framework.render.AbstractRenderer.render(AbstractRenderer.java:113)
   at org.alfresco.web.framework.render.RenderUtil.startComponentRenderer(RenderUtil.java:417)
   at org.alfresco.web.framework.render.RenderUtil.renderComponent(RenderUtil.java:391)
   at org.alfresco.web.framework.render.RenderUtil.renderComponent(RenderUtil.java:365)
   at org.alfresco.web.framework.render.bean.TemplateInstanceRenderer.header(TemplateInstanceRenderer.java:106)
   at org.alfresco.web.framework.render.RenderUtil.renderTemplateHeaderAsString(RenderUtil.java:916)
   at org.alfresco.web.scripts.ProcessorModelHelper.populateTemplateModel(ProcessorModelHelper.java:317)
   at org.alfresco.web.scripts.FreemarkerProcessor.executeBody(FreemarkerProcessor.java:217)
   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)
   … 16 more
Caused by: java.lang.NullPointerException
   at org.alfresco.web.framework.render.RenderHelper.processComponent(RenderHelper.java:286)
   at org.alfresco.web.framework.render.RenderUtil.renderRawComponent(RenderUtil.java:451)
   at org.alfresco.web.framework.render.RenderUtil.renderRawComponent(RenderUtil.java:434)
   at org.alfresco.web.framework.render.bean.ComponentRenderer.header(ComponentRenderer.java:81)
   … 33 more

Caused By…
org.alfresco.web.framework.exception.ComponentRendererExecutionException: Unable to render component: Global.32ce763494AboutPanel
   at org.alfresco.web.framework.render.bean.ComponentRenderer.header(ComponentRenderer.java:85)
   at org.alfresco.web.framework.render.AbstractRenderer.render(AbstractRenderer.java:113)
   at org.alfresco.web.framework.render.RenderUtil.startComponentRenderer(RenderUtil.java:417)
   at org.alfresco.web.framework.render.RenderUtil.renderComponent(RenderUtil.java:391)
   at org.alfresco.web.framework.render.RenderUtil.renderComponent(RenderUtil.java:365)
   at org.alfresco.web.framework.render.bean.TemplateInstanceRenderer.header(TemplateInstanceRenderer.java:106)
   at org.alfresco.web.framework.render.RenderUtil.renderTemplateHeaderAsString(RenderUtil.java:916)
   at org.alfresco.web.scripts.ProcessorModelHelper.populateTemplateModel(ProcessorModelHelper.java:317)
   at org.alfresco.web.scripts.FreemarkerProcessor.executeBody(FreemarkerProcessor.java:217)
   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: java.lang.NullPointerException
   at org.alfresco.web.framework.render.RenderHelper.processComponent(RenderHelper.java:286)
   at org.alfresco.web.framework.render.RenderUtil.renderRawComponent(RenderUtil.java:451)
   at org.alfresco.web.framework.render.RenderUtil.renderRawComponent(RenderUtil.java:434)
   at org.alfresco.web.framework.render.bean.ComponentRenderer.header(ComponentRenderer.java:81)
   … 33 more

Caused By…
java.lang.NullPointerException
   at org.alfresco.web.framework.render.RenderHelper.processComponent(RenderHelper.java:286)
   at org.alfresco.web.framework.render.RenderUtil.renderRawComponent(RenderUtil.java:451)
   at org.alfresco.web.framework.render.RenderUtil.renderRawComponent(RenderUtil.java:434)
   at org.alfresco.web.framework.render.bean.ComponentRenderer.header(ComponentRenderer.java:81)
   at org.alfresco.web.framework.render.AbstractRenderer.render(AbstractRenderer.java:113)
   at org.alfresco.web.framework.render.RenderUtil.startComponentRenderer(RenderUtil.java:417)
   at org.alfresco.web.framework.render.RenderUtil.renderComponent(RenderUtil.java:391)
   at org.alfresco.web.framework.render.RenderUtil.renderComponent(RenderUtil.java:365)
   at org.alfresco.web.framework.render.bean.TemplateInstanceRenderer.header(TemplateInstanceRenderer.java:106)
   at org.alfresco.web.framework.render.RenderUtil.renderTemplateHeaderAsString(RenderUtil.java:916)
   at org.alfresco.web.scripts.ProcessorModelHelper.populateTemplateModel(ProcessorModelHelper.java:317)
   at org.alfresco.web.scripts.FreemarkerProcessor.executeBody(FreemarkerProcessor.java:217)
   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)

Outcomes