jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "quipere (JIRA)" <j...@apache.org>
Subject [jira] Created: (JCR-2298) NPE in EventStateCollection when removing version and restoring version containing a versionlabel within transaction.
Date Mon, 07 Sep 2009 13:20:57 GMT
NPE in EventStateCollection when removing version and restoring version containing a versionlabel
within transaction.
---------------------------------------------------------------------------------------------------------------------

                 Key: JCR-2298
                 URL: https://issues.apache.org/jira/browse/JCR-2298
             Project: Jackrabbit Content Repository
          Issue Type: Bug
          Components: transactions, versioning
    Affects Versions: 1.6.0
            Reporter: quipere


When removing a Version with a versionlabel and restoring an other Version from the same containing
history within 1 transaction, a NPE occured. When debugging I noticed the method createEventStates
was entered with an UUID from a versionLabel. The ChangeLog.get(id) returned null.

Caused by: java.lang.NullPointerException
	at org.apache.jackrabbit.core.observation.EventStateCollection.getNodeType(EventStateCollection.java:614)
	at org.apache.jackrabbit.core.observation.EventStateCollection.createEventStates(EventStateCollection.java:381)
	at org.apache.jackrabbit.core.state.SharedItemStateManager$Update.begin(SharedItemStateManager.java:697)
	at org.apache.jackrabbit.core.state.SharedItemStateManager.beginUpdate(SharedItemStateManager.java:1085)
	at org.apache.jackrabbit.core.state.XAItemStateManager.prepare(XAItemStateManager.java:163)
	at org.apache.jackrabbit.core.version.XAVersionManager.prepare(XAVersionManager.java:509)
	at org.apache.jackrabbit.core.TransactionContext.prepare(TransactionContext.java:154)
	at org.apache.jackrabbit.core.XASessionImpl.prepare(XASessionImpl.java:331)
	at org.springmodules.jcr.jackrabbit.support.JackRabbitUserTransaction.commit(JackRabbitUserTransaction.java:100)
	at org.springmodules.jcr.jackrabbit.LocalTransactionManager.doCommit(LocalTransactionManager.java:192)

-- 
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