NPE during commit
-----------------

                 Key: JCR-2239
                 URL: https://issues.apache.org/jira/browse/JCR-2239
             Project: Jackrabbit Content Repository
          Issue Type: Bug
          Components: jackrabbit-core
    Affects Versions: 1.5.7
         Environment: Spring Modules 0.9
            Reporter: Yoav Landman
            Priority: Critical


This seems to be a similar issue to JCR-2168. This time, it is the ItemManager 
that is registered on SessionItemStateManager before its construction 
completed, resulting in the following NPE. Once this happens, all transactions 
are frozen (IIRC, DefaultISMLocking#acquireWriteLock is blocked, but I lost the 
original thread-dump).

Caused by: java.lang.NullPointerException: null
at org.apache.jackrabbit.core.ItemManager.retrieveItem(ItemManager.java:743) 
[jackrabbit-core-1.5.7.jar:na]
at org.apache.jackrabbit.core.ItemManager.stateCreated(ItemManager.java:927) 
[jackrabbit-core-1.5.7.jar:na]
at 
org.apache.jackrabbit.core.state.StateChangeDispatcher.notifyStateCreated(StateChangeDispatcher.java:96)
 [jackrabbit-core-1.5.7.jar:na]
at 
org.apache.jackrabbit.core.state.SessionItemStateManager.stateCreated(SessionItemStateManager.java:812)
 [jackrabbit-core-1.5.7.jar:na]
at 
org.apache.jackrabbit.core.state.StateChangeDispatcher.notifyStateCreated(StateChangeDispatcher.java:96)
 [jackrabbit-core-1.5.7.jar:na]
at 
org.apache.jackrabbit.core.state.LocalItemStateManager.stateCreated(LocalItemStateManager.java:428)
 [jackrabbit-core-1.5.7.jar:na]
at 
org.apache.jackrabbit.core.state.StateChangeDispatcher.notifyStateCreated(StateChangeDispatcher.java:96)
 [jackrabbit-core-1.5.7.jar:na]
at 
org.apache.jackrabbit.core.state.SharedItemStateManager.stateCreated(SharedItemStateManager.java:390)
 [jackrabbit-core-1.5.7.jar:na]
at 
org.apache.jackrabbit.core.state.ItemState.notifyStateCreated(ItemState.java:235)
 [jackrabbit-core-1.5.7.jar:na]
at org.apache.jackrabbit.core.state.ChangeLog.persisted(ChangeLog.java:310) 
[jackrabbit-core-1.5.7.jar:na]
at 
org.apache.jackrabbit.core.state.SharedItemStateManager$Update.end(SharedItemStateManager.java:739)
 [jackrabbit-core-1.5.7.jar:na]
at 
org.apache.jackrabbit.core.state.XAItemStateManager.commit(XAItemStateManager.java:183)
 [jackrabbit-core-1.5.7.jar:na]
at 
org.apache.jackrabbit.core.TransactionContext.commit(TransactionContext.java:206)
 [jackrabbit-core-1.5.7.jar:na]
at org.apache.jackrabbit.core.XASessionImpl.commit(XASessionImpl.java:339) 
[jackrabbit-core-1.5.7.jar:na]
at 
org.springframework.extensions.jcr.jackrabbit.support.JackRabbitUserTransaction.commit(JackRabbitUserTransaction.java:95)
 [se-jcr-0.9.jar:na]
at 
org.springframework.extensions.jcr.jackrabbit.LocalTransactionManager.doCommit(LocalTransactionManager.java:189)
 [se-jcr-0.9.jar:na]
... 13 common frames omitted

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

Reply via email to