XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Duplicate
    • 1.5.7
    • None
    • jackrabbit-core
    • None
    • Spring Modules 0.9

    Description

      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

      Attachments

        1. commit-npe.patch
          3 kB
          Yoav Landman

        Issue Links

          Activity

            People

              Unassigned Unassigned
              yoav Yoav Landman
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: