You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jackrabbit.apache.org by SalmasCM <sa...@criticalmass.com> on 2009/04/23 15:51:55 UTC
Urgent issue with deleting clined nodes
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-tp23197339p23197339.html
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.
Re: Urgent issue with deleting clined nodes
Posted by SalmasCM <sa...@criticalmass.com>.
That makes sense. Thanks
Marcel Reutegger wrote:
>
> On Fri, Apr 24, 2009 at 05:45, SalmasCM <sa...@criticalmass.com> wrote:
>> javax.jcr.RepositoryException: Missing child node entry for node with id
>>
>> What do these mean and can I fix something to get rid of them?
>
> are you running jackrabbit in a cluster?
>
> if yes, then this is nothing serious. it just means that one cluster
> node tried to index a node that had just been deleted by another
> cluster node.
>
> regards
> marcel
>
>
--
View this message in context: http://www.nabble.com/Urgent-issue-with-deleting-clined-nodes-tp23197339p23217930.html
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.
Re: Urgent issue with deleting clined nodes
Posted by Marcel Reutegger <ma...@gmx.net>.
On Fri, Apr 24, 2009 at 05:45, SalmasCM <sa...@criticalmass.com> wrote:
> javax.jcr.RepositoryException: Missing child node entry for node with id
>
> What do these mean and can I fix something to get rid of them?
are you running jackrabbit in a cluster?
if yes, then this is nothing serious. it just means that one cluster
node tried to index a node that had just been deleted by another
cluster node.
regards
marcel
Re: Urgent issue with deleting clined nodes
Posted by SalmasCM <sa...@criticalmass.com>.
I spoke too soon. My problems are mostly solved.Things appear to be working
correctly. However, I get warnings like
javax.jcr.RepositoryException: Missing child node entry for node with id
What do these mean and can I fix something to get rid of them?
Thanks
SalmasCM wrote:
>
> My problem is solved. I needed to delete the node in the master workspace
> and then save that session and call update to sync the removal over to the
> second session.
>
>
> 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-tp23197339p23209281.html
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.
Re: Urgent issue with deleting clined nodes
Posted by SalmasCM <sa...@criticalmass.com>.
My problem is solved. I needed to delete the node in the master workspace and
then save that session and call update to sync the removal over to the
second session.
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-tp23197339p23209012.html
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.
Re: Urgent issue with deleting cloned nodes
Posted by SalmasCM <sa...@criticalmass.com>.
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.