java.lang.RuntimeException: delete document from index failed

GitHub | dewarim | 7 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

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

    GitHub | 7 months ago | dewarim
    java.lang.RuntimeException: delete document from index failed

    Root Cause Analysis

    1. org.apache.lucene.store.AlreadyClosedException

      this IndexWriter is closed

      at org.apache.lucene.index.IndexWriter.ensureOpen()
    2. Lucene
      IndexWriter$deleteDocuments$0.call
      1. org.apache.lucene.index.IndexWriter.ensureOpen(IndexWriter.java:766)
      2. org.apache.lucene.index.IndexWriter.ensureOpen(IndexWriter.java:771)
      3. org.apache.lucene.index.IndexWriter.deleteDocuments(IndexWriter.java:2201)
      4. org.apache.lucene.index.IndexWriter$deleteDocuments$0.call(Unknown Source)
      4 frames
    3. cinnamon.index
      LuceneActor$deleteDocument$2.callCurrent
      1. cinnamon.index.LuceneActor.deleteDocument(LuceneActor.groovy:232)
      2. cinnamon.index.LuceneActor$deleteDocument$2.callCurrent(Unknown Source)
      3. cinnamon.index.LuceneActor.deleteDocument(LuceneActor.groovy:237)
      4. cinnamon.index.LuceneActor$deleteDocument$2.callCurrent(Unknown Source)
      4 frames
    4. Groovy
      AbstractCallSite.callCurrent
      1. org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:52)
      2. org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:154)
      3. org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:182)
      3 frames
    5. cinnamon.index
      LuceneActor.doIndexJob
      1. cinnamon.index.LuceneActor.deleteDocument(LuceneActor.groovy:237)
      2. cinnamon.index.LuceneActor$deleteDocument$2.callCurrent(Unknown Source)
      3. cinnamon.index.LuceneActor.deleteIndexableFromIndex(LuceneActor.groovy:161)
      4. cinnamon.index.LuceneActor$deleteIndexableFromIndex$1.callCurrent(Unknown Source)
      5. cinnamon.index.LuceneActor.doIndexJob(LuceneActor.groovy:141)
      5 frames
    6. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor526.invoke(Unknown Source)
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      3. java.lang.reflect.Method.invoke(Method.java:497)
      3 frames
    7. Groovy
      AbstractCallSite.callCurrent
      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.MetaClassImpl.invokeMethod(MetaClassImpl.java:1155)
      7. groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1123)
      8. groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1019)
      9. groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:810)
      10. groovy.lang.GroovyObjectSupport.invokeMethod(GroovyObjectSupport.java:46)
      11. groovy.lang.MetaClassImpl.invokeMethodOnGroovyObject(MetaClassImpl.java:1275)
      12. groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1169)
      13. groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1123)
      14. groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1019)
      15. org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:69)
      16. org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:190)
      16 frames
    8. cinnamon.index
      LuceneActor$_updateIndex_closure4$_closure7.doCall
      1. cinnamon.index.LuceneActor$_updateIndex_closure4$_closure7.doCall(LuceneActor.groovy:119)
      1 frame
    9. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:497)
      4 frames
    10. 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
    11. Grails
      GrailsTransactionTemplate$2.doInTransaction
      1. org.codehaus.groovy.grails.orm.support.GrailsTransactionTemplate$2.doInTransaction(GrailsTransactionTemplate.groovy:90)
      1 frame
    12. Spring Tx
      TransactionTemplate.execute
      1. org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:133)
      1 frame
    13. Grails
      GrailsTransactionTemplate.execute
      1. org.codehaus.groovy.grails.orm.support.GrailsTransactionTemplate.execute(GrailsTransactionTemplate.groovy:87)
      1 frame
    14. Grails GORM
      GormStaticApi.withTransaction
      1. org.grails.datastore.gorm.GormStaticApi.withTransaction(GormStaticApi.groovy:815)
      2. org.grails.datastore.gorm.GormStaticApi.withTransaction(GormStaticApi.groovy:715)
      2 frames
    15. cinnamon.index
      LuceneActor$_updateIndex_closure4.doCall
      1. cinnamon.index.IndexJob.withTransaction(IndexJob.groovy)
      2. cinnamon.index.IndexJob$withTransaction.call(Unknown Source)
      3. cinnamon.index.LuceneActor$_updateIndex_closure4.doCall(LuceneActor.groovy:112)
      3 frames
    16. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:497)
      4 frames
    17. Groovy
      AbstractCallSite.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)
      8. org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:2030)
      9. org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:2015)
      10. org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:2056)
      11. org.codehaus.groovy.runtime.dgm$162.invoke(Unknown Source)
      12. org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoMetaMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:274)
      13. org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:56)
      14. org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125)
      14 frames
    18. cinnamon.index
      LuceneActor$onMessage.call
      1. cinnamon.index.LuceneActor.updateIndex(LuceneActor.groovy:111)
      2. cinnamon.index.LuceneActor$updateIndex$0.callCurrent(Unknown Source)
      3. cinnamon.index.LuceneActor.onMessage(LuceneActor.groovy:63)
      4. cinnamon.index.LuceneActor$onMessage.call(Unknown Source)
      4 frames
    19. GPars
      DDAClosure$_createDDAClosure_closure1.doCall
      1. groovyx.gpars.actor.impl.DDAClosure$_createDDAClosure_closure1.doCall(DDAClosure.groovy:38)
      1 frame
    20. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor651.invoke(Unknown Source)
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      3. java.lang.reflect.Method.invoke(Method.java:497)
      3 frames
    21. 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
    22. 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
    23. 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