java.lang.IllegalStateException: Trying to write offsets that are null!

lucene-dev | Nicolas Lalevée (JIRA) | 1 decade ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    [jira] Created: (LUCENE-766) Two same new field with and without Term vector make an IllegalStateException

    lucene-dev | 1 decade ago | Nicolas Lalevée (JIRA)
    java.lang.IllegalStateException: Trying to write offsets that are null!
  2. 0

    [jira] Updated: (LUCENE-766) Two same new field with and without Term vector make an IllegalStateException

    lucene-dev | 1 decade ago | Nicolas Lalevée (JIRA)
    java.lang.IllegalStateException: Trying to write offsets that are null!
  3. 0

    [jira] Updated: (LUCENE-766) Two same new field with and without Term vector make an IllegalStateException

    lucene-dev | 1 decade ago | Nicolas Lalevée (JIRA)
    java.lang.IllegalStateException: Trying to write offsets that are null!
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalStateException

      Trying to write offsets that are null!

      at org.apache.lucene.index.TermVectorsWriter.writeField()
    2. Lucene
      TestDocumentWriter.testTermVector
      1. org.apache.lucene.index.TermVectorsWriter.writeField(TermVectorsWriter.java:311)
      2. org.apache.lucene.index.TermVectorsWriter.closeField(TermVectorsWriter.java:142)
      3. org.apache.lucene.index.TermVectorsWriter.closeDocument(TermVectorsWriter.java:100)
      4. org.apache.lucene.index.TermVectorsWriter.close(TermVectorsWriter.java:240)
      5. org.apache.lucene.index.DocumentWriter.writePostings(DocumentWriter.java:365)
      6. org.apache.lucene.index.DocumentWriter.addDocument(DocumentWriter.java:114)
      7. org.apache.lucene.index.IndexWriter.addDocument(IndexWriter.java:618)
      8. org.apache.lucene.index.IndexWriter.addDocument(IndexWriter.java:601)
      9. org.apache.lucene.index.TestDocumentWriter.testTermVector(TestDocumentWriter.java:147)
      9 frames