NPE in CachingHierarchyManager (missing synchronization in LRUEntry.remove)
---------------------------------------------------------------------------

         Key: JCR-161
         URL: http://issues.apache.org/jira/browse/JCR-161
     Project: Jackrabbit
        Type: Bug
    Reporter: fabrizio giustina
    Priority: Minor


stacktrace from jackrabbit rev. 191499 
http://svn.apache.org/viewcvs.cgi?rev=191499&view=rev

java.lang.NullPointerException
        at 
org.apache.jackrabbit.core.CachingHierarchyManager$LRUEntry.remove(CachingHierarchyManager.java:638)
        at 
org.apache.jackrabbit.core.CachingHierarchyManager$LRUEntry.touch(CachingHierarchyManager.java:657)
        at 
org.apache.jackrabbit.core.CachingHierarchyManager.resolvePath(CachingHierarchyManager.java:180)
        at org.apache.jackrabbit.core.ItemManager.getItem(ItemManager.java:341)
        at org.apache.jackrabbit.core.ItemImpl.getAncestor(ItemImpl.java:1469)


I found this error at least a couple of times in my logs, probably due to a 
missing synchronization in the LRUEntry.remove method.
Line 638 of cachingManager rev 191499:

public void remove() {
            if (previous != null) {
                previous.next = next;  // ----> NPE here
            }





-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to