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

GitHub | dewarim | 4 months ago
  1. 0

    Exception during Lucene index update

    GitHub | 4 months ago | dewarim
    org.apache.lucene.store.AlreadyClosedException: this IndexReader is closed
  2. 0

    Illegal state exceptions (iscsi)

    GitHub | 6 years ago | ldriscoll
    org.apache.lucene.store.AlreadyClosedException: this IndexReader is closed
  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. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 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
  6. 0

    Re-opening a Lucene index

    Stack Overflow | 3 years ago | carlspring
    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$search.call
      1. org.apache.lucene.index.IndexReader.ensureOpen(IndexReader.java:245)
      2. org.apache.lucene.index.IndexReader.getSequentialSubReaders(IndexReader.java:1602)
      3. org.apache.lucene.util.ReaderUtil$Gather.run(ReaderUtil.java:78)
      4. org.apache.lucene.util.ReaderUtil$Gather.run(ReaderUtil.java:87)
      5. org.apache.lucene.util.ReaderUtil$Gather.run(ReaderUtil.java:70)
      6. org.apache.lucene.search.TermQuery$TermWeight.<init>(TermQuery.java:53)
      7. org.apache.lucene.search.TermQuery.createWeight(TermQuery.java:199)
      8. org.apache.lucene.search.Searcher.createNormalizedWeight(Searcher.java:168)
      9. org.apache.lucene.search.IndexSearcher.createNormalizedWeight(IndexSearcher.java:664)
      10. org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:383)
      11. org.apache.lucene.search.IndexSearcher$search.call(Unknown Source)
      11 frames
    3. Groovy
      CallSiteArray.defaultCall
      1. org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
      1 frame
    4. Lucene
      IndexSearcher$search.call
      1. org.apache.lucene.search.IndexSearcher$search.call(Unknown Source)
      1 frame
    5. cinnamon.index
      LuceneActor$onMessage.call
      1. cinnamon.index.LuceneActor.search(LuceneActor.groovy:182)
      2. cinnamon.index.LuceneActor$search$1.callCurrent(Unknown Source)
      3. cinnamon.index.LuceneActor.onMessage(LuceneActor.groovy:67)
      4. cinnamon.index.LuceneActor$onMessage.call(Unknown Source)
      4 frames
    6. GPars
      DDAClosure$_createDDAClosure_closure1.doCall
      1. groovyx.gpars.actor.impl.DDAClosure$_createDDAClosure_closure1.doCall(DDAClosure.groovy:38)
      1 frame
    7. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor428.invoke(Unknown Source)
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      3. java.lang.reflect.Method.invoke(Method.java:497)
      3 frames
    8. Groovy
      Closure.call
      1. org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
      2. groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
      3. groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1210)
      4. groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1123)
      5. groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1019)
      6. groovy.lang.Closure.call(Closure.java:426)
      7. groovy.lang.Closure.call(Closure.java:442)
      7 frames
    9. GPars
      AsyncMessagingCore.run
      1. groovyx.gpars.actor.AbstractLoopingActor.runEnhancedWithoutRepliesOnMessages(AbstractLoopingActor.java:293)
      2. groovyx.gpars.actor.AbstractLoopingActor.access$400(AbstractLoopingActor.java:30)
      3. groovyx.gpars.actor.AbstractLoopingActor$1.handleMessage(AbstractLoopingActor.java:93)
      4. groovyx.gpars.util.AsyncMessagingCore.run(AsyncMessagingCore.java:132)
      4 frames
    10. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      3. java.lang.Thread.run(Thread.java:745)
      3 frames