Return-Path: Delivered-To: apmail-jackrabbit-users-archive@locus.apache.org Received: (qmail 72808 invoked from network); 20 Nov 2007 07:08:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 20 Nov 2007 07:08:19 -0000 Received: (qmail 21505 invoked by uid 500); 20 Nov 2007 07:08:05 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 21472 invoked by uid 500); 20 Nov 2007 07:08:05 -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 21443 invoked by uid 99); 20 Nov 2007 07:08:05 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Nov 2007 23:08:05 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of daniel.mitterdorfer@salzburgresearch.at designates 212.183.10.131 as permitted sender) Received: from [212.183.10.131] (HELO mx0.salzburgresearch.at) (212.183.10.131) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Nov 2007 07:08:07 +0000 X-Virus-Scanned: by Salzburg Research on mx0.salzburgresearch.at DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=salzburgresearch.at; s=srfg; t=1195542466; bh=yqAOe8noco0V1o1S6UarcsJMSVI2sHyLuwSgr8LJNU U=; h=Message-ID:Date:From:Organization:User-Agent:To:Subject: References:In-Reply-To; b=LPxlKBcRaglOm9COC8PHM/FS6UAn7F9AImuEtFJA 1ilvZZdCgkgJL/wg5TRL6244L/OqyDxtfGAtRWs0jvUdXzlCWevTl1lXCA4ISc58OCV XtvnLA4t9Vp2JZKXWIG1WmY3uMLNFobPNGlnvrWh8aF5RKb+U3DR9chnWp8pwhZA= Received: from mail.salzburgresearch.at (zeus.salzburgresearch.at [172.16.0.2]) by mx0.salzburgresearch.at (Postfix) with ESMTP id 2C6DD22A6CC for ; Tue, 20 Nov 2007 08:07:45 +0100 (CET) Received: from [172.16.97.108] (stag08.salzburgresearch.at [172.16.97.108]) by mail.salzburgresearch.at (Postfix) with ESMTP id EECB79 for ; Tue, 20 Nov 2007 08:07:44 +0100 (CET) Message-ID: <474287BF.8000900@salzburgresearch.at> Date: Tue, 20 Nov 2007 08:07:43 +0100 From: Daniel Mitterdorfer Organization: Salzburg Research Forschungsgesellschaft User-Agent: Thunderbird 1.5.0.13 (Windows/20070809) MIME-Version: 1.0 To: users@jackrabbit.apache.org Subject: Re: XPath query returns no results References: <47417531.4050002@salzburgresearch.at> <47418DAA.8030403@gmx.net> <47419633.6080005@salzburgresearch.at> <47419ECB.5030802@gmx.net> In-Reply-To: <47419ECB.5030802@gmx.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi Marcel, I just verified your assumption: You were absolutely right. I was not aware that the XPath queries only run against committed results. Because my #dump() returned all expected nodes right before I issued the XPath query I thought it would also take these nodes into account. Thanks a lot to all for your help, especially to you, Marcel! Bye, Daniel Marcel Reutegger wrote: > Hi Daniel, > > ah, now I'm starting to realize what happens. You are using spring > modules, which probably wraps a transaction around your code. because > queries are only run against *committed* content it may happen that > you won't see results even though you saved (but not yet committed) > changes. this is somewhat counter intuitive and has been debated on > this list a while ago. JSR 283 will be more flexible in this respect. > > can you please make sure you commit the transaction before you execute > the query? that will probably solve your issue. > > regards > marcel >