Return-Path: Delivered-To: apmail-incubator-jackrabbit-dev-archive@www.apache.org Received: (qmail 76171 invoked from network); 28 Sep 2005 14:26:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 28 Sep 2005 14:26:02 -0000 Received: (qmail 32390 invoked by uid 500); 28 Sep 2005 14:25:58 -0000 Mailing-List: contact jackrabbit-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jackrabbit-dev@incubator.apache.org Delivered-To: mailing list jackrabbit-dev@incubator.apache.org Received: (qmail 32370 invoked by uid 99); 28 Sep 2005 14:25:58 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Sep 2005 07:25:58 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of marcel.reutegger@gmx.net designates 213.165.64.20 as permitted sender) Received: from [213.165.64.20] (HELO mail.gmx.net) (213.165.64.20) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 28 Sep 2005 07:26:04 -0700 Received: (qmail invoked by alias); 28 Sep 2005 14:25:35 -0000 Received: from bsl-rtr.day.com (EHLO [10.0.0.66]) [212.249.34.130] by mail.gmx.net (mp016) with SMTP; 28 Sep 2005 16:25:35 +0200 X-Authenticated: #894343 Message-ID: <433AA7D9.605@gmx.net> Date: Wed, 28 Sep 2005 16:25:29 +0200 From: Marcel Reutegger User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: en-us, en MIME-Version: 1.0 To: jackrabbit-dev@incubator.apache.org Subject: Re: what's the matter on node search ? References: <620728fd05092803344eee7646@mail.gmail.com> <140176f0509280348750f4e9e@mail.gmail.com> In-Reply-To: <140176f0509280348750f4e9e@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Apart from the /jcr:root you also need to encode the last name test in your XPath statement. XML does not allow a QName to start with a digit. so that's: /jcr:root/jcr:system/jcr:versionStorage//_x0031_.2 see jsr-170 spec section 6.4.3 and http://www.w3.org/TR/REC-xml/#NT-Name regards marcel Raphael Wegmueller wrote: > looks like you have to add the prefix /jcr:root to your path. see also > http://article.gmane.org/gmane.comp.apache.jackrabbit.devel/89 > > hope this helps! > /rofe > > On 9/28/05, Yao Harrison wrote: > >>Hi list: >> >>code : >> public void searchVersion()throws RepositoryException{ >> Workspace ws = session.getWorkspace(); >> QueryManager qm = ws.getQueryManager(); >> Query q = >>qm.createQuery("/jcr:system/jcr:versionStorage//1.2",Query.XPATH); >> QueryResult qr = q.execute(); >> } >> >>error info: >>javax.jcr.query.InvalidQueryException: Internal error: data is not a >>RelationQueryNode