lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "jitender ahuja" <>
Subject Closing IndexWriter object after each file causes NullPointerException?
Date Tue, 13 Apr 2004 14:50:41 GMT
     Can anyone tell what is the cause of error for the following error as the source of error
is not any of the following:
a) Index directory closing after each file of the directory (to be indexed) : verified by
the changing directory size, with the changing
 number of files to be indexed
b) IndexWriter object being closed out : verified by checking the IndexWriter object ( here,
writ) being a non-null object, by the line:
        System.out.println(writ != null); in the attached code

Error output:
        at org.apache.lucene.index.IndexWriter.close(Unknown Source)
        at IndexDatanew.indexDocs(
        at IndexDatanew.indexDocs(
        at IndexDatanew.main(

The code that causes this error is working fine otherwise (i.e. for indexing purposes) and
is "attached"; the output in detail for a
directory of 2 files is also attached.:
View raw message