jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Mueller (JIRA)" <j...@apache.org>
Subject [jira] Commented: (JCR-1985) NullPointerException in GarbageCollector.scan() if no DataStore configured
Date Wed, 18 Feb 2009 15:35:01 GMT

    [ https://issues.apache.org/jira/browse/JCR-1985?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12674657#action_12674657
] 

Thomas Mueller commented on JCR-1985:
-------------------------------------

I saw that one of the tests first calls session.createDataStoreGarbageCollector(), and then
gc.getDataStore() to check if the data store is configured. Existing applications could do
that as well, so it's probably better not to throw an exception or return null in createDataStoreGarbageCollector().

> NullPointerException in GarbageCollector.scan() if no DataStore configured
> --------------------------------------------------------------------------
>
>                 Key: JCR-1985
>                 URL: https://issues.apache.org/jira/browse/JCR-1985
>             Project: Jackrabbit Content Repository
>          Issue Type: Bug
>          Components: jackrabbit-core
>    Affects Versions: 1.5.2
>         Environment: Windows XP
>            Reporter: Jacco van Weert
>            Priority: Minor
>             Fix For: 1.6.0
>
>
> I am running the garbage collector in a separate thread every 5 minutes.
>             GarbageCollector gc = ((SessionImpl)mSession).createDataStoreGarbageCollector();
>             gc.scan();
>             gc.stopScan();
>             int du = gc.deleteUnused();
> When using Jackrabbit v1.5.2 I get sometimes a null pointer exception;
> java.lang.NullPointerException
>         at org.apache.jackrabbit.core.data.GarbageCollector.scan(GarbageCollector.java:153)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message