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 GitHub by pascaldekloe
, 2 years ago
this IndexReader is closed
via GitHub by dewarim
, 1 year ago
this IndexReader is closed
via Sonatype JIRA by Emil Genchev, 1 year ago
this IndexReader is closed
org.apache.lucene.store.AlreadyClosedException: this IndexReader is closed
at org.apache.lucene.index.IndexReader.ensureOpen(IndexReader.java:245)
at org.apache.lucene.index.IndexReader.getSequentialSubReaders(IndexReader.java:1602)
at org.apache.lucene.util.ReaderUtil$Gather.run(ReaderUtil.java:78)
at org.apache.lucene.util.ReaderUtil$Gather.run(ReaderUtil.java:87)
at org.apache.lucene.util.ReaderUtil$Gather.run(ReaderUtil.java:70)
at org.apache.lucene.search.TermQuery$TermWeight.(TermQuery.java:53)
at org.apache.lucene.search.TermQuery.createWeight(TermQuery.java:199)
at org.apache.lucene.search.Searcher.createNormalizedWeight(Searcher.java:168)
at org.apache.lucene.search.IndexSearcher.createNormalizedWeight(IndexSearcher.java:664)
at org.apache.lucene.search.IndexSearcher.searchAfter(IndexSearcher.java:319)
at org.neo4j.kernel.api.impl.index.PageOfRangesIterator.fetchNextOrNull(PageOfRangesIterator.java:67)
at org.neo4j.helpers.collection.PrefetchingIterator.peek(PrefetchingIterator.java:60)
at org.neo4j.collection.primitive.PrimitiveLongCollections$PrimitiveLongConcatingIterator.fetchNext(PrimitiveLongCollections.java:196)
at org.neo4j.collection.primitive.PrimitiveLongCollections$PrimitiveLongBaseIterator.hasNext(PrimitiveLongCollections.java:56)
at com.graphaware.tx.executor.input.TransactionalInput.fetchNextOrNull(TransactionalInput.java:72)
at org.neo4j.helpers.collection.PrefetchingIterator.peek(PrefetchingIterator.java:60)
at com.graphaware.tx.executor.batch.IterableInputBatchTransactionExecutor$1.run(IterableInputBatchTransactionExecutor.java:85)
at java.lang.Thread.run(Thread.java:745)

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.