On Tue, Jan 26, 2010 at 19:38, Niu, Xuetao <[email protected]> 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
[email protected]

Reply via email to