From users-return-10049-apmail-jackrabbit-users-archive=jackrabbit.apache.org@jackrabbit.apache.org Mon Jan 05 10:39:03 2009 Return-Path: Delivered-To: apmail-jackrabbit-users-archive@locus.apache.org Received: (qmail 89291 invoked from network); 5 Jan 2009 10:39:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Jan 2009 10:39:03 -0000 Received: (qmail 72965 invoked by uid 500); 5 Jan 2009 10:39:01 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 72939 invoked by uid 500); 5 Jan 2009 10:39:00 -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 72928 invoked by uid 99); 5 Jan 2009 10:39:00 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Jan 2009 02:39:00 -0800 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of tmueller@day.com designates 207.126.148.183 as permitted sender) Received: from [207.126.148.183] (HELO eu3sys201aog003.obsmtp.com) (207.126.148.183) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 05 Jan 2009 10:38:52 +0000 Received: from source ([209.85.218.19]) by eu3sys201aob003.postini.com ([207.126.154.11]) with SMTP ID DSNKSWHjJb832U69EYpn4jEGJzxkzt9/5HA3@postini.com; Mon, 05 Jan 2009 10:38:31 UTC Received: by bwz12 with SMTP id 12so23312482bwz.4 for ; Mon, 05 Jan 2009 02:38:29 -0800 (PST) Received: by 10.181.159.17 with SMTP id l17mr8052105bko.14.1231151909239; Mon, 05 Jan 2009 02:38:29 -0800 (PST) Received: by 10.181.28.11 with HTTP; Mon, 5 Jan 2009 02:38:29 -0800 (PST) Message-ID: <91f3b2650901050238s388eb1abu819007b01b27f7ee@mail.gmail.com> Date: Mon, 5 Jan 2009 11:38:29 +0100 From: "=?ISO-8859-1?Q?Thomas_M=FCller?=" To: users@jackrabbit.apache.org Subject: Re: "isModified" method for a Node In-Reply-To: <4955B914.4030909@taxilalab.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_90364_14012286.1231151909225" References: <4955B914.4030909@taxilalab.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_90364_14012286.1231151909225 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, Could you write a simple test case please? From your description I don't understand why you can get the exception. What version of Jackrabbit do you use? Regards, Thomas On Sat, Dec 27, 2008 at 6:11 AM, Anirvan Majumdar < anirban.majumdar@taxilalab.com> wrote: > Hello, > > Recently while using JackRabbit, I wanted to lock a particular node for > some subsequent tasks on it. Before the point I wanted to lock the node, I > needed to make certain changes to one of the child nodes of this particular > node. I duly invoked the "save" method on the child node before applying the > lock on the parent node. However, I got an "InvalidItemStateException". As > this exception indicates that there are some pending changes [which > shouldn't be the case], I put a check before the lock - if > (!node.isModified). Surprisingly I still got the same exception. > This leads me to believe that even though the node has no modifications, > still I keep getting an exception indicating that there are pending unsaved > changes! > > Anyone faced a similar situation before, and am I missing out on something > here? > > Thanks! > Anirvan > ------=_Part_90364_14012286.1231151909225--