jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From iapilgrim <iapilg...@gmail.com>
Subject Re: Query Object Model (QOM) : InvalidQueryException
Date Wed, 05 Nov 2008 04:30:42 GMT



iapilgrim wrote:
> 
> Hi,
> I'm trying using QOM ( in JR 1.4.6).
> Here my code
>  QueryManagerImpl qm = (QueryManagerImpl)
> getSession().getWorkspace().getQueryManager();
>  QueryObjectModelFactory qomFactory = qm.getQOMFactory();
>  Query q = qomFactory.createQuery(qomFactory.selector("s"),
>  qomFactory.childNode("s", "/blogsystem/posts/"), null, null);
>  QueryResult result = q.execute();
> 
> and got the exception
> javax.jcr.query.InvalidQueryException: not yet implemented: not yet
> implemented: not yet implemented
> 	at
> org.apache.jackrabbit.core.query.lucene.JQOM2LuceneQueryBuilder.createLuceneQuery(JQOM2LuceneQueryBuilder.java:235)
> 	at
> org.apache.jackrabbit.core.query.lucene.JQOM2LuceneQueryBuilder.createQuery(JQOM2LuceneQueryBuilder.java:226)
> 	at
> org.apache.jackrabbit.core.query.lucene.PreparedQueryImpl.execute(PreparedQueryImpl.java:105)
> 	at org.apache.jackrabbit.core.query.QueryImpl.execute(QueryImpl.java:176)
> 
> The exception has said that the new query (qom) has not yet implemented
> but in this post 
> http://www.nabble.com/JR-Test-cases-for-new-query-td20264176.html
> http://www.nabble.com/JR-Test-cases-for-new-query-td20264176.html , Marcel
> has said that we can use QOM in JR 1.4.6.
> 
> What wrong here?
> Thanks for your help.
> Van
> 
> 
In JQOM2LuceneQueryBuilder.java, 
public Object visit(ChildNodeImpl node, Object data) {
        // TODO: implement
        throw new UnsupportedOperationException("not yet implemented");
}
We can't use QOM in JR 1.4.6, waiting for JR 1.5.0...
Is there anybody know when JR 1.5.0 release?
Regards,
Van

-- 
View this message in context: http://www.nabble.com/Query-Object-Model-%28QOM%29-%3A-InvalidQueryException-tp20336012p20336070.html
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.


Mime
View raw message