org.apache.lucene.store.AlreadyClosedException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Task ID: 68 Task Name: Reindex All Repositories Stack trace: org.apache.lucene.store.AlreadyClosedException: this IndexReader is closed at org.apache.lucene.index.IndexReader.ensureOpen(IndexReader.java:177) at org.apache.lucene.index.DirectoryReader.document(DirectoryReader.java:531) at org.apache.lucene.index.MultiReader.document(MultiReader.java:251) at org.apache.lucene.index.IndexReader.document(IndexReader.java:658) at org.apache.maven.index.updater.IndexDataWriter.writeDocuments(IndexDataWriter.java:149) at org.apache.maven.index.updater.IndexDataWriter.write(IndexDataWriter.java:87) at org.apache.maven.index.packer.DefaultIndexPacker.writeIndexData(DefaultIndexPacker.java:426) at org.apache.maven.index.packer.DefaultIndexPacker.packIndex(DefaultIndexPacker.java:187) at org.sonatype.nexus.index.DefaultIndexerManager.publishRepositoryIndex(DefaultIndexerManager.java:1230) at org.sonatype.nexus.index.DefaultIndexerManager.publishAllIndex(DefaultIndexerManager.java:1143) at org.sonatype.nexus.index.DefaultIndexerManager.reindexAllRepositories(DefaultIndexerManager.java:799) at org.sonatype.nexus.tasks.ReindexTaskHandlerLegacy.reindexAllRepositories(ReindexTaskHandlerLegacy.java:47) at org.sonatype.nexus.tasks.AbstractIndexerTask.doRun(AbstractIndexerTask.java:80) at org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:192) at org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:338) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:207) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:679)
    via by Emil Genchev,
  • {code} 2008-12-19 15:41:32.323 INFO [pxpool-1-thread-1:] - org.sonatype.nexus.feeds.FeedRecorder:default: Reindexing repository with ID=snapshots : Process started on Fri Dec 19 15:41:22 NZDT 2008, finished on Fri Dec 19 15:41:32 NZDT 2008 with error. Error message is: org.apache.lucene.store.AlreadyClosedException, this IndexReader is closed Strack trace: org.apache.lucene.store.AlreadyClosedException: this IndexReader is closed at org.apache.lucene.index.IndexReader.ensureOpen(IndexReader.java:163) at org.apache.lucene.index.SegmentReader.document(SegmentReader.java:655) at org.apache.lucene.index.MultiSegmentReader.document(MultiSegmentReader.java:257) at org.apache.lucene.index.IndexReader.document(IndexReader.java:525) at org.sonatype.nexus.index.context.DefaultIndexingContext.rebuildGroups(DefaultIndexingContext.java:724) at org.sonatype.nexus.index.context.DefaultIndexingContext.merge(DefaultIndexingContext.java:586) at org.sonatype.nexus.index.context.DefaultIndexingContext.merge(DefaultIndexingContext.java:524) at org.sonatype.nexus.index.DefaultIndexerManager.mergeRepositoryGroupIndexWithMember(DefaultIndexerManager.java:804) at org.sonatype.nexus.index.DefaultIndexerManager.reindexRepository(DefaultIndexerManager.java:751) at org.sonatype.nexus.index.DefaultIndexerManager.reindexRepository(DefaultIndexerManager.java:691) at org.sonatype.nexus.DefaultNexus.reindexRepository(DefaultNexus.java:1397) at org.sonatype.nexus.tasks.ReindexTask.doRun(ReindexTask.java:47) at org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:147) at org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:345) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:207) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619) org.apache.lucene.store.AlreadyClosedException: this IndexReader is closed at org.apache.lucene.index.IndexReader.ensureOpen(IndexReader.java:163) at org.apache.lucene.index.SegmentReader.document(SegmentReader.java:655) at org.apache.lucene.index.MultiSegmentReader.document(MultiSegmentReader.java:257) at org.apache.lucene.index.IndexReader.document(IndexReader.java:525) at org.sonatype.nexus.index.context.DefaultIndexingContext.rebuildGroups(DefaultIndexingContext.java:724) at org.sonatype.nexus.index.context.DefaultIndexingContext.merge(DefaultIndexingContext.java:586) at org.sonatype.nexus.index.context.DefaultIndexingContext.merge(DefaultIndexingContext.java:524) at org.sonatype.nexus.index.DefaultIndexerManager.mergeRepositoryGroupIndexWithMember(DefaultIndexerManager.java:804) at org.sonatype.nexus.index.DefaultIndexerManager.reindexRepository(DefaultIndexerManager.java:751) at org.sonatype.nexus.index.DefaultIndexerManager.reindexRepository(DefaultIndexerManager.java:691) at org.sonatype.nexus.DefaultNexus.reindexRepository(DefaultNexus.java:1397) at org.sonatype.nexus.tasks.ReindexTask.doRun(ReindexTask.java:47) at org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:147) at org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:345) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:207) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619) 2008-12-19 15:41:52.470 INFO [pxpool-1-thread-2:] - org.sonatype.nexus.index.IndexerManager:default: Publishing best index for repository releases {code}
    via by Mark Derricutt,
  • {code} 2008-12-19 15:41:32.323 INFO [pxpool-1-thread-1:] - org.sonatype.nexus.feeds.FeedRecorder:default: Reindexing repository with ID=snapshots : Process started on Fri Dec 19 15:41:22 NZDT 2008, finished on Fri Dec 19 15:41:32 NZDT 2008 with error. Error message is: org.apache.lucene.store.AlreadyClosedException, this IndexReader is closed Strack trace: org.apache.lucene.store.AlreadyClosedException: this IndexReader is closed at org.apache.lucene.index.IndexReader.ensureOpen(IndexReader.java:163) at org.apache.lucene.index.SegmentReader.document(SegmentReader.java:655) at org.apache.lucene.index.MultiSegmentReader.document(MultiSegmentReader.java:257) at org.apache.lucene.index.IndexReader.document(IndexReader.java:525) at org.sonatype.nexus.index.context.DefaultIndexingContext.rebuildGroups(DefaultIndexingContext.java:724) at org.sonatype.nexus.index.context.DefaultIndexingContext.merge(DefaultIndexingContext.java:586) at org.sonatype.nexus.index.context.DefaultIndexingContext.merge(DefaultIndexingContext.java:524) at org.sonatype.nexus.index.DefaultIndexerManager.mergeRepositoryGroupIndexWithMember(DefaultIndexerManager.java:804) at org.sonatype.nexus.index.DefaultIndexerManager.reindexRepository(DefaultIndexerManager.java:751) at org.sonatype.nexus.index.DefaultIndexerManager.reindexRepository(DefaultIndexerManager.java:691) at org.sonatype.nexus.DefaultNexus.reindexRepository(DefaultNexus.java:1397) at org.sonatype.nexus.tasks.ReindexTask.doRun(ReindexTask.java:47) at org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:147) at org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:345) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:207) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619) org.apache.lucene.store.AlreadyClosedException: this IndexReader is closed at org.apache.lucene.index.IndexReader.ensureOpen(IndexReader.java:163) at org.apache.lucene.index.SegmentReader.document(SegmentReader.java:655) at org.apache.lucene.index.MultiSegmentReader.document(MultiSegmentReader.java:257) at org.apache.lucene.index.IndexReader.document(IndexReader.java:525) at org.sonatype.nexus.index.context.DefaultIndexingContext.rebuildGroups(DefaultIndexingContext.java:724) at org.sonatype.nexus.index.context.DefaultIndexingContext.merge(DefaultIndexingContext.java:586) at org.sonatype.nexus.index.context.DefaultIndexingContext.merge(DefaultIndexingContext.java:524) at org.sonatype.nexus.index.DefaultIndexerManager.mergeRepositoryGroupIndexWithMember(DefaultIndexerManager.java:804) at org.sonatype.nexus.index.DefaultIndexerManager.reindexRepository(DefaultIndexerManager.java:751) at org.sonatype.nexus.index.DefaultIndexerManager.reindexRepository(DefaultIndexerManager.java:691) at org.sonatype.nexus.DefaultNexus.reindexRepository(DefaultNexus.java:1397) at org.sonatype.nexus.tasks.ReindexTask.doRun(ReindexTask.java:47) at org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:147) at org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:345) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:207) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619) 2008-12-19 15:41:52.470 INFO [pxpool-1-thread-2:] - org.sonatype.nexus.index.IndexerManager:default: Publishing best index for repository releases {code}
    via by Mark Derricutt,
  • How to safely close an IndexReader?
    via Stack Overflow by Zenofo
    ,
    • org.apache.lucene.store.AlreadyClosedException: this IndexReader is closed at org.apache.lucene.index.IndexReader.ensureOpen(IndexReader.java:177) at org.apache.lucene.index.DirectoryReader.document(DirectoryReader.java:531) at org.apache.lucene.index.MultiReader.document(MultiReader.java:251) at org.apache.lucene.index.IndexReader.document(IndexReader.java:658) at org.apache.maven.index.updater.IndexDataWriter.writeDocuments(IndexDataWriter.java:149) at org.apache.maven.index.updater.IndexDataWriter.write(IndexDataWriter.java:87) at org.apache.maven.index.packer.DefaultIndexPacker.writeIndexData(DefaultIndexPacker.java:426) at org.apache.maven.index.packer.DefaultIndexPacker.packIndex(DefaultIndexPacker.java:187) at org.sonatype.nexus.index.DefaultIndexerManager.publishRepositoryIndex(DefaultIndexerManager.java:1230) at org.sonatype.nexus.index.DefaultIndexerManager.reindexRepository(DefaultIndexerManager.java:838)
    No Bugmate found.