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

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 Sonatype JIRA by Peter Lynch, 1 year ago
docID must be >= 0 and < maxDoc=6954 (got docID=6954)
java.lang.IllegalArgumentException: docID must be >= 0 and < maxDoc=6954 (got docID=6954)
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.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.tasks.PublishIndexesTask.doRun(PublishIndexesTask.java:59)
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)

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.