Hello,

I change it to:

  Node file = folder.addNode(name, "nt:file");
            file.addMixin(JcrConstants.MIX_VERSIONABLE);
            
            Node fileContent = file.addNode("jcr:content", "nt:resource");
            fileContent.addMixin(JcrConstants.MIX_REFERENCEABLE);

...same error i get.


Alexander Klimetschek wrote:
> 
> On Wed, Sep 16, 2009 at 12:46, freak182 <[email protected]> wrote:
>>            Node fileContent = file.addNode("jcr:content", "nt:resource");
>>            fileContent.addMixin(JcrConstants.MIX_VERSIONABLE);
>> ...
>> javax.jcr.UnsupportedRepositoryOperationException: Unable to perform a
>> versioning operation on a non versionable node: node
>> /photo/upload/test/Sangat_Island.jpg
> 
> From looking at the path, it looks very much like you make the
> jcr:content subnode versionable, but not the nt:file node
> (Sangat_Island.jpg).
> 
> Regards,
> Alex
> 
> -- 
> Alexander Klimetschek
> [email protected]
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Help-on-versioning-tp25469946p25470143.html
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.

Reply via email to