java.lang.IllegalArgumentException: docID must be >= 0 and < maxDoc=6954 (got docID=6954)

Sonatype JIRA | Peter Lynch | 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

    Have seen two of these types of errors come in from APR using 2.3 or greater, never before that. Would like to identify the cause of these and if it indicates a real problem. {noformat} java.lang.IllegalArgumentException: docID must be >= 0 and < maxDoc=6954 (got docID=6954) at org.apache.lucene.index.IndexReader.document(IndexReader.java:1136) at org.apache.maven.index.updater.IndexDataWriter.writeDocuments(IndexDataWriter.java:173) at org.apache.maven.index.updater.IndexDataWriter.write(IndexDataWriter.java:93) at org.apache.maven.index.packer.DefaultIndexPacker.writeIndexData(DefaultIndexPacker.java:436) at org.apache.maven.index.packer.DefaultIndexPacker.packIndex(DefaultIndexPacker.java:137) at org.sonatype.nexus.index.DefaultIndexerManager.publishRepositoryIndex(DefaultIndexerManager.java:1479) at org.sonatype.nexus.index.DefaultIndexerManager.access$1000(DefaultIndexerManager.java:186) at org.sonatype.nexus.index.DefaultIndexerManager$10.run(DefaultIndexerManager.java:1438) at org.sonatype.nexus.index.DefaultIndexerManager.shared(DefaultIndexerManager.java:2389) at org.sonatype.nexus.index.DefaultIndexerManager.publishRepositoryIndex(DefaultIndexerManager.java:1432) at org.sonatype.nexus.index.DefaultIndexerManager.publishAllIndex(DefaultIndexerManager.java:1369) at org.sonatype.nexus.tasks.PublishIndexesTask.doRun(PublishIndexesTask.java:59) at org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:166) at org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:459) 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:206) 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:662) {noformat}

    Sonatype JIRA | 4 years ago | Peter Lynch
    java.lang.IllegalArgumentException: docID must be >= 0 and < maxDoc=6954 (got docID=6954)
  2. 0

    Program crash

    docfetcher | 7 years ago | *anonymous
    java.lang.IllegalArgumentException: attempt to access a deleted document
  3. 0

    Crashed when the doc being previewed is deleted

    docfetcher | 7 years ago | *anonymous
    java.lang.IllegalArgumentException: attempt to access a deleted document
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    System error

    docfetcher | 8 years ago | *anonymous
    java.lang.IllegalArgumentException: attempt to access a deleted document
  6. 0

    Universal Image Loader : IllegalArgumentException when using FileNameGenerator with extension

    Stack Overflow | 2 years ago
    java.lang.IllegalArgumentException: keys must match regex [a-z0-9_-] {1,64}: "1828294.jpg" at com.nostra13.universalimageloader.cache.disc.impl.ext.DiskLruCache.valida teKey(DiskLruCache.java:697) at com.nostra13.universalimageloader.cache.disc.impl.ext.DiskLruCache.get(Di skLruCache.java:414) at com.nostra13.universalimageloader.cache.disc.impl.ext.LruDiscCache.get(Lr uDiscCache.java:133) at com.nostra13.universalimageloader.core.ImageLoaderEngine$1.run(ImageLoade rEngine.java:72) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java :1112) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.jav a:587)

    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. java.lang.IllegalArgumentException

      docID must be >= 0 and < maxDoc=6954 (got docID=6954)

      at org.apache.lucene.index.IndexReader.document()
    2. Lucene
      IndexReader.document
      1. org.apache.lucene.index.IndexReader.document(IndexReader.java:1136)
      1 frame
    3. Maven :: Indexer Core
      DefaultIndexPacker.packIndex
      1. org.apache.maven.index.updater.IndexDataWriter.writeDocuments(IndexDataWriter.java:173)
      2. org.apache.maven.index.updater.IndexDataWriter.write(IndexDataWriter.java:93)
      3. org.apache.maven.index.packer.DefaultIndexPacker.writeIndexData(DefaultIndexPacker.java:436)
      4. org.apache.maven.index.packer.DefaultIndexPacker.packIndex(DefaultIndexPacker.java:137)
      4 frames
    4. Sonatype Nexus Indexer
      DefaultIndexerManager.publishAllIndex
      1. org.sonatype.nexus.index.DefaultIndexerManager.publishRepositoryIndex(DefaultIndexerManager.java:1479)
      2. org.sonatype.nexus.index.DefaultIndexerManager.access$1000(DefaultIndexerManager.java:186)
      3. org.sonatype.nexus.index.DefaultIndexerManager$10.run(DefaultIndexerManager.java:1438)
      4. org.sonatype.nexus.index.DefaultIndexerManager.shared(DefaultIndexerManager.java:2389)
      5. org.sonatype.nexus.index.DefaultIndexerManager.publishRepositoryIndex(DefaultIndexerManager.java:1432)
      6. org.sonatype.nexus.index.DefaultIndexerManager.publishAllIndex(DefaultIndexerManager.java:1369)
      6 frames
    5. ${project.groupId}:${project.artifactId}
      AbstractNexusTask.call
      1. org.sonatype.nexus.tasks.PublishIndexesTask.doRun(PublishIndexesTask.java:59)
      2. org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:166)
      2 frames
    6. ${project.groupId}:${project.artifactId}
      DefaultScheduledTask.call
      1. org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:459)
      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:206)
      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:662)
      7 frames