Return-Path: X-Original-To: apmail-jackrabbit-users-archive@minotaur.apache.org Delivered-To: apmail-jackrabbit-users-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6981D726E for ; Mon, 29 Aug 2011 13:04:54 +0000 (UTC) Received: (qmail 37756 invoked by uid 500); 29 Aug 2011 13:04:53 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 37709 invoked by uid 500); 29 Aug 2011 13:04:53 -0000 Mailing-List: contact users-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@jackrabbit.apache.org Delivered-To: mailing list users@jackrabbit.apache.org Received: (qmail 37701 invoked by uid 99); 29 Aug 2011 13:04:52 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Aug 2011 13:04:52 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of aparna.chaudhary@gmail.com designates 209.85.212.42 as permitted sender) Received: from [209.85.212.42] (HELO mail-vw0-f42.google.com) (209.85.212.42) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Aug 2011 13:04:46 +0000 Received: by vwl1 with SMTP id 1so10160760vwl.1 for ; Mon, 29 Aug 2011 06:04:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=O9Oaap0SYeHEJqo1VRqwXzQwERX6al5agqKd6P/FWc0=; b=m5cK4lMAAFTDE3wYgq4bZ45ERPHAbYWHBF6TJQwMCCD8oYqHJH0HEMSKiMIBQOJKYG bJXjwXXgT6dBWDBnmkOt0+Mwy6bp0i+BYL5oSYyuy3nqSe4cMl3CcC7je/OPwc/JWLqs mtoVZ/WJX24nDENkEQ/YmCH8C9TfBT8hwttsU= MIME-Version: 1.0 Received: by 10.52.92.13 with SMTP id ci13mr20803vdb.497.1314623065531; Mon, 29 Aug 2011 06:04:25 -0700 (PDT) Received: by 10.52.108.169 with HTTP; Mon, 29 Aug 2011 06:04:25 -0700 (PDT) In-Reply-To: References: Date: Mon, 29 Aug 2011 15:04:25 +0200 Message-ID: Subject: Re: javax.jcr.PathNotFoundException: hello/world From: Aparna Chaudhary To: users@jackrabbit.apache.org Content-Type: multipart/alternative; boundary=bcaec5016701d5a60c04aba4883c --bcaec5016701d5a60c04aba4883c Content-Type: text/plain; charset=ISO-8859-1 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 > 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 > > > --bcaec5016701d5a60c04aba4883c--