You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Marcel Reutegger (JIRA)" <ji...@apache.org> on 2005/08/18 10:09:54 UTC

[jira] Updated: (JCR-191) Query throws UnsupportedOperationException

     [ http://issues.apache.org/jira/browse/JCR-191?page=all ]

Marcel Reutegger updated JCR-191:
---------------------------------

    Attachment: QueryProblem.java

Test case to reproduce issue.

> Query throws UnsupportedOperationException
> ------------------------------------------
>
>          Key: JCR-191
>          URL: http://issues.apache.org/jira/browse/JCR-191
>      Project: Jackrabbit
>         Type: Bug
>   Components: query
>  Environment: svn revision: 233174
>     Reporter: Marcel Reutegger
>     Assignee: Marcel Reutegger
>     Priority: Minor
>      Fix For: 1.0
>  Attachments: QueryProblem.java
>
> When executing an absolute XPath statement where the first location step is not jcr:root the Query may throw an UnsupportedOperationException:
> Query: /foo//element(*, nt:unstructured)[@prop = 'bar']
> Stacktrace:
> java.lang.UnsupportedOperationException
>         at org.apache.jackrabbit.core.query.lucene.CachingMultiReader$MultiTermDocs.skipTo(CachingMultiReader.java:281)
>         at org.apache.lucene.search.TermScorer.skipTo(TermScorer.java:88)
>         at org.apache.lucene.search.ConjunctionScorer.doNext(ConjunctionScorer.java:53)
>         at org.apache.lucene.search.ConjunctionScorer.next(ConjunctionScorer.java:48)
>         at org.apache.lucene.search.Scorer.score(Scorer.java:37)
>         at org.apache.jackrabbit.core.query.lucene.ChildAxisQuery$ChildAxisScorer.calculateChildren(ChildAxisQuery.java:291)
>         at org.apache.jackrabbit.core.query.lucene.ChildAxisQuery$ChildAxisScorer.next(ChildAxisQuery.java:251)
>         at org.apache.lucene.search.Scorer.score(Scorer.java:37)
>         at org.apache.jackrabbit.core.query.lucene.DescendantSelfAxisQuery$DescendantSelfAxisScorer.calculateSubHits(DescendantSelfAxisQuery.java:302)
>         at org.apache.jackrabbit.core.query.lucene.DescendantSelfAxisQuery$DescendantSelfAxisScorer.next(DescendantSelfAxisQuery.java:237)
>         at org.apache.lucene.search.Scorer.score(Scorer.java:37)
>         at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:92)
>         at org.apache.lucene.search.Hits.getMoreDocs(Hits.java:64)
>         at org.apache.lucene.search.Hits.<init>(Hits.java:43)
>         at org.apache.lucene.search.Searcher.search(Searcher.java:33)
>         at org.apache.lucene.search.Searcher.search(Searcher.java:27)
>         at org.apache.jackrabbit.core.query.lucene.SearchIndex.executeQuery(SearchIndex.java:287)
>         at org.apache.jackrabbit.core.query.lucene.QueryImpl.execute(QueryImpl.java:179)
>         at org.apache.jackrabbit.core.query.QueryImpl.execute(QueryImpl.java:132)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira