lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sandeep dey <>
Subject null pointer exception in indexwriter.close (using ramdirectory in google app engine)
Date Mon, 23 Jan 2012 00:24:17 GMT

I am working on getting lucene indexing working on *Google App Engine*.
I am using a *ramdirectory* . I am facing a null pointer exception
when I *close
the indexwriter.*
I think that might have something to do with the fact that only the
following libraries are supported in google app engine.

I am using *lucene 3.5.0* and *app engine java version 1.6.1*

The following is the stack trace which i get log: java.lang.NullPointerException
	at org.apache.lucene.index.SegmentInfo.write(
	at org.apache.lucene.index.SegmentInfos.write(
	at org.apache.lucene.index.SegmentInfos.prepareCommit(
	at org.apache.lucene.index.IndexWriter.startCommit(
	at org.apache.lucene.index.IndexWriter.prepareCommit(
	at org.apache.lucene.index.IndexWriter.commitInternal(
	at org.apache.lucene.index.IndexWriter.closeInternal(
	at org.apache.lucene.index.IndexWriter.close(
	at org.apache.lucene.index.*IndexWriter.close*(

The code works properly on my local machine (I haven't added much of a code
, just added some sample documents and did a indexwriter.close())

Has someone faced this issue before ??


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message