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

rebuilding browse nodes WARN BrowseNode.setName NullPointerException

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Parked
    • Affects Version/s: 3.20.1, 3.29.2
    • Fix Version/s: None
    • Component/s: Browse Storage, Upgrade
    • Labels:

      Description

      A customer was upgrading to 3.20.1 from 3.16.1-02. The upgrade triggered tasks to rebuild browse nodes for each repository on startup. Some assets were causing the following types of log messages:

      2020-01-13 16:36:25,165+0000 WARN  [quartz-3-thread-8] username *SYSTEM org.sonatype.nexus.repository.browse.internal.BrowseNodeManager - Problem generating browse nodes for Asset{metadata=AttachedEntityMetadata{schema=asset, document=#55:1647{bucket:#22:12,component:#26:1697,name:com/example/pet/domain/pet-domain-base/0.5-SNAPSHOT/pet-domain-base-0.5-20190122.142806-2-sources.jar.sha1,format:maven2,last_updated:Tue Jan 22 14:28:11 UTC 2019,attributes:[4],size:40,content_type:text/plain,created_by:exampleuser,created_by_ip:172.25.49.21,blob_ref:blob-test@9251CA42-8D6A1C30-F2C8FDD7-7EF671CA-E2EED312:9c1b8016-22b5-4a8e-8163-fc106ba5ac13,last_downloaded:Tue Jan 22 14:28:11 UTC 2019,blob_created:Tue Jan 22 14:28:11 UTC 2019,blob_updated:Tue Jan 22 14:28:11 UTC 2019} v2}, name=com/example/pet/domain/pet-domain-base/0.5-SNAPSHOT/pet-domain-base-0.5-20190122.142806-2-sources.jar.sha1}
      java.lang.NullPointerException: null
      	at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:882)
      	at org.sonatype.nexus.repository.storage.BrowseNode.setName(BrowseNode.java:105)
      	at org.sonatype.nexus.repository.storage.BrowseNode.setPaths(BrowseNode.java:143)
      	at org.sonatype.nexus.repository.storage.BrowseNodeEntityAdapter.newNode(BrowseNodeEntityAdapter.java:317)
      	at org.sonatype.nexus.repository.storage.BrowseNodeEntityAdapter.maybeCreateParentNodes(BrowseNodeEntityAdapter.java:290)
      	at org.sonatype.nexus.repository.storage.BrowseNodeEntityAdapter.createAssetNode(BrowseNodeEntityAdapter.java:249)
      	at org.sonatype.nexus.repository.storage.BrowseNodeStoreImpl.lambda$1(BrowseNodeStoreImpl.java:142)
      	at org.sonatype.nexus.orient.transaction.OrientOperations.lambda$2(OrientOperations.java:62)
      	at org.sonatype.nexus.transaction.OperationPoint.lambda$0(OperationPoint.java:53)
      	at org.sonatype.nexus.transaction.OperationPoint.proceed(OperationPoint.java:64)
      	at org.sonatype.nexus.transaction.TransactionalWrapper.proceedWithTransaction(TransactionalWrapper.java:57)
      	at org.sonatype.nexus.transaction.Operations.proceedWithTransaction(Operations.java:232)
      	at org.sonatype.nexus.transaction.Operations.transactional(Operations.java:223)
      	at org.sonatype.nexus.transaction.Operations.run(Operations.java:175)
      	at org.sonatype.nexus.orient.transaction.OrientOperations.run(OrientOperations.java:62)
      	at org.sonatype.nexus.repository.storage.BrowseNodeStoreImpl.createAssetNode(BrowseNodeStoreImpl.java:142)
      	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.browse.internal.BrowseNodeManager.createBrowseNodes(BrowseNodeManager.java:111)
      	at org.sonatype.nexus.repository.browse.internal.BrowseNodeManager.lambda$0(BrowseNodeManager.java:95)
      	at java.util.ArrayList.forEach(ArrayList.java:1257)
      	at org.sonatype.nexus.repository.browse.internal.BrowseNodeManager.createFromAssets(BrowseNodeManager.java:95)
      	at org.sonatype.nexus.repository.browse.internal.RebuildBrowseNodesTask.execute(RebuildBrowseNodesTask.java:117)
      	at org.sonatype.nexus.repository.RepositoryTaskSupport.execute(RepositoryTaskSupport.java:75)
      	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: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)
      

      Expected

      Identify what could lead to these types of WARN messages and the significance of the problem. Prevent the NullPointerException

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            plynch Peter Lynch
            Last Updated By:
            Joe Tom
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Date of First Response:

                tigCommentSecurity.panel-title