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

opensearchserve | neuner | 4 years 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

    OpenSearchServer Search Engine / Discussion / Help:Possible bug: Expected scheme-specific part at index 7: mailto:

    sourceforge.net | 10 months ago
    org.apache.lucene.store.AlreadyClosedException: this Directory is closed
  2. 0

    Possible bug: Expected scheme-specific part at index 7: mailto:

    opensearchserve | 4 years ago | neuner
    org.apache.lucene.store.AlreadyClosedException: this Directory is closed

    Root Cause Analysis

    1. org.apache.lucene.store.AlreadyClosedException

      this Directory is closed

      at org.apache.lucene.store.Directory.ensureOpen()
    2. Lucene
      IndexWriter.close
      1. org.apache.lucene.store.Directory.ensureOpen(Directory.java:255)
      2. org.apache.lucene.store.FSDirectory.fileExists(FSDirectory.java:548)
      3. org.apache.lucene.index.SegmentInfo.addIfExists(SegmentInfo.java:574)
      4. org.apache.lucene.index.SegmentInfo.files(SegmentInfo.java:600)
      5. org.apache.lucene.index.SegmentInfos.files(SegmentInfos.java:803)
      6. org.apache.lucene.index.IndexFileDeleter.incRef(IndexFileDeleter.java:458)
      7. org.apache.lucene.index.IndexWriter.startCommit(IndexWriter.java:5576)
      8. org.apache.lucene.index.IndexWriter.commit(IndexWriter.java:4160)
      9. org.apache.lucene.index.IndexWriter.closeInternal(IndexWriter.java:2260)
      10. org.apache.lucene.index.IndexWriter.close(IndexWriter.java:2204)
      11. org.apache.lucene.index.IndexWriter.close(IndexWriter.java:2168)
      11 frames
    3. com.jaeksoft.searchlib
      TaskManager.execute
      1. com.jaeksoft.searchlib.index.WriterLocal.close(WriterLocal.java:94)
      2. com.jaeksoft.searchlib.index.WriterLocal.optimizeNoLock(WriterLocal.java:321)
      3. com.jaeksoft.searchlib.index.WriterLocal.optimize(WriterLocal.java:329)
      4. com.jaeksoft.searchlib.index.IndexSingle.optimize(IndexSingle.java:105)
      5. com.jaeksoft.searchlib.Client.optimize(Client.java:218)
      6. com.jaeksoft.searchlib.scheduler.task.TaskOptimizeIndex.execute(TaskOptimizeIndex.java:61)
      7. com.jaeksoft.searchlib.scheduler.TaskItem.run(TaskItem.java:89)
      8. com.jaeksoft.searchlib.scheduler.TaskManager.execute(TaskManager.java:221)
      8 frames
    4. quartz
      SimpleThreadPool$WorkerThread.run
      1. org.quartz.core.JobRunShell.run(JobRunShell.java:216)
      2. org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549)
      2 frames