cancel
Showing results for 
Search instead for 
Did you mean: 

Delete File Error

fracat71
Champ on-the-rise
Champ on-the-rise
Hi all,
I'm using

- ALFRESCO: Community Current version 3.2.0 (r2 2440) schema 3300
- OS: Windows xp 32 bit , RAM 2,5G , Intel Core Duo 2,1 GHz
- AS: Tomcat 6.0.18
- JAVA: Jdk 6.0_11. Heap 986,125MB
- DB :Mysql 5.1.35 Communit


When i try to delete a file from list it is ok.
When i try to delete a file from "view details" i have this error:

javax.faces.FacesException: java.lang.NullPointerException
caused by:
org.apache.jasper.JasperException: java.lang.NullPointerException
caused by:
java.lang.NullPointerException

Probably it is a wrong return page.
What i have to change?

Regards
20 REPLIES 20

savic_prvoslav
Champ on-the-rise
Champ on-the-rise
org.alfresco.web.bean.content.DocumentDetailsDialo
is this your class? if not put yours hire.

if yes: check what is null like

if (something == null) system.out.println("something is null"); to see what is cousing the error.

nhsyim
Champ in-the-making
Champ in-the-making
Hi savic,

yes, my class is  org.alfresco.web.bean.content.DocumentDetailsDialog

I have updated this class as follow:


   public Node getNode()
   {
      if(browseBean==null)
      {
         browseBean =(BrowseBean) FacesHelper.getManagedBean(FacesContext.getCurrentInstance(), "BrowseBean");
      }
     
      Node node = browseBean.getDocument();
     
      if(node == null)
      {
        System.out.println("node == null"); 
      }
     
      return node;
   }

and the result is a node == null, so when the method BaseDetailsBean.getName called from DocumentDetailsDialog.getContainerTitle(DocumentDetailsDialog.java:1045) causes NullPointerException.


Caused by: java.lang.NullPointerException
at org.alfresco.web.bean.BaseDetailsBean.getName(BaseDetailsBean.java:198)
at org.alfresco.web.bean.content.DocumentDetailsDialog.getContainerTitle(DocumentDetailsDialog.java:1045)
at org.alfresco.web.bean.dialog.DialogManager.getTitle(DialogManager.java:208)
at org.apache.jsp.jsp.dialog.container_jsp._jspService(container_jsp.java:182)
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)

savic_prvoslav
Champ on-the-rise
Champ on-the-rise
Just to ask , can you drop repository?
If yes just drop it and it will probably go on.

nhsyim
Champ in-the-making
Champ in-the-making
I've drop alf_data also recreate database on my devel env but the same error still happen

I'm very thankful if there any other suggestion for this problem.

savic_prvoslav
Champ on-the-rise
Champ on-the-rise
have yo changed the faces-config-*.xml files ?

nhsyim
Champ in-the-making
Champ in-the-making
I have not change  faces-config-*.xml files.

Thank you.

fracat71
Champ on-the-rise
Champ on-the-rise
Hi all,
any news regarding this post?

Regards

savic_prvoslav
Champ on-the-rise
Champ on-the-rise
Update to 3.3 and no problem my opinion

fracat71
Champ on-the-rise
Champ on-the-rise
Hi all,
i cannot use 3.3g: CIFS is not working (see http://forums.alfresco.com/en/viewtopic.php?f=9&t=26890 ), JavascriptDebugger is not working (see http://forums.alfresco.com/en/viewtopic.php?f=12&t=27765 ). How can i solve this problem?

savic_prvoslav
Champ on-the-rise
Champ on-the-rise
well in order to override some bean you need to change

have not change faces-config-*.xml files.
see hire for details :http://wiki.alfresco.com/wiki/Customising_The_Login_Page

when you finally override bean, check what is null in that class.