java.lang.IllegalStateException

TokenStream contract violation: close() call missing

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web3082

  • TokenStream contract violation: close() call missing
  • TokenStream contract violation: close() call missing
  • TokenStream contract violation: close() call missing
  • Stack trace

    • 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)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown user
    Once, 1 year ago