jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexander Klimetschek <aklim...@day.com>
Subject Re: Help on versioning
Date Thu, 17 Sep 2009 07:51:15 GMT
On Thu, Sep 17, 2009 at 07:34, freak182 <eman.nollase@gmail.com> wrote:
>  Node childNode = rootNode.getNode(baseVersion);
>  childNode.checkout();
>  childNode.setProperty(JcrConstants.JCR_FROZENNODE, fileStream);
>
> javax.jcr.nodetype.ConstraintViolationException: no matching property
> definition found for {http://www.jcp.org/jcr/1.0}frozenNode
>        at
> org.apache.jackrabbit.core.nodetype.EffectiveNodeType.getApplicablePropertyDef(EffectiveNodeType.java:768)

It's called jcr:frozenNode because it's meant to be a node and not a
property... Anyway, this node is created as the subnode of the Version
node after checkin, ie. if you retrieve a version and want to access
the original node, you have to get the jcr:frozenNode child of the
version node. This is because the version needs its own metadata which
is stored directly on the version node.

This node will always be read-only.

Regards,
Alex

-- 
Alexander Klimetschek
alexander.klimetschek@day.com

Mime
View raw message