lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexandru Popescu" <the.mindstorm.mailingl...@gmail.com>
Subject java.lang.IndexOutOfBoundsException when querying Lucene
Date Tue, 16 May 2006 19:20:53 GMT
Hi!

I am having quite a complex query that gets executed against the JCR
content (that used Lucene for indexing/searching). From time to time I
am seeing this exception:

[trace]
java.lang.IndexOutOfBoundsException: Index: 99, Size: 27
       at java.util.ArrayList.RangeCheck(ArrayList.java:546)
       at java.util.ArrayList.get(ArrayList.java:321)
       at org.apache.lucene.index.FieldInfos.fieldInfo(FieldInfos.java:155)
       at org.apache.lucene.index.FieldsReader.doc(FieldsReader.java:66)
       at org.apache.lucene.index.SegmentReader.document(SegmentReader.java:237)
       at org.apache.lucene.index.FilterIndexReader.document(FilterIndexReader.java:103)
       at org.apache.lucene.index.FilterIndexReader.document(FilterIndexReader.java:103)
       at org.apache.lucene.index.FilterIndexReader.document(FilterIndexReader.java:103)
       at org.apache.lucene.index.MultiReader.document(MultiReader.java:108)
       at org.apache.jackrabbit.core.query.lucene.ChildAxisQuery$ChildAxisScorer.calculateChildren(ChildAxisQuery.java:308)
       at org.apache.jackrabbit.core.query.lucene.ChildAxisQuery$ChildAxisScorer.next(ChildAxisQuery.java:250)
       at org.apache.lucene.search.ConjunctionScorer.init(ConjunctionScorer.java:87)
       at org.apache.lucene.search.ConjunctionScorer.next(ConjunctionScorer.java:44)
       at org.apache.lucene.search.Scorer.score(Scorer.java:37)
       at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:121)
       at org.apache.lucene.search.Hits.getMoreDocs(Hits.java:64)
       at org.apache.lucene.search.Hits.<init>(Hits.java:51)
       at org.apache.lucene.search.Searcher.search(Searcher.java:41)
       at org.apache.jackrabbit.core.query.lucene.SearchIndex.executeQuery(SearchIndex.java:374)
       at org.apache.jackrabbit.core.query.lucene.QueryImpl.execute(QueryImpl.java:174)
       at org.apache.jackrabbit.core.query.QueryImpl.execute(QueryImpl.java:130)
[/trace]

I really don't have any idea why this is happening. Do you have any
pointers? I would like to understand what may go wrong so that I can
prevent at least in my application (that is based on Jackrabbit JCR
implementation, and so on Lucene) that this occurs (or at least I can
reliable catch the exception and understand what I have to do when it
occurs).

The ML contains a couple of reported IndexOutOfBoundsException reports
but all of them are about index merging. Same on JIRA.

Any help, ideas, hints are highly appreciated,
thanks very much in advance,

./alex
--
.w( the_mindstorm )p.

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


Mime
View raw message