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

repository health check periodic job thread can throw NullPointerException on Nexus Repository shutdown

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.20.1
    • Fix Version/s: None
    • Labels:
    • Environment:
      GNU/Linux
      OpenJDK Runtime Environment (build 1.8.0_232-b09)

      Description

      On nexus shutdown, following was logged in nexus.log:

      2020-01-09 18:03:23,993+0100 ERROR [blobstore-metrics-2-thread-1]  *SYSTEM org.sonatype.nexus.scheduling.internal.PeriodicJobServiceImpl - Periodic job threw exception
      java.lang.NullPointerException: null
              at org.sonatype.nexus.rapture.internal.HealthCheckCacheManager.lambda$1(HealthCheckCacheManager.java:77)
              at java.lang.Iterable.forEach(Iterable.java:75)
              at java.util.Collections$UnmodifiableCollection.forEach(Collections.java:1082)
              at org.sonatype.nexus.rapture.internal.HealthCheckCacheManager.lambda$0(HealthCheckCacheManager.java:73)
              at org.sonatype.nexus.scheduling.internal.PeriodicJobServiceImpl.lambda$1(PeriodicJobServiceImpl.java:90)
              at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
              at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
              at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
              at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
              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)
      

       

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            Zygielo Piotr Zygielo
            Last Updated By:
            Joe Tom Joe Tom
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:

                tigCommentSecurity.panel-title