Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
2.4
-
None
Description
Occasionally I see a NPE in SingletonTokenStream when the thread triggering the index update is interrupted:
Exception in thread "DynamicPooledExecutor" java.lang.NullPointerException
at org.apache.jackrabbit.core.query.lucene.SingletonTokenStream.incrementToken(SingletonTokenStream.java:89)
at org.apache.lucene.index.DocInverterPerField.processFields(DocInverterPerField.java:141)
at org.apache.lucene.index.DocFieldProcessorPerThread.processDocument(DocFieldProcessorPerThread.java:276)
at org.apache.lucene.index.DocumentsWriter.updateDocument(DocumentsWriter.java:766)
at org.apache.lucene.index.IndexWriter.addDocument(IndexWriter.java:2060)
at org.apache.lucene.index.IndexWriter.addDocument(IndexWriter.java:2034)
at org.apache.jackrabbit.core.query.lucene.AbstractIndex$1.run(AbstractIndex.java:198)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)