jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexander Klimetschek" <aklim...@day.com>
Subject Re: Adding child to node obatined from iterator doesn't work
Date Wed, 25 Jun 2008 13:22:55 GMT
On Wed, Jun 25, 2008 at 5:16 AM, viz06 <vijaykumarsharma_1999@yahoo.com> wrote:
> To achieve this I am running a query something like this
> "//nms:myroot/*/nms:mynode" which returns an NodeIterator, from this I pick
> the node which satisfied other condition (matching properties) and add the
> child node. Very straightfoward.
> When I save the child (jcrTemplate.save()) I get the child uuid which tell
> me that the child node addition does work. But to my surprise session is not
> flushed as next call (in separate txn) to get the earlier saved child
> results in javax.jcr.ItemNotFoundException:
> 10bea29d-7f22-4cc9-a80d-abdce9f27a7b.

Could you post the code for those steps? The rough description might
miss a tiny, but important detail.


Alexander Klimetschek

View raw message