cancel
Showing results for 
Search instead for 
Did you mean: 

error when adding file

vpoorboy
Champ in-the-making
Champ in-the-making
Hi,
I use 1.3GA, when I upload file to server, at the Modify metadata step, I receive the following error
avax.faces.FacesException: org.apache.jasper.JasperException

caused by:
org.apache.jasper.JasperException

caused by:
java.lang.NullPointerException

Ẩn Chi tiết

javax.faces.FacesException: org.apache.jasper.JasperException at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:425) 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.alfresco.web.app.servlet.AlfrescoFacesServlet.service(AlfrescoFacesServlet.java:49) 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:73) 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:868) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:663) 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: org.apache.jasper.JasperException at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:370) 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) … 21 more

Please help !
4 REPLIES 4

vpoorboy
Champ in-the-making
Champ in-the-making
Hi,
I found that my new view mode cause this problem, but my view mode has worked fine for 3,4 days.
I followed these steps to add a new view mode: http://forums.alfresco.com/viewtopic.php?t=1393&highlight=view+mode

In RichListRenderer.java, I add my class
public static class SimpleViewRenderer implements IRichListRenderer

This class was copied from details view mode, change the following line:
public static final String VIEWMODEID = "simple";

Is this enough ?
Thanks very much !

kevinr
Star Contributor
Star Contributor
Assuming your have registered the view in the config as the other forum article instructs, then yes it should work.

Thanks,

Kevin

vpoorboy
Champ in-the-making
Champ in-the-making
Yes, I find out that r.description is the problem when it's null (because I use it to replace r.name in the primary column). So I try to use r.name if it's null or empty. But I have no luck doing this.

<a:actionLink id="col21-act2" value="#{((r.description != null) && (r.description != '')) ? r.description : r.name}" href="#{r.url}" target="new" />

Alfresco's still error if r.description = null.
pls help.

vpoorboy
Champ in-the-making
Champ in-the-making
Oh, it's worked. Thanks u.