java.util.NoSuchElementException

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.

  • I scheduled a task in my nexus repository to remove all old snapshots version kept on the harddrive. The problem is that the artifacts are not deleted and I found a stack trace in the log file. {noformat} 2009-01-07 11:22:42.946 INFO [pxpool-1-thread-10:] - org.sonatype.nexus.feeds.FeedRecorder:default: Removing snapshots from repository group with ID=snapshot : Process started on Wed Jan 07 11:22:42 EST 2009, not yet finished. 2009-01-07 11:22:42.946 INFO [pxpool-1-thread-10:] - org.sonatype.nexus.maven.tasks.SnapshotRemover:default: Removing old SNAPSHOT deployments from snapshot repository group. 2009-01-07 11:23:12.255 WARN [pxpool-1-thread-10:] - org.sonatype.nexus.proxy.walker.Walker:default: Walking aborted, cause: java.util.NoSuchElementException at java.util.TreeMap.key(TreeMap.java:433) at java.util.TreeMap.lastKey(TreeMap.java:297) at java.util.TreeSet.last(TreeSet.java:417) at org.sonatype.nexus.maven.tasks.DefaultSnapshotRemover$SnapshotRemoverWalkerProcessor.onCollectionExit(DefaultSnapshotRemover.java:410) at org.sonatype.nexus.proxy.walker.DefaultWalker.onCollectionExit(DefaultWalker.java:373) at org.sonatype.nexus.proxy.walker.DefaultWalker.walkRecursive(DefaultWalker.java:290) at org.sonatype.nexus.proxy.walker.DefaultWalker.walkRecursive(DefaultWalker.java:277) at org.sonatype.nexus.proxy.walker.DefaultWalker.walkRecursive(DefaultWalker.java:277) at org.sonatype.nexus.proxy.walker.DefaultWalker.walkRecursive(DefaultWalker.java:277) at org.sonatype.nexus.proxy.walker.DefaultWalker.walkRecursive(DefaultWalker.java:277) at org.sonatype.nexus.proxy.walker.DefaultWalker.walkRecursive(DefaultWalker.java:277) at org.sonatype.nexus.proxy.walker.DefaultWalker.walk(DefaultWalker.java:149) at org.sonatype.nexus.proxy.walker.DefaultWalker.walk(DefaultWalker.java:55) at org.sonatype.nexus.maven.tasks.DefaultSnapshotRemover.removeSnapshotsFromMavenRepository(DefaultSnapshotRemover.java:180) at org.sonatype.nexus.maven.tasks.DefaultSnapshotRemover.removeSnapshots(DefaultSnapshotRemover.java:121) at org.sonatype.nexus.DefaultNexus.removeSnapshots(DefaultNexus.java:958) at org.sonatype.nexus.maven.tasks.SnapshotRemoverTask.doRun(SnapshotRemoverTask.java:101) at org.sonatype.nexus.maven.tasks.SnapshotRemoverTask.doRun(SnapshotRemoverTask.java:37) 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:269) at java.util.concurrent.FutureTask.run(FutureTask.java:123) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:65) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:168) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675) at java.lang.Thread.run(Thread.java:595) 2009-01-07 11:23:13.533 INFO [pxpool-1-thread-10:] - org.sonatype.nexus.feeds.FeedRecorder:default: Removing snapshots from repository group with ID=snapshot : Process started on Wed Jan 07 11:22:42 EST 2009, finished successfully on Wed Jan 07 11:23:13 EST 2009 {noformat}
    via by Deleted User,
  • I scheduled a task in my nexus repository to remove all old snapshots version kept on the harddrive. The problem is that the artifacts are not deleted and I found a stack trace in the log file. {noformat} 2009-01-07 11:22:42.946 INFO [pxpool-1-thread-10:] - org.sonatype.nexus.feeds.FeedRecorder:default: Removing snapshots from repository group with ID=snapshot : Process started on Wed Jan 07 11:22:42 EST 2009, not yet finished. 2009-01-07 11:22:42.946 INFO [pxpool-1-thread-10:] - org.sonatype.nexus.maven.tasks.SnapshotRemover:default: Removing old SNAPSHOT deployments from snapshot repository group. 2009-01-07 11:23:12.255 WARN [pxpool-1-thread-10:] - org.sonatype.nexus.proxy.walker.Walker:default: Walking aborted, cause: java.util.NoSuchElementException at java.util.TreeMap.key(TreeMap.java:433) at java.util.TreeMap.lastKey(TreeMap.java:297) at java.util.TreeSet.last(TreeSet.java:417) at org.sonatype.nexus.maven.tasks.DefaultSnapshotRemover$SnapshotRemoverWalkerProcessor.onCollectionExit(DefaultSnapshotRemover.java:410) at org.sonatype.nexus.proxy.walker.DefaultWalker.onCollectionExit(DefaultWalker.java:373) at org.sonatype.nexus.proxy.walker.DefaultWalker.walkRecursive(DefaultWalker.java:290) at org.sonatype.nexus.proxy.walker.DefaultWalker.walkRecursive(DefaultWalker.java:277) at org.sonatype.nexus.proxy.walker.DefaultWalker.walkRecursive(DefaultWalker.java:277) at org.sonatype.nexus.proxy.walker.DefaultWalker.walkRecursive(DefaultWalker.java:277) at org.sonatype.nexus.proxy.walker.DefaultWalker.walkRecursive(DefaultWalker.java:277) at org.sonatype.nexus.proxy.walker.DefaultWalker.walkRecursive(DefaultWalker.java:277) at org.sonatype.nexus.proxy.walker.DefaultWalker.walk(DefaultWalker.java:149) at org.sonatype.nexus.proxy.walker.DefaultWalker.walk(DefaultWalker.java:55) at org.sonatype.nexus.maven.tasks.DefaultSnapshotRemover.removeSnapshotsFromMavenRepository(DefaultSnapshotRemover.java:180) at org.sonatype.nexus.maven.tasks.DefaultSnapshotRemover.removeSnapshots(DefaultSnapshotRemover.java:121) at org.sonatype.nexus.DefaultNexus.removeSnapshots(DefaultNexus.java:958) at org.sonatype.nexus.maven.tasks.SnapshotRemoverTask.doRun(SnapshotRemoverTask.java:101) at org.sonatype.nexus.maven.tasks.SnapshotRemoverTask.doRun(SnapshotRemoverTask.java:37) 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:269) at java.util.concurrent.FutureTask.run(FutureTask.java:123) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:65) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:168) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675) at java.lang.Thread.run(Thread.java:595) 2009-01-07 11:23:13.533 INFO [pxpool-1-thread-10:] - org.sonatype.nexus.feeds.FeedRecorder:default: Removing snapshots from repository group with ID=snapshot : Process started on Wed Jan 07 11:22:42 EST 2009, finished successfully on Wed Jan 07 11:23:13 EST 2009 {noformat}
    via by Deleted User,
  • Genesys Info Mart 7.6.x Release Note
    via by Unknown author,
  • Stacey error in Tree Annotator
    via by Elisa Ramos,
  • Infinite loop
    via GitHub by Mastaba
    ,
    • java.util.NoSuchElementException at java.util.TreeMap.key(TreeMap.java:433) at java.util.TreeMap.lastKey(TreeMap.java:297) at java.util.TreeSet.last(TreeSet.java:417) at org.sonatype.nexus.maven.tasks.DefaultSnapshotRemover$SnapshotRemoverWalkerProcessor.onCollectionExit(DefaultSnapshotRemover.java:410) at org.sonatype.nexus.proxy.walker.DefaultWalker.onCollectionExit(DefaultWalker.java:373) at org.sonatype.nexus.proxy.walker.DefaultWalker.walkRecursive(DefaultWalker.java:290) at org.sonatype.nexus.proxy.walker.DefaultWalker.walkRecursive(DefaultWalker.java:277) at org.sonatype.nexus.proxy.walker.DefaultWalker.walkRecursive(DefaultWalker.java:277) at org.sonatype.nexus.proxy.walker.DefaultWalker.walkRecursive(DefaultWalker.java:277) at org.sonatype.nexus.proxy.walker.DefaultWalker.walkRecursive(DefaultWalker.java:277) at org.sonatype.nexus.proxy.walker.DefaultWalker.walkRecursive(DefaultWalker.java:277) at org.sonatype.nexus.proxy.walker.DefaultWalker.walk(DefaultWalker.java:149) at org.sonatype.nexus.proxy.walker.DefaultWalker.walk(DefaultWalker.java:55) at org.sonatype.nexus.maven.tasks.DefaultSnapshotRemover.removeSnapshotsFromMavenRepository(DefaultSnapshotRemover.java:180) at org.sonatype.nexus.maven.tasks.DefaultSnapshotRemover.removeSnapshots(DefaultSnapshotRemover.java:121) at org.sonatype.nexus.DefaultNexus.removeSnapshots(DefaultNexus.java:958) at org.sonatype.nexus.maven.tasks.SnapshotRemoverTask.doRun(SnapshotRemoverTask.java:101) at org.sonatype.nexus.maven.tasks.SnapshotRemoverTask.doRun(SnapshotRemoverTask.java:37) 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:269) at java.util.concurrent.FutureTask.run(FutureTask.java:123) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:65) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:168) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675) at java.lang.Thread.run(Thread.java:595)

    Users with the same issue

    Unknown visitor1 times, last one,
    WoodenDoors
    2 times, last one,