Return-Path: Delivered-To: apmail-incubator-jackrabbit-dev-archive@www.apache.org Received: (qmail 58143 invoked from network); 11 Apr 2005 14:43:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 11 Apr 2005 14:43:06 -0000 Received: (qmail 6155 invoked by uid 500); 11 Apr 2005 14:43:05 -0000 Mailing-List: contact jackrabbit-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jackrabbit-dev@incubator.apache.org Delivered-To: mailing list jackrabbit-dev@incubator.apache.org Received: (qmail 6142 invoked by uid 99); 11 Apr 2005 14:43:05 -0000 X-ASF-Spam-Status: No, hits=0.4 required=10.0 tests=DNS_FROM_RFC_ABUSE,RCVD_BY_IP,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of stefan.guggisberg@gmail.com designates 64.233.170.206 as permitted sender) Received: from rproxy.gmail.com (HELO rproxy.gmail.com) (64.233.170.206) by apache.org (qpsmtpd/0.28) with ESMTP; Mon, 11 Apr 2005 07:43:04 -0700 Received: by rproxy.gmail.com with SMTP id c16so1488141rne for ; Mon, 11 Apr 2005 07:43:03 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=YWrr5DYASz3wtB+hrDg3wzQ/X/rzAs2a6wRU6WiB+0qP6XTZV6KeGrIzsLfUsp5qKHM9nvUhsz02uebXPJdy06s4MuID1SFjbgz3y9Fjqt+ETfaD82eLv1lZ9wHxH8i1aYaNOuhbsWc7XMPPQUMwbCsarNB9yAsbjCF51oQnA9w= Received: by 10.38.152.48 with SMTP id z48mr4164978rnd; Mon, 11 Apr 2005 07:43:02 -0700 (PDT) Received: by 10.38.152.61 with HTTP; Mon, 11 Apr 2005 07:42:59 -0700 (PDT) Message-ID: <90a8d1c005041107425388118c@mail.gmail.com> Date: Mon, 11 Apr 2005 16:42:59 +0200 From: Stefan Guggisberg Reply-To: Stefan Guggisberg To: jackrabbit-dev@incubator.apache.org Subject: Re: PathNotFoundException when copying between workspaces In-Reply-To: <425A8B1B.7060404@wyona.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable References: <4256E0D0.4030205@wyona.com> <90a8d1c0050411033958f86968@mail.gmail.com> <425A8B1B.7060404@wyona.com> X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N hi felix,=20 my guess is that you somehow have 2 different Repository instances=20 that were created using identical configurations, i.e. they are reading from/writing to the same physical storage. this setup is not supported and will lead to=20 corrupt data. cheers stefan On Apr 11, 2005 4:35 PM, Felix R=F6thenbacher wrote: > Hi Stefan >=20 > i tracked it down to the HierarchyManagerImpl class. There, > resolvePath() [199] is called for the source path (e.g. '/site/test', > where 'test' is a newly added or copied node). >=20 > The execution path is as follows: >=20 > [199] resolvePath(Path path) > [222] for (...) > [iterate over all path elements] > [226] parentState.hasChildNodeEntry(...) =3D> false for name=3D'test' > [241] parentState.hasProperty(...) =3D> false for name=3D'test' > [253] PathNotFoundException >=20 > Actually, the NodeState.ChildNodeEntries of 'site's parentState > does not reflect the newly added node. >=20 > Unfortunately, I can't reproduce it with a simple setup for > now ... >=20 > As said before, after a restart of the repository after adding > the node, it can be copied without a problem (with same code > sequence!!). >=20 > Regards, >=20 > Felix >=20 >=20 > Stefan Guggisberg wrote: > > i tested what you're describing with the following code fragment: > > > > Session sA =3D r.login(new SimpleCredentials("johndoe", > > "".toCharArray()), "A"); > > Session sB =3D r.login(new SimpleCredentials("johndoe", > > "".toCharArray()), "B"); > > Node nA =3D sA.getRootNode().addNode("foo"); > > sA.save(); > > Workspace wB =3D sB.getWorkspace(); > > wB.copy("A", nA.getPath(), "/bar"); > > > > everything worked as expected. > > > > are you sure you're logging in on the same Repository instance? > > > > cheers > > stefan > > > > > > On Apr 8, 2005 9:51 PM, Felix R=F6thenbacher > > wrote: > > > >>Hi > >> > >>as mentioned before, I get a PathNotfoundException > >>when I try to copy a node from one workspace to > >>another. Here is the programme excecution: > >> > >>1. Open session sA with workspace wA > >>2. Create a new node nA in workspace wA > >>3. Call sA.save() (afterwards it reports no pending changes) > >>4. Open session sB with workspace wB > >>5. Call wB.copy(wA, nA, [dstPath]) > >>6. A PathNotFoundException is thrown > >> > >>Funny thing is, that when I restart the repository > >>instance after node creation, this procedure works. > >> > >>Thanks for sheding light on this > >> > >>- Felix > >> > > > > >