jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hervé Agnoux <herve.agn...@diaam-informatique.com>
Subject NPE on scan
Date Thu, 09 Jul 2009 09:50:14 GMT
Hi,

When I do a scan, as tutorial says in 
http://wiki.apache.org/jackrabbit/DataStore, jackrabbit says to me :

java.lang.NullPointerException
        at 
org.apache.jackrabbit.core.data.GarbageCollector.scan(GarbageCollector.java:153)
        at com.Maintenance.main(Maintenance.java:103)

What's append ?

I use jackrabbit-core-1.5.5.

If I look svn source repository, 
http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-
core/src/main/java/org/apache/jackrabbit/core/data/GarbageCollector.java?revision=792437 
at line 153, I get :


    /** <--- HERE line 153 ??
     * Scan the repository. The garbage collector will iterate over all nodes 
in the repository
     * and update the last modified date. If all persistence managers 
implement the

My stupid code :

      GarbageCollector gc = sess.createDataStoreGarbageCollector();
      gc.scan(); // HERE line 103
      gc.stopScan();
      gc.deleteUnused();

Thanks for your help.


Mime
View raw message