Uploaded image for project: 'Dev - Nexus Repo'
  1. Dev - Nexus Repo
  2. NEXUS-19034

NPE on "Purge unused snapshots" task

    XMLWordPrintable

    Details

      Description

      Existing cleanup tasks suddenly started to fail. I think it started with 3.15.0 or 3.15.1. I'm running 3.15.2 now.

      Task Name: Purge unused snapshots
      Stack-trace:
      org.sonatype.goodies.common.MultipleFailures$MultipleFailuresException: Failed to run task 'Purge unused Maven snapshot versions from *'; 4 failures
      	at org.sonatype.goodies.common.MultipleFailures.maybePropagate(MultipleFailures.java:95)
      	at org.sonatype.nexus.repository.RepositoryTaskSupport.execute(RepositoryTaskSupport.java:84)
      	at org.sonatype.nexus.scheduling.TaskSupport.call(TaskSupport.java:93)
      	at org.sonatype.nexus.quartz.internal.task.QuartzTaskJob.doExecute(QuartzTaskJob.java:145)
      	at org.sonatype.nexus.quartz.internal.task.QuartzTaskJob.execute(QuartzTaskJob.java:108)
      	at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
      	at org.sonatype.nexus.quartz.internal.QuartzThreadPool.lambda$0(QuartzThreadPool.java:143)
      	at org.sonatype.nexus.thread.internal.MDCAwareRunnable.run(MDCAwareRunnable.java:40)
      	at org.apache.shiro.subject.support.SubjectRunnable.doRun(SubjectRunnable.java:120)
      	at org.apache.shiro.subject.support.SubjectRunnable.run(SubjectRunnable.java:108)
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      	at java.lang.Thread.run(Thread.java:748)
      	Suppressed: java.lang.NullPointerException
      		at org.sonatype.nexus.repository.maven.internal.PurgeUnusedSnapshotsFacetImpl.lambda$2(PurgeUnusedSnapshotsFacetImpl.java:252)
      		at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:174)
      		at java.util.Iterator.forEachRemaining(Iterator.java:116)
      		at java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1801)
      		at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)
      		at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
      		at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708)
      		at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
      		at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499)
      		at org.sonatype.nexus.repository.maven.internal.PurgeUnusedSnapshotsFacetImpl.findNextPageOfUnusedSnapshots(PurgeUnusedSnapshotsFacetImpl.java:261)
      		at org.sonatype.nexus.repository.maven.internal.PurgeUnusedSnapshotsFacetImpl.deleteUnusedSnapshotComponents(PurgeUnusedSnapshotsFacetImpl.java:199)
      		at org.sonatype.nexus.transaction.TransactionalWrapper.proceedWithTransaction(TransactionalWrapper.java:56)
      		at org.sonatype.nexus.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:54)
      		at org.sonatype.nexus.repository.maven.internal.PurgeUnusedSnapshotsFacetImpl.purgeSnapshotsFromRepository(PurgeUnusedSnapshotsFacetImpl.java:167)
      		at org.sonatype.nexus.repository.maven.internal.PurgeUnusedSnapshotsFacetImpl.processAsHosted(PurgeUnusedSnapshotsFacetImpl.java:145)
      		at org.sonatype.nexus.repository.maven.internal.PurgeUnusedSnapshotsFacetImpl.purgeUnusedSnapshots(PurgeUnusedSnapshotsFacetImpl.java:134)
      		at org.sonatype.nexus.common.stateguard.MethodInvocationAction.run(MethodInvocationAction.java:39)
      		at org.sonatype.nexus.common.stateguard.StateGuard$GuardImpl.run(StateGuard.java:272)
      		at org.sonatype.nexus.common.stateguard.GuardedInterceptor.invoke(GuardedInterceptor.java:53)
      		at org.sonatype.nexus.repository.maven.internal.PurgeUnusedSnapshotsFacetImpl.lambda$1(PurgeUnusedSnapshotsFacetImpl.java:157)
      		at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184)
      		at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:175)
      		at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1382)
      		at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)
      		at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
      		at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151)
      		at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174)
      		at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
      		at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:418)
      		at org.sonatype.nexus.repository.maven.internal.PurgeUnusedSnapshotsFacetImpl.processAsGroup(PurgeUnusedSnapshotsFacetImpl.java:157)
      		at org.sonatype.nexus.repository.maven.internal.PurgeUnusedSnapshotsFacetImpl.purgeUnusedSnapshots(PurgeUnusedSnapshotsFacetImpl.java:131)
      		at org.sonatype.nexus.common.stateguard.MethodInvocationAction.run(MethodInvocationAction.java:39)
      		at org.sonatype.nexus.common.stateguard.StateGuard$GuardImpl.run(StateGuard.java:272)
      		at org.sonatype.nexus.common.stateguard.GuardedInterceptor.invoke(GuardedInterceptor.java:53)
      		at org.sonatype.nexus.repository.maven.internal.PurgeUnusedSnapshotsFacetImpl.lambda$1(PurgeUnusedSnapshotsFacetImpl.java:157)
      		at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184)
      		at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:175)
      		at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1382)
      		at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)
      		at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
      		at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151)
      		at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174)
      		at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
      		at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:418)
      		at org.sonatype.nexus.repository.maven.internal.PurgeUnusedSnapshotsFacetImpl.processAsGroup(PurgeUnusedSnapshotsFacetImpl.java:157)
      		at org.sonatype.nexus.repository.maven.internal.PurgeUnusedSnapshotsFacetImpl.purgeUnusedSnapshots(PurgeUnusedSnapshotsFacetImpl.java:131)
      		at org.sonatype.nexus.common.stateguard.MethodInvocationAction.run(MethodInvocationAction.java:39)
      		at org.sonatype.nexus.common.stateguard.StateGuard$GuardImpl.run(StateGuard.java:272)
      		at org.sonatype.nexus.common.stateguard.GuardedInterceptor.invoke(GuardedInterceptor.java:53)
      		at org.sonatype.nexus.repository.maven.tasks.PurgeMavenUnusedSnapshotsTask.execute(PurgeMavenUnusedSnapshotsTask.java:61)
      		at org.sonatype.nexus.repository.RepositoryTaskSupport.execute(RepositoryTaskSupport.java:73)
      		... 13 more
      	Suppressed: java.lang.NullPointerException
      		at org.sonatype.nexus.repository.maven.internal.PurgeUnusedSnapshotsFacetImpl.lambda$2(PurgeUnusedSnapshotsFacetImpl.java:252)
      		at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:174)
      		at java.util.Iterator.forEachRemaining(Iterator.java:116)
      		at java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1801)
      		at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)
      		at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
      		at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708)
      		at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
      		at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499)
      		at org.sonatype.nexus.repository.maven.internal.PurgeUnusedSnapshotsFacetImpl.findNextPageOfUnusedSnapshots(PurgeUnusedSnapshotsFacetImpl.java:261)
      		at org.sonatype.nexus.repository.maven.internal.PurgeUnusedSnapshotsFacetImpl.deleteUnusedSnapshotComponents(PurgeUnusedSnapshotsFacetImpl.java:199)
      		at org.sonatype.nexus.transaction.TransactionalWrapper.proceedWithTransaction(TransactionalWrapper.java:56)
      		at org.sonatype.nexus.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:54)
      		at org.sonatype.nexus.repository.maven.internal.PurgeUnusedSnapshotsFacetImpl.purgeSnapshotsFromRepository(PurgeUnusedSnapshotsFacetImpl.java:167)
      		at org.sonatype.nexus.repository.maven.internal.PurgeUnusedSnapshotsFacetImpl.processAsHosted(PurgeUnusedSnapshotsFacetImpl.java:145)
      		at org.sonatype.nexus.repository.maven.internal.PurgeUnusedSnapshotsFacetImpl.purgeUnusedSnapshots(PurgeUnusedSnapshotsFacetImpl.java:134)
      		at org.sonatype.nexus.common.stateguard.MethodInvocationAction.run(MethodInvocationAction.java:39)
      		at org.sonatype.nexus.common.stateguard.StateGuard$GuardImpl.run(StateGuard.java:272)
      		at org.sonatype.nexus.common.stateguard.GuardedInterceptor.invoke(GuardedInterceptor.java:53)
      		at org.sonatype.nexus.repository.maven.tasks.PurgeMavenUnusedSnapshotsTask.execute(PurgeMavenUnusedSnapshotsTask.java:61)
      		at org.sonatype.nexus.repository.RepositoryTaskSupport.execute(RepositoryTaskSupport.java:73)
      		... 13 more
      	Suppressed: java.lang.NullPointerException
      		at org.sonatype.nexus.repository.maven.internal.PurgeUnusedSnapshotsFacetImpl.lambda$2(PurgeUnusedSnapshotsFacetImpl.java:252)
      		at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:174)
      		at java.util.Iterator.forEachRemaining(Iterator.java:116)
      		at java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1801)
      		at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)
      		at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
      		at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708)
      		at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
      		at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499)
      		at org.sonatype.nexus.repository.maven.internal.PurgeUnusedSnapshotsFacetImpl.findNextPageOfUnusedSnapshots(PurgeUnusedSnapshotsFacetImpl.java:261)
      		at org.sonatype.nexus.repository.maven.internal.PurgeUnusedSnapshotsFacetImpl.deleteUnusedSnapshotComponents(PurgeUnusedSnapshotsFacetImpl.java:199)
      		at org.sonatype.nexus.transaction.TransactionalWrapper.proceedWithTransaction(TransactionalWrapper.java:56)
      		at org.sonatype.nexus.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:54)
      		at org.sonatype.nexus.repository.maven.internal.PurgeUnusedSnapshotsFacetImpl.purgeSnapshotsFromRepository(PurgeUnusedSnapshotsFacetImpl.java:167)
      		at org.sonatype.nexus.repository.maven.internal.PurgeUnusedSnapshotsFacetImpl.processAsHosted(PurgeUnusedSnapshotsFacetImpl.java:145)
      		at org.sonatype.nexus.repository.maven.internal.PurgeUnusedSnapshotsFacetImpl.purgeUnusedSnapshots(PurgeUnusedSnapshotsFacetImpl.java:134)
      		at org.sonatype.nexus.common.stateguard.MethodInvocationAction.run(MethodInvocationAction.java:39)
      		at org.sonatype.nexus.common.stateguard.StateGuard$GuardImpl.run(StateGuard.java:272)
      		at org.sonatype.nexus.common.stateguard.GuardedInterceptor.invoke(GuardedInterceptor.java:53)
      		at org.sonatype.nexus.repository.maven.internal.PurgeUnusedSnapshotsFacetImpl.lambda$1(PurgeUnusedSnapshotsFacetImpl.java:157)
      		at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184)
      		at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:175)
      		at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1382)
      		at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)
      		at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
      		at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151)
      		at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174)
      		at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
      		at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:418)
      		at org.sonatype.nexus.repository.maven.internal.PurgeUnusedSnapshotsFacetImpl.processAsGroup(PurgeUnusedSnapshotsFacetImpl.java:157)
      		at org.sonatype.nexus.repository.maven.internal.PurgeUnusedSnapshotsFacetImpl.purgeUnusedSnapshots(PurgeUnusedSnapshotsFacetImpl.java:131)
      		at org.sonatype.nexus.common.stateguard.MethodInvocationAction.run(MethodInvocationAction.java:39)
      		at org.sonatype.nexus.common.stateguard.StateGuard$GuardImpl.run(StateGuard.java:272)
      		at org.sonatype.nexus.common.stateguard.GuardedInterceptor.invoke(GuardedInterceptor.java:53)
      		at org.sonatype.nexus.repository.maven.tasks.PurgeMavenUnusedSnapshotsTask.execute(PurgeMavenUnusedSnapshotsTask.java:61)
      		at org.sonatype.nexus.repository.RepositoryTaskSupport.execute(RepositoryTaskSupport.java:73)
      		... 13 more
      	Suppressed: java.lang.NullPointerException
      		at org.sonatype.nexus.repository.maven.internal.PurgeUnusedSnapshotsFacetImpl.lambda$2(PurgeUnusedSnapshotsFacetImpl.java:252)
      		at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:174)
      		at java.util.Iterator.forEachRemaining(Iterator.java:116)
      		at java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1801)
      		at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)
      		at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
      		at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708)
      		at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
      		at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499)
      		at org.sonatype.nexus.repository.maven.internal.PurgeUnusedSnapshotsFacetImpl.findNextPageOfUnusedSnapshots(PurgeUnusedSnapshotsFacetImpl.java:261)
      		at org.sonatype.nexus.repository.maven.internal.PurgeUnusedSnapshotsFacetImpl.deleteUnusedSnapshotComponents(PurgeUnusedSnapshotsFacetImpl.java:199)
      		at org.sonatype.nexus.transaction.TransactionalWrapper.proceedWithTransaction(TransactionalWrapper.java:56)
      		at org.sonatype.nexus.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:54)
      		at org.sonatype.nexus.repository.maven.internal.PurgeUnusedSnapshotsFacetImpl.purgeSnapshotsFromRepository(PurgeUnusedSnapshotsFacetImpl.java:167)
      		at org.sonatype.nexus.repository.maven.internal.PurgeUnusedSnapshotsFacetImpl.processAsHosted(PurgeUnusedSnapshotsFacetImpl.java:145)
      		at org.sonatype.nexus.repository.maven.internal.PurgeUnusedSnapshotsFacetImpl.purgeUnusedSnapshots(PurgeUnusedSnapshotsFacetImpl.java:134)
      		at org.sonatype.nexus.common.stateguard.MethodInvocationAction.run(MethodInvocationAction.java:39)
      		at org.sonatype.nexus.common.stateguard.StateGuard$GuardImpl.run(StateGuard.java:272)
      		at org.sonatype.nexus.common.stateguard.GuardedInterceptor.invoke(GuardedInterceptor.java:53)
      		at org.sonatype.nexus.repository.maven.tasks.PurgeMavenUnusedSnapshotsTask.execute(PurgeMavenUnusedSnapshotsTask.java:61)
      		at org.sonatype.nexus.repository.RepositoryTaskSupport.execute(RepositoryTaskSupport.java:73)
      		... 13 more
      
      

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            tumbl3w33d tumbl3w33d
            Last Updated By:
            Peter Lynch
            Team:
            NXRM - Cypher
            Votes:
            8 Vote for this issue
            Watchers:
            17 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Date of First Response:

                tigCommentSecurity.panel-title