jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shane Preater (JIRA)" <j...@apache.org>
Subject [jira] Commented: (JCR-537) Failure to remove a versionable node
Date Wed, 18 Jul 2007 14:04:06 GMT

    [ https://issues.apache.org/jira/browse/JCR-537?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12513577
] 

Shane Preater commented on JCR-537:
-----------------------------------

I am also seeing this error when trying to remove the version mixin from a node.

> Failure to remove a versionable node
> ------------------------------------
>
>                 Key: JCR-537
>                 URL: https://issues.apache.org/jira/browse/JCR-537
>             Project: Jackrabbit
>          Issue Type: Bug
>          Components: versioning
>    Affects Versions: 1.1
>            Reporter: Florent Guillaume
>            Assignee: Tobias Bocanegra
>         Attachments: var.tgz
>
>
> This happens on current trunk.
> When running the following code on the attached jackrabbit repository,
> (sorry, Jython code, I trust the conversion to Java is trivial):
> from javax.jcr import SimpleCredentials
> from org.apache.jackrabbit.core import TransientRepository
> uuid = "83f6e473-3fe2-4584-9570-4e18a0cd6688"
> repoconf = "var/jackrabbit.xml"
> repopath = "var/jackrabbit"
> credentials = SimpleCredentials("username", "password")
> repository = TransientRepository(repoconf, repopath)
> session = repository.login(credentials, "default")
> root = session.getRootNode()
> node = session.getNodeByUUID(uuid)
> node.remove()
> root.save()
> I get the following error:
> org.apache.jackrabbit.core.state.NoSuchItemStateException: c147b847-8ba5-4fe9-a890-481586476510
>         at org.apache.jackrabbit.core.state.SharedItemStateManager.getNodeReferences(SharedItemStateManager.java:307)
>         at org.apache.jackrabbit.core.state.SharedItemStateManager.updateReferences(SharedItemStateManager.java:1046)
>         at org.apache.jackrabbit.core.state.SharedItemStateManager$Update.begin(SharedItemStateManager.java:484)
>         at org.apache.jackrabbit.core.state.SharedItemStateManager.beginUpdate(SharedItemStateManager.java:687)
>         at org.apache.jackrabbit.core.state.SharedItemStateManager.update(SharedItemStateManager.java:717)
>         at org.apache.jackrabbit.core.state.LocalItemStateManager.update(LocalItemStateManager.java:316)
>         at org.apache.jackrabbit.core.state.XAItemStateManager.update(XAItemStateManager.java:323)
>         at org.apache.jackrabbit.core.state.LocalItemStateManager.update(LocalItemStateManager.java:292)
>         at org.apache.jackrabbit.core.state.SessionItemStateManager.update(SessionItemStateManager.java:258)
>         at org.apache.jackrabbit.core.ItemImpl.save(ItemImpl.java:1209)
>         ...
> javax.jcr.RepositoryException: javax.jcr.RepositoryException: /: unable to update item.:
c147b847-8ba5-4fe9-a890-481586476510: c147b847-8ba5-4fe9-a890-481586476510
> The uuid I'm trying to delete is that of a document at path
>   /workspaces/ecm:children/subfolder/ecm:children/ghtgh
> The uuid mentioned in the error is the one of its version history.

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