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

GitHub | dewarim | 7 months 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.
  1. 0

    Exception during Lucene index update

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

    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