jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexander Klimetschek <aklim...@day.com>
Subject Re: Jackrabbit2.0 how to xpath-query frozen nodes?
Date Wed, 27 Jan 2010 09:41:41 GMT
On Tue, Jan 26, 2010 at 19:38, Niu, Xuetao <Xuetao.Niu@fiserv.com> wrote:
> /jcr:system/jcr:versionStorage/fd/fe/06/fdfe0612-92ea-4e2f-94d7-cd81e5b5
> 91c3/jcr:rootVersion/jcr:frozenNode//tenant:_15/env:testEnv

The "06" node step is the problem, it must be escaped. Xpath/XML names
cannot start with numbers, hence they must be escaped. See this page
for more info: http://wiki.apache.org/jackrabbit/EncodingAndEscaping#Encoding_path_in_queries

> The error trace below doesn't show what the problem might be with my
> xpath. ...
> Caused by: javax.jcr.query.InvalidQueryException: Parse error: data is
> not a RelationQueryNode

Yes, the exception could be a little bit better to at least show the
place where it fails.

Regards,
Alex

-- 
Alexander Klimetschek
alexander.klimetschek@day.com

Mime
View raw message