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

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via Apache's JIRA Issue Tracker by Markus Jelsma, 1 year ago
this Directory is closed
via lucene-solr-user by Alain Rogister, 1 year ago
this Directory is closed
org.apache.lucene.store.AlreadyClosedException: this Directory is closed
at org.apache.lucene.store.Directory.ensureOpen(Directory.java:255)
at org.apache.lucene.store.FSDirectory.fileExists(FSDirectory.java:548)
at org.apache.lucene.index.SegmentInfo.addIfExists(SegmentInfo.java:574)
at org.apache.lucene.index.SegmentInfo.files(SegmentInfo.java:600)
at org.apache.lucene.index.SegmentInfos.files(SegmentInfos.java:803)
at org.apache.lucene.index.IndexFileDeleter.incRef(IndexFileDeleter.java:458)
at org.apache.lucene.index.IndexWriter.startCommit(IndexWriter.java:5576)
at org.apache.lucene.index.IndexWriter.commit(IndexWriter.java:4160)
at org.apache.lucene.index.IndexWriter.closeInternal(IndexWriter.java:2260)
at org.apache.lucene.index.IndexWriter.close(IndexWriter.java:2204)
at com.jaeksoft.searchlib.index.WriterLocal.close(WriterLocal.java:94)
at com.jaeksoft.searchlib.index.WriterLocal.deleteDocumentsNoLock(WriterLocal.java:393)
at com.jaeksoft.searchlib.index.WriterLocal.deleteDocuments(WriterLocal.java:410)
at com.jaeksoft.searchlib.index.IndexSingle.deleteDocuments(IndexSingle.java:148)
at com.jaeksoft.searchlib.Client.deleteDocuments(Client.java:198)
at com.jaeksoft.searchlib.crawler.web.database.UrlManager.updateCrawlTarget(UrlManager.java:621)
at com.jaeksoft.searchlib.crawler.web.database.UrlCrawlQueue.updateCrawls(UrlCrawlQueue.java:191)
at com.jaeksoft.searchlib.crawler.web.database.UrlCrawlQueue.indexWork(UrlCrawlQueue.java:167)
at com.jaeksoft.searchlib.crawler.common.process.CrawlQueueAbstract.index(CrawlQueueAbstract.java:113)
at com.jaeksoft.searchlib.crawler.web.process.WebCrawlMaster.runner(WebCrawlMaster.java:140)
at com.jaeksoft.searchlib.process.ThreadAbstract.run(ThreadAbstract.java:256)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:679)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.