java.lang.IllegalStateException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Lucene 4.8.1 dependency
    via by Matteo Fiandesio,
  • Port Lucene 3.6.2 Analyzer to Lucene 5.5.0
    via Stack Overflow by brunoid
    ,
    • java.lang.IllegalStateException: TokenStream contract violation: close() call missing at org.apache.lucene.analysis.Tokenizer.setReader(Tokenizer.java:90) at org.apache.lucene.analysis.Analyzer$TokenStreamComponents.setReader(Analyzer.java:411) at org.apache.lucene.analysis.standard.StandardAnalyzer$1.setReader(StandardAnalyzer.java:111) at org.apache.lucene.analysis.Analyzer.tokenStream(Analyzer.java:165) at org.apache.lucene.document.Field.tokenStream(Field.java:568) at org.apache.lucene.index.DefaultIndexingChain$PerField.invert(DefaultIndexingChain.java:708) at org.apache.lucene.index.DefaultIndexingChain.processField(DefaultIndexingChain.java:417) at org.apache.lucene.index.DefaultIndexingChain.processDocument(DefaultIndexingChain.java:373) at org.apache.lucene.index.DocumentsWriterPerThread.updateDocument(DocumentsWriterPerThread.java:231) at org.apache.lucene.index.DocumentsWriter.updateDocument(DocumentsWriter.java:478) at org.apache.lucene.index.IndexWriter.updateDocument(IndexWriter.java:1562) at org.apache.lucene.index.IndexWriter.addDocument(IndexWriter.java:1307) at org.myPackage.MyClass.addToIndex(MyClass.java:58)

    Users with the same issue

    Unknown visitor
    Unknown visitor1 times, last one,