cancel
Showing results for 
Search instead for 
Did you mean: 

WCM example crash with Null Pointer Exeption

smg
Champ in-the-making
Champ in-the-making
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
13 REPLIES 13

fgruyer
Champ in-the-making
Champ in-the-making
I have exact same behavior, except if I change langage at login time: In french langage, I can unfold the forms. In english, I encounter the very same NPE in this same utilization context.

smg
Champ in-the-making
Champ in-the-making
nice and fast answer. can you elaborate a little more?

After the initial hangs I changed my 1st system (win 2003) to englis US but still had problems.

how is your setup in french?
thanks

sergio

fgruyer
Champ in-the-making
Champ in-the-making
this post ifs not intented to suggest you a siolution, but to help future diagnosis…

At logon time, under alfresco welcome page, you have 2 con trols 1 for user name, 1 for password. A last control is a drop down list of supported "langages" (english, french, etc…). If you select french option instead of english NPE does not happens, and web forms unfold as expected.

The problem is: later in the content edition process, (step 2) , I cannot obtain any edit form to enter content.

Maybe release 2.0 has some installation trick we missed? (I had another 1.4 release alfresco installed, but I installed 2.0 separately…..

smg
Champ in-the-making
Champ in-the-making
thanks, i confirm your experience.
logging as admin with italian pull down I don't get the NPE anymore.
Sadly I expect the subsequent problems you are facing and that i found following your posts.

Wonder if Alfresco guys can give us Europeans some clue on what is happening.
thanks
sergio

smg
Champ in-the-making
Champ in-the-making
actually, after logging with the italian language, i was able to complete successfully the example, including generation and publication of content.

waiting to understand why this problem came up from Alfresco people.
should i raise a request somewhere or are you taking care of it as user feedback?
bye

sergio

great work anyway!

pcuvecle
Champ in-the-making
Champ in-the-making
I also confirm the same behavior, works in french but not in English  :?

arielb
Champ in-the-making
Champ in-the-making
can one of you please turn on logging for org.alfresco.web.bean.wcm and org.alfresco.web.forms and see if it provides any further detail?  (i've never seen this error occur with 2.0)

alexgacon
Champ in-the-making
Champ in-the-making
Hello,

I have the same bug with the example when I try to access to the web forms in my SandBox.

I activated the org.alfresco.web.forms and I got the following messages:

17:38:52,269 DEBUG [org.alfresco.web.forms.FormsService] running query [ASPECT:"{http://www.alfresco.org/model/wcmappmodel/1.0}form" AND @\{http\://www.alfresco.org/model/content/1.0\}name:'company-footer"]
17:38:52,269 DEBUG [org.alfresco.web.forms.FormsService] unable to find template type company-footer

I hope this will help you.

Alexandre

PS : in french, there is no error but I can not fill the company-footer form.

kvc
Champ in-the-making
Champ in-the-making
There is a filed issue on this in our JIRA:

http://issues.alfresco.com/browse/WCM-448

The problem seems to be associated with a timed out user session.  The issue should be unrelated to which language GUI interface you are choosing.   If you are in the English language GUI though, see this error, click logout, select the French language GUI, login, and try again - you'll see the Mod List expand.  It's irrelevant whether you select one language interface or the other - it's because you re-established a session.

We'll look into a fix.  We should bounce you to the login screen.


Kevin