jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Raphael Wegmueller <r...@day.com>
Subject Re: what's the matter on node search ?
Date Wed, 28 Sep 2005 10:48:36 GMT
hi yao,

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 <harrison.gyao@gmail.com> 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
>
> tree:
> /root
> |------jcr:system
>   |-------jcr:versionStorage
>         |---------ca
>         |---------11
>               |---------05
>                     |-------------oe
>                             |--------------11050exxxxxxx-xxxx-xxxxx
>                                  |---------------jcr:rootVersion
>                                  |---------------1.0
>                                  |---------------1.1
>                                  |---------------1.2
>                                  |---------------1.3
> |------NodeA
> |------NodeB
>
>
> How could this be ? any suggestions ?
> Thanks for your ideas !
>
> Harrison
>

Mime
View raw message