org.apache.lucene.store.AlreadyClosedException: this IndexReader is closed

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

via Sonatype JIRA by Rich Seddon, 1 year ago
this IndexReader is closed
via Atlassian JIRA by Edwin Wong [Atlassian], 1 year ago
this IndexReader is closed
via Atlassian JIRA by Edwin Wong [Atlassian], 1 year ago
this IndexReader is closed
via GitHub by jansta
, 2 months ago
this IndexReader is closed
via gmane.org by Unknown author, 1 year ago
this IndexReader cannot be used anymore as one of its child readers was closed*
org.apache.lucene.store.AlreadyClosedException: this IndexReader is closed
at org.apache.lucene.index.IndexReader.ensureOpen(IndexReader.java:177)
at org.apache.lucene.index.IndexReader.termDocs(IndexReader.java:812)
at org.apache.lucene.index.SegmentReader.termDocs(SegmentReader.java:956)
at org.apache.lucene.search.TermQuery$TermWeight.scorer(TermQuery.java:74)
at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:210)
at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:170)
at org.apache.lucene.search.Searcher.search(Searcher.java:98)
at org.apache.maven.index.DefaultIndexerEngine.getOldDocument(DefaultIndexerEngine.java:158)
at org.apache.maven.index.DefaultIndexerEngine.update(DefaultIndexerEngine.java:77)
at org.sonatype.nexus.events.IndexerManagerEventInspector.inspectForIndexerManager(IndexerManagerEventInspector.java:75)
at org.sonatype.nexus.events.IndexerManagerEventInspector.inspect(IndexerManagerEventInspector.java:60)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)

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.