lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Busch <busch...@gmail.com>
Subject Re: NPE in IndexReader
Date Tue, 21 Aug 2007 21:40:39 GMT
Eric Louvard wrote:
> Hello while calling IndexReader.deletedoc(int) I am becomming a NPE.
> 
> java.lang.NullPointerException
>        at
> org.apache.lucene.index.IndexReader.acquireWriteLock(IndexReader.java:658)
>        at
> org.apache.lucene.index.IndexReader.deleteDocument(IndexReader.java:686)
> 
> In the acquireWriteLock methode there is call
> 'segmentInfos.getVersion()', but segmentInfos should be 'null'.
> 
> I am working with the head revision from SVN.
> 
> May someone tell me a work arround.
> 
> regards, √Čric Louvard.
> 

Hi Eric,

could you please provide more information about how exactly you create
the IndexReader? A unit test that hits this exception would be even better!

Thanks,
- Michael

---------------------------------------------------------------------
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