jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jukka Zitting (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (JCR-2298) NPE in EventStateCollection
Date Mon, 08 Nov 2010 22:40:25 GMT

     [ https://issues.apache.org/jira/browse/JCR-2298?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Jukka Zitting resolved JCR-2298.
--------------------------------

       Resolution: Fixed
    Fix Version/s: 2.2.0
         Assignee: Jukka Zitting

Resolving as fixed based on the above partial solution. If we need a more complete solution,
we can do that in a separate followup issue.

> NPE in EventStateCollection
> ---------------------------
>
>                 Key: JCR-2298
>                 URL: https://issues.apache.org/jira/browse/JCR-2298
>             Project: Jackrabbit Content Repository
>          Issue Type: Bug
>          Components: jackrabbit-core, transactions, versioning
>    Affects Versions: 1.6.0
>            Reporter: quipere
>            Assignee: Jukka Zitting
>             Fix For: 2.2.0
>
>
> 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