jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aparna Chaudhary <aparna.chaudh...@gmail.com>
Subject Re: javax.jcr.PathNotFoundException: hello/world
Date Mon, 29 Aug 2011 13:04:25 GMT
Looks like some mess up with same name siblings. You might want to clean up
the content and run the test.

 // Remove content
// iterative removal of same name sibling child nodes
 NodeIterator ni = root.getNodes();
while (ni.hasNext()) {
    Node n = ni.nextNode();
    if(n.getName().equalsIgnoreCase("hello")){
        System.out.println("removing " + n.getPath());
        n.remove();
    }
}
 session.save();

Regards,
Aparna

On Mon, Aug 29, 2011 at 2:56 PM, Stefan Guggisberg <
stefan.guggisberg@gmail.com> wrote:

> On Mon, Aug 29, 2011 at 2:24 PM, Nikolay Georgiev
> <georgiev.nikolay@gmail.com> wrote:
> > Hello,
> >
> > I am trying the run the SecondHop.java from
> > http://jackrabbit.apache.org/first-hops.html
> >
> > but I get the exception:
> > javax.jcr.PathNotFoundException: hello/world
> >        at
> org.apache.jackrabbit.core.NodeImpl$8.perform(NodeImpl.java:2120)
> >        at
> org.apache.jackrabbit.core.NodeImpl$8.perform(NodeImpl.java:2114)
> >        at
> org.apache.jackrabbit.core.session.SessionState.perform(SessionState.java:188)
> >        at org.apache.jackrabbit.core.ItemImpl.perform(ItemImpl.java:91)
> >        at org.apache.jackrabbit.core.NodeImpl.getNode(NodeImpl.java:2114)
> >        at com.db.intranet.poc.pocdlcwithjr.App.main(App.java:33)
> >
> > Do you know what could be the problem and how could I fix it?
>
> there's no way of telling what's wrong without knowing what you're doing.
> ;)
> could you please provide your source code (App.java)?
>
> cheers
> stefan
>
> >
> > Thank you!
> >
> > Nikolay
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message