[quote]
There might be an issue also with the Tools module; We currently use version 
1.2, and I couldn't install 1.5, I guess it's incompatible with magnolia 4.5.7
[/quote]
Tools module 1.5 is compatible with Magnolia 5.x branch only.

[quote]
So, wherener I try to delete a node with the script provided: 
http://documentation.magnolia-cms.com/display/DOCS45/Repository+inconsistency , 
I get this error:

[code]MissingMethodException: No signature of method: static 
info.magnolia.tools.PersistenceManagerUtil.deleteNode() is applicable for 
argument types: (info.magnolia.cms.core.version.MgnlVersioningNodeWrapper, 
java.lang.Boolean, java.lang.Boolean) values: [node /inet/roxana-jcr-test, 
true, false]
Possible solutions: deleteNode(org.apache.jackrabbit.core.NodeImpl, boolean, 
boolean)[/code]
[/quote]
Try to unwrap the node you want to delete
[code]
import info.magnolia.jcr.util.NodeUtil;
import org.apache.jackrabbit.core.NodeImpl;
...
node = 
hm.getContentByUUID("be09e353-bd5c-45c2-be45-9324615720ca").getJCRNode(); // 
Change to get the appropriate node
while (!(node instanceof NodeImpl) {
  node = NodeUtil.unwrap(node);
}
PersistenceManagerUtil.deleteNode(node, true, false);
[/code]

HTH,
Jaroslav

-- 
Context is everything: 
http://forum.magnolia-cms.com/forum/thread.html?threadId=c8cdd855-e7a0-41b5-8ae0-cf9f889ae4a6


----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to