lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Miller <markrmil...@gmail.com>
Subject Re: NPE in MultiReader
Date Sat, 28 Jul 2007 12:53:43 GMT
Very odd...looks to me like one of the subreaders in the subreader array 
is null. Very odd because at one point it must not have been null to get 
past the MultiReader creation...

testn wrote:
> Every once in a while I got the following exception with Lucene 2.2. Do you
> have any idea?
>
> Thanks,
>
> java.lang.NullPointerException
>         at
> org.apache.lucene.index.MultiReader.getFieldNames(MultiReader.java:264)
>         at
> org.apache.lucene.index.SegmentMerger.mergeFields(SegmentMerger.java:180)
>         at
> org.apache.lucene.index.SegmentMerger.merge(SegmentMerger.java:97)
>         at
> org.apache.lucene.index.IndexWriter.mergeSegments(IndexWriter.java:1883)
>         at
> org.apache.lucene.index.IndexWriter.flushRamSegments(IndexWriter.java:1741)
>         at
> org.apache.lucene.index.IndexWriter.flushRamSegments(IndexWriter.java:1733)
>         at
> org.apache.lucene.index.IndexWriter.maybeFlushRamSegments(IndexWriter.java:1727)
>         at
> org.apache.lucene.index.IndexWriter.addDocument(IndexWriter.java:1004)
>         at
> org.apache.lucene.index.IndexWriter.addDocument(IndexWriter.java:983)
>         at
> org.springmodules.lucene.index.factory.SimpleLuceneIndexWriter.addDocument(SimpleLucen
> eIndexWriter.java:44)
>         at
> org.springmodules.lucene.index.object.database.DefaultDatabaseIndexer.addDocumentsInIn
> dex(DefaultDatabaseIndexer.java:274)
>         at
> org.springmodules.lucene.index.object.database.DefaultDatabaseIndexer.doHandleRequest(
> DefaultDatabaseIndexer.java:306)
>         at
> org.springmodules.lucene.index.object.database.DefaultDatabaseIndexer.index(DefaultDat
> abaseIndexer.java:354)
>
>   

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


Mime
View raw message