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

assetdownloadcount.internal.CacheRemovalListener.accept NullPointerException

    XMLWordPrintable

    Details

    • Story Points:
      1

      Description

      A 3 node HA cluster started recording running 3.14.0 started capturing 2366 NullPointerException across nodes with the following log message.

      very oddly, one node logs these as WARN messages, while another logs these as ERROR - even though both are on the same version of Nexus?

      [2] 2018-11-21 15:01:29,892+0000 ERROR [hz.nexus.event-1]  *SYSTEM com.hazelcast.spi.impl.eventservice.impl.EventServiceImpl - [10.41.112.97]:5701 [nexus] [3.10.3] hz.nexus.event-1 caught an exception while processing task:com.hazelcast.spi.impl.eventservice.impl.LocalEventDispatcher@4c556cbe
      [2] java.lang.NullPointerException: null
      [2] 	at org.sonatype.nexus.repository.assetdownloadcount.internal.CacheRemovalListener.accept(CacheRemovalListener.java:64)
      [2] 	at org.sonatype.nexus.repository.assetdownloadcount.internal.CacheRemovalListener.accept(CacheRemovalListener.java:1)
      [2] 	at com.sonatype.nexus.hazelcast.internal.cache.HazelcastCacheBuilder$CacheRemovalListenter.lambda$0(HazelcastCacheBuilder.java:94)
      [2] 	at java.lang.Iterable.forEach(Iterable.java:75)
      [2] 	at com.sonatype.nexus.hazelcast.internal.cache.HazelcastCacheBuilder$CacheRemovalListenter.onExpired(HazelcastCacheBuilder.java:93)
      [2] 	at com.hazelcast.cache.impl.CacheEventListenerAdaptor.handleEvent(CacheEventListenerAdaptor.java:179)
      [2] 	at com.hazelcast.cache.impl.CacheEventListenerAdaptor.handleEvent(CacheEventListenerAdaptor.java:150)
      [2] 	at com.hazelcast.cache.impl.AbstractCacheService.dispatchEvent(AbstractCacheService.java:513)
      [2] 	at com.hazelcast.cache.impl.AbstractCacheService.dispatchEvent(AbstractCacheService.java:84)
      [2] 	at com.hazelcast.spi.impl.eventservice.impl.LocalEventDispatcher.run(LocalEventDispatcher.java:64)
      [2] 	at com.hazelcast.util.executor.StripedExecutor$Worker.process(StripedExecutor.java:226)
      [2] 	at com.hazelcast.util.executor.StripedExecutor$Worker.run(StripedExecutor.java:209)
      [1] 2018-11-21 15:01:29,896+0000 WARN  [hz.nexus.event-1]  *SYSTEM com.hazelcast.spi.EventService - [10.35.112.110]:5701 [nexus] [3.10.3] Error while logging processing event
      [1] java.lang.NullPointerException: null
      [1] 	at org.sonatype.nexus.repository.assetdownloadcount.internal.CacheRemovalListener.accept(CacheRemovalListener.java:64)
      [1] 	at org.sonatype.nexus.repository.assetdownloadcount.internal.CacheRemovalListener.accept(CacheRemovalListener.java:1)
      [1] 	at com.sonatype.nexus.hazelcast.internal.cache.HazelcastCacheBuilder$CacheRemovalListenter.lambda$0(HazelcastCacheBuilder.java:94)
      [1] 	at java.lang.Iterable.forEach(Iterable.java:75)
      [1] 	at com.sonatype.nexus.hazelcast.internal.cache.HazelcastCacheBuilder$CacheRemovalListenter.onExpired(HazelcastCacheBuilder.java:93)
      [1] 	at com.hazelcast.cache.impl.CacheEventListenerAdaptor.handleEvent(CacheEventListenerAdaptor.java:179)
      [1] 	at com.hazelcast.cache.impl.CacheEventListenerAdaptor.handleEvent(CacheEventListenerAdaptor.java:150)
      [1] 	at com.hazelcast.cache.impl.AbstractCacheService.dispatchEvent(AbstractCacheService.java:513)
      [1] 	at com.hazelcast.cache.impl.AbstractCacheService.dispatchEvent(AbstractCacheService.java:84)
      [1] 	at com.hazelcast.spi.impl.eventservice.impl.EventProcessor.process(EventProcessor.java:61)
      [1] 	at com.hazelcast.spi.impl.eventservice.impl.RemoteEventProcessor.run(RemoteEventProcessor.java:47)
      [1] 	at com.hazelcast.util.executor.StripedExecutor$Worker.process(StripedExecutor.java:226)
      [1] 	at com.hazelcast.util.executor.StripedExecutor$Worker.run(StripedExecutor.java:209)
      

      Expected

      NullPointerExceptions should not be triggered during normal operation. Determine cause and mitigate.
      Explain why one is WARN and one is ERROR.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              mbucher Michael Bucher
              Reporter:
              plynch Peter Lynch
              Last Updated By:
              Peter Lynch
              Team:
              NXRM - Morpheus
              Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Date of First Response:

                  tigCommentSecurity.panel-title