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

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:

Error in
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:
	at org.apache.jackrabbit.core.WorkspaceImpl.clone(WorkspaceImpl.java:579)

Error in

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,
> 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.

View raw message