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

GitHub | ikwattro | 1 year ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.

Root Cause Analysis

  1. org.apache.lucene.store.AlreadyClosedException

    this IndexReader is closed

    at org.apache.lucene.index.IndexReader.ensureOpen()
  2. Lucene
    IndexSearcher.searchAfter
    1. org.apache.lucene.index.IndexReader.ensureOpen(IndexReader.java:245)[lucene-core-3.6.2.jar:3.6.2 1423725 - rmuir - 2012-12-18 19:45:40]
    2. org.apache.lucene.index.IndexReader.getSequentialSubReaders(IndexReader.java:1602)[lucene-core-3.6.2.jar:3.6.2 1423725 - rmuir - 2012-12-18 19:45:40]
    3. org.apache.lucene.util.ReaderUtil$Gather.run(ReaderUtil.java:78)[lucene-core-3.6.2.jar:3.6.2 1423725 - rmuir - 2012-12-18 19:45:40]
    4. org.apache.lucene.util.ReaderUtil$Gather.run(ReaderUtil.java:87)[lucene-core-3.6.2.jar:3.6.2 1423725 - rmuir - 2012-12-18 19:45:40]
    5. org.apache.lucene.util.ReaderUtil$Gather.run(ReaderUtil.java:70)[lucene-core-3.6.2.jar:3.6.2 1423725 - rmuir - 2012-12-18 19:45:40]
    6. org.apache.lucene.search.TermQuery$TermWeight.<init>(TermQuery.java:53)[lucene-core-3.6.2.jar:3.6.2 1423725 - rmuir - 2012-12-18 19:45:40]
    7. org.apache.lucene.search.TermQuery.createWeight(TermQuery.java:199)[lucene-core-3.6.2.jar:3.6.2 1423725 - rmuir - 2012-12-18 19:45:40]
    8. org.apache.lucene.search.Searcher.createNormalizedWeight(Searcher.java:168)[lucene-core-3.6.2.jar:3.6.2 1423725 - rmuir - 2012-12-18 19:45:40]
    9. org.apache.lucene.search.IndexSearcher.createNormalizedWeight(IndexSearcher.java:664)[lucene-core-3.6.2.jar:3.6.2 1423725 - rmuir - 2012-12-18 19:45:40]
    10. org.apache.lucene.search.IndexSearcher.searchAfter(IndexSearcher.java:319)[lucene-core-3.6.2.jar:3.6.2 1423725 - rmuir - 2012-12-18 19:45:40]
    11. org.apache.lucene.search.IndexSearcher.searchAfter(IndexSearcher.java:305)[lucene-core-3.6.2.jar:3.6.2 1423725 - rmuir - 2012-12-18 19:45:40]
    11 frames
  3. Neo4j - Lucene Index
    PageOfRangesIterator.fetchNextOrNull
    1. org.neo4j.kernel.api.impl.index.PageOfRangesIterator.fetchNextOrNull(PageOfRangesIterator.java:67)[neo4j-lucene-index-2.3.1.jar:2.3.1]
    2. org.neo4j.kernel.api.impl.index.PageOfRangesIterator.fetchNextOrNull(PageOfRangesIterator.java:35)[neo4j-lucene-index-2.3.1.jar:2.3.1]
    2 frames
  4. Neo4j - Graph Database Kernel
    PrefetchingIterator.hasNext
    1. org.neo4j.helpers.collection.PrefetchingIterator.peek(PrefetchingIterator.java:60)[neo4j-kernel-2.3.1.jar:2.3.1,dd67f90]
    2. org.neo4j.helpers.collection.PrefetchingIterator.hasNext(PrefetchingIterator.java:46)[neo4j-kernel-2.3.1.jar:2.3.1,dd67f90]
    2 frames
  5. Neo4j - Primitive Collections
    PrimitiveLongCollections$14.hasNext
    1. org.neo4j.collection.primitive.PrimitiveLongCollections$PrimitiveLongConcatingIterator.fetchNext(PrimitiveLongCollections.java:196)[neo4j-primitive-collections-2.3.1.jar:2.3.1]
    2. org.neo4j.collection.primitive.PrimitiveLongCollections$PrimitiveLongBaseIterator.hasNext(PrimitiveLongCollections.java:56)[neo4j-primitive-collections-2.3.1.jar:2.3.1]
    3. org.neo4j.collection.primitive.PrimitiveLongCollections$14.hasNext(PrimitiveLongCollections.java:740)[neo4j-primitive-collections-2.3.1.jar:2.3.1]
    3 frames
  6. Neo4j - Graph Database Kernel
    ResourceClosingIterator.hasNext
    1. org.neo4j.helpers.collection.ResourceClosingIterator.hasNext(ResourceClosingIterator.java:61)[neo4j-kernel-2.3.1.jar:2.3.1,dd67f90]
    1 frame
  7. com.graphaware.tx
    TransactionalInput.fetchNextOrNull
    1. com.graphaware.tx.executor.input.TransactionalInput.fetchNextOrNull(TransactionalInput.java:72)[classes/:na]
    1 frame
  8. Neo4j - Graph Database Kernel
    PrefetchingIterator.hasNext
    1. org.neo4j.helpers.collection.PrefetchingIterator.peek(PrefetchingIterator.java:60)[neo4j-kernel-2.3.1.jar:2.3.1,dd67f90]
    2. org.neo4j.helpers.collection.PrefetchingIterator.hasNext(PrefetchingIterator.java:46)[neo4j-kernel-2.3.1.jar:2.3.1,dd67f90]
    2 frames
  9. com.graphaware.tx
    IterableInputBatchTransactionExecutor$1.run
    1. com.graphaware.tx.executor.batch.IterableInputBatchTransactionExecutor$1.run(IterableInputBatchTransactionExecutor.java:85)[classes/:na]
    1 frame
  10. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:745)[na:1.7.0_79]
    1 frame