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] Updated: (JCR-2298) NPE in EventStateCollection
Date Mon, 14 Dec 2009 15:06:18 GMT

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

Jukka Zitting updated JCR-2298:
-------------------------------

    Component/s: jackrabbit-core
        Summary: NPE in EventStateCollection  (was: NPE in EventStateCollection when removing
version and restoring version containing a versionlabel within transaction.)

This seems like a more generic problem, as we've seen this problem also in a normal save()
call with Jackrabbit 1.4.x:

java.lang.NullPointerException
	at org.apache.jackrabbit.core.observation.EventStateCollection.getNodeType(EventStateCollection.java:476)
	at org.apache.jackrabbit.core.observation.EventStateCollection.createEventStates(EventStateCollection.java:179)
	at org.apache.jackrabbit.core.state.SharedItemStateManager$Update.begin(SharedItemStateManager.java:672)
	at org.apache.jackrabbit.core.state.SharedItemStateManager.beginUpdate(SharedItemStateManager.java:843)
	at org.apache.jackrabbit.core.state.SharedItemStateManager.update(SharedItemStateManager.java:873)
	at org.apache.jackrabbit.core.state.LocalItemStateManager.update(LocalItemStateManager.java:334)
	at org.apache.jackrabbit.core.state.XAItemStateManager.update(XAItemStateManager.java:337)
	at org.apache.jackrabbit.core.state.LocalItemStateManager.update(LocalItemStateManager.java:310)
	at org.apache.jackrabbit.core.state.SessionItemStateManager.update(SessionItemStateManager.java:317)
	at org.apache.jackrabbit.core.ItemImpl.save(ItemImpl.java:1251)


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