jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Guggisberg <stefan.guggisb...@gmail.com>
Subject Re: Problem removing nodes
Date Sun, 09 Oct 2005 10:27:14 GMT
hi martin

On 10/9/05, Martin Perez <mpermar@gmail.com> wrote:
> Hi.
>
> I'm having problems when removing a node. This is my source code (very
> simple):
>
> javax.jcr.Node directory = session.getNodeByUUID(directoryId);
> directory.remove();
> session.save();
>
> But strangely this throws an exception:
>
> java.lang.UnsupportedOperationException: IteratorChains must contain at
> least one Iterator
> at
> org.apache.commons.collections.iterators.IteratorChain.checkChainIntegrity(Unknown
> Source)
> at org.apache.commons.collections.iterators.IteratorChain.lockChain(Unknown
> Source)
> at org.apache.commons.collections.iterators.IteratorChain.hasNext(Unknown
> Source)
> at org.apache.jackrabbit.core.ItemImpl.getTransientStates(ItemImpl.java:376)
> at org.apache.jackrabbit.core.ItemImpl.save(ItemImpl.java:1215)
> at org.apache.jackrabbit.core.SessionImpl.save(SessionImpl.java:765)
> at org.jlibrary.core.jcr.JCRRepositoryService.removeDirectory(
> JCRRepositoryService.java:127)
> at org.jlibrary.client.ui.repository.actions.DeleteAction.deleteDirectory(
> DeleteAction.java:275)
> at org.jlibrary.client.ui.repository.actions.DeleteAction.deleteItem(
> DeleteAction.java:350)
> at org.jlibrary.client.ui.repository.actions.DeleteAction.access$1(
> DeleteAction.java:343)
> at org.jlibrary.client.ui.repository.actions.DeleteAction$1.run(
> DeleteAction.java:158)
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:76)
>
> Am I doing something wrong?

don't think so, looks like a bug to me;) i'll have a look at it tomorrow.

thanks
stefan

>
> Regards,
>
> Martin
>
>

Mime
View raw message