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

NullPointerException on "Purge unused snapshots" task

    Details

    • Story Points:
      2
    • Release Note:
      Yes
    • Sprint:
      NXRM Neo Sprint 38

      Description

      Existing cleanup tasks suddenly started to fail. I think it started with version OSS 3.40.1-01.

      Task Name: Purge unused snapshots
      Stack-trace:
      java.lang.NullPointerException
          at java.util.Objects.requireNonNull(Objects.java:203)
          at org.sonatype.nexus.repository.maven.tasks.PurgeMavenUnusedSnapshotsTask.isSnapshotRepo(PurgeMavenUnusedSnapshotsTask.java:97)
          at org.sonatype.nexus.repository.maven.tasks.PurgeMavenUnusedSnapshotsTask.appliesTo(PurgeMavenUnusedSnapshotsTask.java:74)
          at com.google.common.collect.Iterators$5.computeNext(Iterators.java:637)
          at com.google.common.collect.AbstractIterator.tryToComputeNext(AbstractIterator.java:141)
          at com.google.common.collect.AbstractIterator.hasNext(AbstractIterator.java:136)
          at org.sonatype.nexus.repository.RepositoryTaskSupport.execute(RepositoryTaskSupport.java:73)
          at org.sonatype.nexus.scheduling.TaskSupport.call(TaskSupport.java:100)
          at org.sonatype.nexus.quartz.internal.task.QuartzTaskJob.doExecute(QuartzTaskJob.java:143)
          at org.sonatype.nexus.quartz.internal.task.QuartzTaskJob.execute(QuartzTaskJob.java:106)
          at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
          at org.sonatype.nexus.quartz.internal.QuartzThreadPool.lambda$0(QuartzThreadPool.java:145)
          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:750)
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jhill Joshua Hill
              Reporter:
              tumbl3w33d tumbl3w33d
              Last Updated By:
              Joshua Hill Joshua Hill
              Team:
              NXRM - Neo
              Owner:
              Joshua Hill Joshua Hill
              Votes:
              1 Vote for this issue
              Watchers:
              7 Start watching this issue

                Dates

                Created:
                Updated:
                Date of First Response:

                  tigCommentSecurity.panel-title