Uploaded image for project: 'Jackrabbit Content Repository'
  1. Jackrabbit Content Repository
  2. JCR-3466

NPE in SingletonTokenStream

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.4
    • 2.5.3
    • jackrabbit-core
    • 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)

      Attachments

        Activity

          People

            mreutegg Marcel Reutegger
            mreutegg Marcel Reutegger
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: