jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Müller" <thomas.muel...@day.com>
Subject Re: "isModified" method for a Node
Date Mon, 05 Jan 2009 10:38:29 GMT

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


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

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