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

Sonatype JIRA | Emil Genchev | 6 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    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)

    Sonatype JIRA | 6 years ago | Emil Genchev
    org.apache.lucene.store.AlreadyClosedException: this IndexReader is closed
  2. 0
  3. 0
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    {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}

    Sonatype JIRA | 8 years ago | Mark Derricutt
    org.apache.lucene.store.AlreadyClosedException: this IndexReader is closed
  6. 0

    {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}

    Sonatype JIRA | 8 years ago | Mark Derricutt
    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
      IndexReader.document
      1. org.apache.lucene.index.IndexReader.ensureOpen(IndexReader.java:177)
      2. org.apache.lucene.index.DirectoryReader.document(DirectoryReader.java:531)
      3. org.apache.lucene.index.MultiReader.document(MultiReader.java:251)
      4. org.apache.lucene.index.IndexReader.document(IndexReader.java:658)
      4 frames
    3. Maven :: Indexer Core
      DefaultIndexPacker.packIndex
      1. org.apache.maven.index.updater.IndexDataWriter.writeDocuments(IndexDataWriter.java:149)
      2. org.apache.maven.index.updater.IndexDataWriter.write(IndexDataWriter.java:87)
      3. org.apache.maven.index.packer.DefaultIndexPacker.writeIndexData(DefaultIndexPacker.java:426)
      4. org.apache.maven.index.packer.DefaultIndexPacker.packIndex(DefaultIndexPacker.java:187)
      4 frames
    4. Sonatype Nexus Indexer
      DefaultIndexerManager.reindexAllRepositories
      1. org.sonatype.nexus.index.DefaultIndexerManager.publishRepositoryIndex(DefaultIndexerManager.java:1230)
      2. org.sonatype.nexus.index.DefaultIndexerManager.publishAllIndex(DefaultIndexerManager.java:1143)
      3. org.sonatype.nexus.index.DefaultIndexerManager.reindexAllRepositories(DefaultIndexerManager.java:799)
      3 frames
    5. ${project.groupId}:${project.artifactId}
      AbstractNexusTask.call
      1. org.sonatype.nexus.tasks.ReindexTaskHandlerLegacy.reindexAllRepositories(ReindexTaskHandlerLegacy.java:47)
      2. org.sonatype.nexus.tasks.AbstractIndexerTask.doRun(AbstractIndexerTask.java:80)
      3. org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:192)
      3 frames
    6. ${project.groupId}:${project.artifactId}
      DefaultScheduledTask.call
      1. org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:338)
      1 frame
    7. Java RT
      Thread.run
      1. java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
      2. java.util.concurrent.FutureTask.run(FutureTask.java:138)
      3. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98)
      4. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:207)
      5. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      6. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      7. java.lang.Thread.run(Thread.java:679)
      7 frames