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

Sonatype JIRA | Mark Derricutt | 8 years ago
  1. 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
  2. 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
  3. 0
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
  6. 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 | 5 years ago | Emil Genchev
    org.apache.lucene.store.AlreadyClosedException: this IndexReader is closed

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    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:163)
      2. org.apache.lucene.index.SegmentReader.document(SegmentReader.java:655)
      3. org.apache.lucene.index.MultiSegmentReader.document(MultiSegmentReader.java:257)
      4. org.apache.lucene.index.IndexReader.document(IndexReader.java:525)
      4 frames
    3. Sonatype Nexus Indexer
      DefaultIndexerManager.reindexRepository
      1. org.sonatype.nexus.index.context.DefaultIndexingContext.rebuildGroups(DefaultIndexingContext.java:724)
      2. org.sonatype.nexus.index.context.DefaultIndexingContext.merge(DefaultIndexingContext.java:586)
      3. org.sonatype.nexus.index.context.DefaultIndexingContext.merge(DefaultIndexingContext.java:524)
      4. org.sonatype.nexus.index.DefaultIndexerManager.mergeRepositoryGroupIndexWithMember(DefaultIndexerManager.java:804)
      5. org.sonatype.nexus.index.DefaultIndexerManager.reindexRepository(DefaultIndexerManager.java:751)
      6. org.sonatype.nexus.index.DefaultIndexerManager.reindexRepository(DefaultIndexerManager.java:691)
      6 frames
    4. ${project.groupId}:${project.artifactId}
      AbstractNexusTask.call
      1. org.sonatype.nexus.DefaultNexus.reindexRepository(DefaultNexus.java:1397)
      2. org.sonatype.nexus.tasks.ReindexTask.doRun(ReindexTask.java:47)
      3. org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:147)
      3 frames
    5. ${project.groupId}:${project.artifactId}
      DefaultScheduledTask.call
      1. org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:345)
      1 frame
    6. 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:619)
      7 frames