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

lucene-dev | Nicolas Lalevée (JIRA) | 1 decade ago
  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

  5. 0
    You should define the TestContext class in your classpath
  6. 0
    You can solve this by using an actual Service instead of an IntentService

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    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