jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From SalmasCM <sal...@criticalmass.com>
Subject Re: Urgent issue with deleting cloned nodes
Date Thu, 23 Apr 2009 20:59:46 GMT

When I import XML and remove and re add a cloned node this make Lucene
indexes get corrupted. Is it possible to programmatically force Lucene to
reindex? 

I reload some of my nodes several times from an app running in WebLogic. I
do not delete the lucene index for the app I get:

RepositoryException 
Error in
com.ashland.valvoline.ui.util.JCRUtilJCRUtil:cloneWorkspace:RepositoryException 
internal error: failed to retrieve state of
1107d34f-1367-4490-9d16-85d20c9390e7: 1107d34f-1367-4490-9d16-85d20c9390e7
javax.jcr.RepositoryException: internal error: failed to retrieve state of
1107d34f-1367-4490-9d16-85d20c9390e7: 1107d34f-1367-4490-9d16-85d20c9390e7:
1107d34f-1367-4490-9d16-85d20c9390e7
	at
org.apache.jackrabbit.core.BatchedItemOperations.checkAddNode(BatchedItemOperations.java:779)
	at
org.apache.jackrabbit.core.BatchedItemOperations.copy(BatchedItemOperations.java:436)
	at
org.apache.jackrabbit.core.WorkspaceImpl.internalCopy(WorkspaceImpl.java:393)
	at org.apache.jackrabbit.core.WorkspaceImpl.clone(WorkspaceImpl.java:579)

Error in
com.ashland.valvoline.ui.util.JCRUtilJCRUtil:cloneWorkspace:ConstraintViolationException 

In additional when I load and dump this data several times I get 
/testimonials: mandatory property {http://www.jcp.org/jcr/1.0}primaryType
does not exist




SalmasCM wrote:
> 
> We import our data using XML files. 
> topNode.remove(); //remove the top node in the XML file.
> session.importXML("/", stream,
> ImportUUIDBehavior.IMPORT_UUID_COLLISION_REMOVE_EXISTING);
> 
> After the import I clone the node
> 
> toSession.getWorkspace().copy(wsFromName, path, path);
> 
> Each file imports a section of the site. Sometimes a section may need to
> be reloaded. I then need to delete the node from both workspaces and call
> the import code again and I get
> 
> javax.jcr.ItemNotFoundException: cc3b54f9-9283-4479-b60f-d77b264c1aa3
> 
> However, if I don't delete the node prior to the import then the data gets
> imported twice and I get topNode and topNode[1] in my database.
> 
> How can I delete a cloned node across both workspaces or do the XML import
> and have it replace the top node instead of appending a new one?
> 

-- 
View this message in context: http://www.nabble.com/Urgent-issue-with-deleting-clined-nodes-tp23197339p23202543.html
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.


Mime
View raw message