jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "fabrizio giustina (JIRA)" <j...@apache.org>
Subject [jira] Created: (JCR-161) NPE in CachingHierarchyManager (missing synchronization in LRUEntry.remove)
Date Tue, 05 Jul 2005 13:51:11 GMT
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

	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:
For more information on JIRA, see:

View raw message