Return-Path: Delivered-To: apmail-jackrabbit-users-archive@minotaur.apache.org Received: (qmail 8698 invoked from network); 11 Feb 2011 13:08:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 11 Feb 2011 13:08:20 -0000 Received: (qmail 31176 invoked by uid 500); 11 Feb 2011 13:08:20 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 30910 invoked by uid 500); 11 Feb 2011 13:08:17 -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 30902 invoked by uid 99); 11 Feb 2011 13:08:16 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Feb 2011 13:08:16 +0000 X-ASF-Spam-Status: No, hits=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jzitting@adobe.com designates 64.18.1.35 as permitted sender) Received: from [64.18.1.35] (HELO exprod6og115.obsmtp.com) (64.18.1.35) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Feb 2011 13:08:08 +0000 Received: from source ([192.150.11.134]) by exprod6ob115.postini.com ([64.18.5.12]) with SMTP ID DSNKTVU0owXbCKARdKrJTpnr2apH+XKQ5Ze/@postini.com; Fri, 11 Feb 2011 05:07:48 PST Received: from inner-relay-4.eur.adobe.com ([192.150.8.237]) by outbound-smtp-1.corp.adobe.com (8.12.10/8.12.10) with ESMTP id p1BD7AKG011890 for ; Fri, 11 Feb 2011 05:07:10 -0800 (PST) Received: from nacas02.corp.adobe.com (nacas02.corp.adobe.com [10.8.189.100]) by inner-relay-4.eur.adobe.com (8.12.10/8.12.9) with ESMTP id p1BD7j5s025125 for ; Fri, 11 Feb 2011 05:07:45 -0800 (PST) Received: from eurhub01.eur.adobe.com (10.128.4.30) by nacas02.corp.adobe.com (10.8.189.100) with Microsoft SMTP Server (TLS) id 8.2.254.0; Fri, 11 Feb 2011 05:07:44 -0800 Received: from jzitting.adobe.com (10.131.197.63) by europemail.eur.adobe.com (10.128.4.111) with Microsoft SMTP Server (TLS) id 8.2.254.0; Fri, 11 Feb 2011 13:07:42 +0000 Message-ID: <4D55349D.8090408@adobe.com> Date: Fri, 11 Feb 2011 14:07:41 +0100 From: Jukka Zitting Organization: Adobe User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101209 Fedora/3.1.7-0.35.b3pre.fc14 Lightning/1.0b3pre Thunderbird/3.1.7 MIME-Version: 1.0 To: "users@jackrabbit.apache.org" Subject: Re: AW: Rather easy SQL2-query? References: <4D55316F.3030100@adobe.com> In-Reply-To: Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit Hi, On 02/11/2011 01:59 PM, Cech. Ulrich wrote: > I missed to mentioned all the variation, which I tried in the "select > clause", the one from you I tried before and get the following error: > "This query result contains more than one selector" That's most likely because you're using the QueryResult.getNodes() method with no argument. With a join query you need to specify the selector you're interested in as a parameter to the call. In this case it would be: NodeIterator nodes = result.getNodes("f"); -- Jukka Zitting