lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael McCandless (JIRA)" <>
Subject [jira] Commented: (LUCENE-552) NPE during mergeSegments
Date Fri, 10 Nov 2006 11:47:38 GMT
    [ ] 
Michael McCandless commented on LUCENE-552:

That second exception is a bit different from the first: the second hits NPE when calling
RAMDirectory.fileExists(). This means that the "files" member of the RAMDirectory instance
is null (looking up the call stack, the "name" can't be null).  But, files should not be null
unless you are using a version of RAMDirectory at revision 419723 or newer  on the trunk (where
RAMDirectory.close() now nulls out its files member).  But that change was comitted on Jul
6 of this year and your exception was before that.

So I'm very baffled why you see NPE coming out of RAMDirectory.fileExists().  If you shed
any more light on what leads to these exceptions or how to reproduce with a small unit test
that would be wonderful

> NPE during mergeSegments
> ------------------------
>                 Key: LUCENE-552
>                 URL:
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: Index
>    Affects Versions: 2.0.0
>         Environment: 2.0-rc1-dev
>            Reporter: Ole Kværnø
> The JVM stops with a NPE after running for about 6-8 hours, indexing about 500.000 articles.
> After a restart of the JVM, the problematic merge seems to complete OK.
> Exception in thread "Thread-4" java.lang.NullPointerException
> at<init>(
> at
> at org.apache.lucene.index.SegmentReader.initialize(
> at org.apache.lucene.index.SegmentReader.get(
> at org.apache.lucene.index.SegmentReader.get(
> at org.apache.lucene.index.IndexWriter.mergeSegments(
> at org.apache.lucene.index.IndexWriter.mergeSegments(
> at org.apache.lucene.index.IndexWriter.flushRamSegments(
> at org.apache.lucene.index.IndexWriter.close(
> at com.magentanews.index.IndexManager.insertDocuments(
> at com.magentanews.index.SplitIndexManager.insertDocuments(
> at com.magentanews.index.LuceneFeeder.insertDocuments(
> at com.magentanews.index.IndexerApplication.insertDocuments(
> at

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message