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

GitHub | ikwattro | 1 year ago
  1. 0

    Illegal state exceptions (iscsi)

    GitHub | 6 years ago | ldriscoll
    org.apache.lucene.store.AlreadyClosedException: this IndexReader is closed
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    Strange exception "failed to delete index on stop"

    GitHub | 4 years ago | Rzulf
    org.apache.lucene.store.AlreadyClosedException: this IndexReader is closed
  4. 0

    I'm finding that if you freshly import data from an external system such as Bugzilla, and then turn on Ranking in Greenhopper, you start getting these errors randomly when viewing the Planning Board. To reproduce it, you have to click through the Projects while in the planning board. {code} 2010-12-21 11:24:46,413 http-8080-4 ERROR admin 684x435x1 lbp4ko 0:0:0:0:0:0:0:1 /secure/VersionBoard.jspa [com.atlassian.velocity.DefaultVelocityManager] MethodInvocationException occurred getting message body from Velocity: org.apache.lucene.store.AlreadyClosedException: this IndexReader is closed org.apache.lucene.store.AlreadyClosedException: this IndexReader is closed at org.apache.lucene.index.IndexReader.ensureOpen(IndexReader.java:209) at org.apache.lucene.index.IndexReader.document(IndexReader.java:946) at org.apache.lucene.search.IndexSearcher.doc(IndexSearcher.java:152) at com.atlassian.jira.index.DelegateSearcher.doc(DelegateSearcher.java:76) at com.atlassian.jira.issue.statistics.util.DocumentHitCollector.collect(DocumentHitCollector.java:22) at org.apache.lucene.search.HitCollectorWrapper.collect(HitCollectorWrapper.java:46) at org.apache.lucene.search.IndexSearcher.searchWithFilter(IndexSearcher.java:294) at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:254) at org.apache.lucene.search.Searcher.search(Searcher.java:150) at com.atlassian.jira.index.DelegateSearcher.search(DelegateSearcher.java:136) at com.atlassian.jira.issue.search.providers.LuceneSearchProvider.search(LuceneSearchProvider.java:241) at com.atlassian.jira.issue.search.providers.LuceneSearchProvider.search(LuceneSearchProvider.java:100) at sun.reflect.GeneratedMethodAccessor392.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.atlassian.plugin.osgi.hostcomponents.impl.DefaultComponentRegistrar$ContextClassLoaderSettingInvocationHandler.invoke(DefaultComponentRegistrar.java:129) at $Proxy138.search(Unknown Source) at sun.reflect.GeneratedMethodAccessor392.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.atlassian.plugin.osgi.bridge.external.HostComponentFactoryBean$DynamicServiceInvocationHandler.invoke(HostComponentFactoryBean.java:147) at $Proxy138.search(Unknown Source) at com.atlassian.greenhopper.service.DefaultStatService.loadStatsAndIssues(DefaultStatService.java:221) at com.atlassian.greenhopper.service.DefaultStatService.getSummariesForVersionIds(DefaultStatService.java:91) at com.pyxis.greenhopper.jira.actions.CardBoardAction.getSummaryForBoard(CardBoardAction.java:352) at sun.reflect.GeneratedMethodAccessor787.invoke(Unknown Source) {code} Reindexing does not fix it. To fix it, I had to go through every project and click "Optimize/Repair" on the rank field. This problem ought to go away if one turns on the Greenhopper nightly rank repair service I imagine.

    Atlassian JIRA | 6 years ago | David Yu
    org.apache.lucene.store.AlreadyClosedException: this IndexReader is closed

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    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