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

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

java.lang.IllegalStateException: Trying to write offsets that are null!
at org.apache.lucene.index.TermVectorsWriter.writeField(TermVectorsWriter.java:311)
at org.apache.lucene.index.TermVectorsWriter.closeField(TermVectorsWriter.java:142)
at org.apache.lucene.index.TermVectorsWriter.closeDocument(TermVectorsWriter.java:100)
at org.apache.lucene.index.TermVectorsWriter.close(TermVectorsWriter.java:240)
at org.apache.lucene.index.DocumentWriter.writePostings(DocumentWriter.java:365)
at org.apache.lucene.index.DocumentWriter.addDocument(DocumentWriter.java:114)
at org.apache.lucene.index.IndexWriter.addDocument(IndexWriter.java:618)
at org.apache.lucene.index.IndexWriter.addDocument(IndexWriter.java:601)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Know the solutions? Share your knowledge to help other developers to debug faster.