jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Karakó Miklós <karako.mik...@ecmc.hu>
Subject restoreVersion and ItemStateException
Date Thu, 10 Apr 2008 12:26:34 GMT
hi,



Sometimes I got a mysterious ItemStateException when I try to restore a node's version with:



node.restore("1.1", false);



We use same-name-sibling and I (deep) lock the node before the restore call in a single thread
environment.

Could anyone explain why it is happened?



best regards,

Miki



javax.jcr.RepositoryException: failed to add property {http://www.jcp.org/jcr/1.0}created
to /Tartalom/Cikkek/cikk2/collection-element/binary-link: there's already a property state
instance with id af292d3e-f051-46d2-a5fc-50db9d992673/{http://www.jcp.org/jcr/1.0}created:
there's already a property state instance with id af292d3e-f051-46d2-a5fc-50db9d992673/{http://www.jcp.org/jcr/1.0}created

                at org.apache.jackrabbit.core.NodeImpl.createChildProperty(NodeImpl.java:480)

                at org.apache.jackrabbit.core.NodeImpl.getOrCreateProperty(NodeImpl.java:411)

                at org.apache.jackrabbit.core.NodeImpl.internalSetProperty(NodeImpl.java:1300)

                at org.apache.jackrabbit.core.NodeImpl.restoreFrozenState(NodeImpl.java:3899)

                at org.apache.jackrabbit.core.NodeImpl.restoreFrozenState(NodeImpl.java:3977)

                at org.apache.jackrabbit.core.NodeImpl.restoreFrozenState(NodeImpl.java:3977)

                at org.apache.jackrabbit.core.NodeImpl.internalRestore(NodeImpl.java:3842)

                at org.apache.jackrabbit.core.NodeImpl.internalRestore(NodeImpl.java:3803)

                at org.apache.jackrabbit.core.NodeImpl.restore(NodeImpl.java:3077)

                at hu.ecmc.felvi.editor.service.jcrservice.RepositoryServices.restoreVersion(RepositoryServices.java:1517)

...

Caused by: org.apache.jackrabbit.core.state.ItemStateException: there's already a property
state instance with id af292d3e-f051-46d2-a5fc-50db9d992673/{http://www.jcp.org/jcr/1.0}created

                at org.apache.jackrabbit.core.state.SessionItemStateManager.createTransientPropertyState(SessionItemStateManager.java:620)

                at org.apache.jackrabbit.core.NodeImpl.createChildProperty(NodeImpl.java:461)

                ... 49 more

org.apache.jackrabbit.core.state.ItemStateException: there's already a property state instance
with id af292d3e-f051-46d2-a5fc-50db9d992673/{http://www.jcp.org/jcr/1.0}created

                at org.apache.jackrabbit.core.state.SessionItemStateManager.createTransientPropertyState(SessionItemStateManager.java:620)

                at org.apache.jackrabbit.core.NodeImpl.createChildProperty(NodeImpl.java:461)

                at org.apache.jackrabbit.core.NodeImpl.getOrCreateProperty(NodeImpl.java:411)

                at org.apache.jackrabbit.core.NodeImpl.internalSetProperty(NodeImpl.java:1300)

                at org.apache.jackrabbit.core.NodeImpl.restoreFrozenState(NodeImpl.java:3899)

                at org.apache.jackrabbit.core.NodeImpl.restoreFrozenState(NodeImpl.java:3977)

                at org.apache.jackrabbit.core.NodeImpl.restoreFrozenState(NodeImpl.java:3977)

                at org.apache.jackrabbit.core.NodeImpl.internalRestore(NodeImpl.java:3842)

                at org.apache.jackrabbit.core.NodeImpl.internalRestore(NodeImpl.java:3803)

                at org.apache.jackrabbit.core.NodeImpl.restore(NodeImpl.java:3077)

                at hu.ecmc.felvi.editor.service.jcrservice.RepositoryServices.restoreVersion(RepositoryServices.java:1517)

                ...

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message