AnsweredAssumed Answered

WCM example crash with Null Pointer Exeption

Question asked by smg on Mar 5, 2007
Latest reply on Jun 26, 2008 by brianathuge
Hi,
great work and very good platform to plan future work on.
But with 2.0 final i get stuck with an annoying NPE that i can't seem to solve. Please help me out if possible.

I've installed  2.0 final on 2 different systems and done ok the example from eval guide up to Creating New Web Content: Company Profiles on page 31. At that point when i try to Expand the list of Web Forms under the Admin sandbox I always get a NullPointerExeption with the following trace

12:31:57,225 ERROR [org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/alfresco].[jsp]] Servlet.service() for servlet jsp threw exception
java.lang.RuntimeException: java.lang.NullPointerException
   at org.alfresco.web.ui.wcm.component.UIUserSandboxes.encodeBegin(UIUserSandboxes.java:486)
   at javax.faces.webapp.UIComponentTag.encodeBegin(UIComponentTag.java:337)
   at javax.faces.webapp.UIComponentTag.doEndTag(UIComponentTag.java:250)
   at org.apache.jsp.jsp.wcm.browse_002dwebsite_jsp._jspx_meth_w_userSandboxes_0(browse_002dwebsite_jsp.java:1798)
   at org.apache.jsp.jsp.wcm.browse_002dwebsite_jsp._jspx_meth_a_panel_2(browse_002dwebsite_jsp.java:1772)
   at org.apache.jsp.jsp.wcm.browse_002dwebsite_jsp._jspService(browse_002dwebsite_jsp.java:684)
   at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
   at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:334)
   at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
   at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
   at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
   at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
   at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
   at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
   at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:415)
   at org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:234)
   at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:352)
   at javax.faces.webapp.FacesServlet.service(FacesServlet.java:106)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
   at org.alfresco.web.app.servlet.AuthenticationFilter.doFilter(AuthenticationFilter.java:81)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
   at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
   at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
   at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
   at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
   at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
   at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
   at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
   at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
   at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
   at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.NullPointerException
   at org.alfresco.web.bean.wcm.WebProject$FormWrapper.<init>(WebProject.java:78)
   at org.alfresco.web.bean.wcm.WebProject$FormWrapper.<init>(WebProject.java:69)
   at org.alfresco.web.bean.wcm.WebProject.getFormsImpl(WebProject.java:307)
   at org.alfresco.web.bean.wcm.WebProject.getForms(WebProject.java:224)
   at org.alfresco.web.ui.wcm.component.UIUserSandboxes.renderContentForms(UIUserSandboxes.java:818)
   at org.alfresco.web.ui.wcm.component.UIUserSandboxes.encodeBegin(UIUserSandboxes.java:461)
   … 38 more

Outcomes