You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jackrabbit.apache.org by freak182 <em...@gmail.com> on 2009/09/30 09:54:39 UTC

Export/Import help

Hello,

I uploaded my file in the repository like this: photo/upload/test/coron.jpg
-> this is versionable. Now, I export my repository using exportSystemView
view like this:

 File file = new File(exportFile);
	    FileOutputStream out = new FileOutputStream(file);
	    contentSessionFacade.getDefaultSession().exportSystemView("/", out,
false, false);
...and it work fine. 

Now when i importXML

session.importXML("/", file,
ImportUUIDBehavior.IMPORT_UUID_COLLISION_REMOVE_EXISTING);
session.save();

 i got this error:

Caused by: javax.jcr.nodetype.ConstraintViolationException: Unable to
perform operation. Node is protected.
	at
org.apache.jackrabbit.core.ItemValidator.checkCondition(ItemValidator.java:293)
	at
org.apache.jackrabbit.core.ItemValidator.checkModify(ItemValidator.java:267)
	at
org.apache.jackrabbit.core.NodeImpl.internalAddChildNode(NodeImpl.java:799)

...how can i solve this?

-- 
View this message in context: http://www.nabble.com/Export-Import-help-tp25676527p25676527.html
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.