Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-59961

NPE on hudson.plugins.sonar.GlobalCredentialMigrator at Jenkins start

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Component/s: sonar-plugin
    • Labels:
      None
    • Environment:
      Sonar plugin 2.9, 2.10, Jenkins 2.190.1
    • Similar Issues:

      Description

      2019-10-28 11:41:01.859+0000 [id=47]    SEVERE  hudson.util.BootFailure#publish: Failed to initialize Jenkins
      java.lang.NullPointerException
              at hudson.plugins.sonar.GlobalCredentialMigrator.lambda$migrate$0(GlobalCredentialMigrator.java:56)
              at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:174)
              at java.util.ArrayList$ArrayListSpliterator.tryAdvance(ArrayList.java:1359)
              at java.util.stream.ReferencePipeline.forEachWithCancel(ReferencePipeline.java:126)
              at java.util.stream.AbstractPipeline.copyIntoWithCancel(AbstractPipeline.java:499)
              at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:486)
              at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:472)
              at java.util.stream.FindOps$FindOp.evaluateSequential(FindOps.java:152)
              at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
              at java.util.stream.ReferencePipeline.findAny(ReferencePipeline.java:536)
              at hudson.plugins.sonar.GlobalCredentialMigrator.migrate(GlobalCredentialMigrator.java:57)
              at hudson.plugins.sonar.SonarInstallation.migrateTokenToCredential(SonarInstallation.java:264)
              at java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:948)
              at java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:647)
              at hudson.plugins.sonar.SonarGlobalConfiguration.migrateCredentials(SonarGlobalConfiguration.java:136)
      Caused: java.lang.reflect.InvocationTargetException
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:498)
              at hudson.init.TaskMethodFinder.invoke(TaskMethodFinder.java:104)
      Caused: java.lang.Error
              at hudson.init.TaskMethodFinder.invoke(TaskMethodFinder.java:110)
              at hudson.init.TaskMethodFinder$TaskImpl.run(TaskMethodFinder.java:175)
              at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:296)
              at jenkins.model.Jenkins$5.runTask(Jenkins.java:1118)
              at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:214)
              at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117)
              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)
      Caused: org.jvnet.hudson.reactor.ReactorException
              at org.jvnet.hudson.reactor.Reactor.execute(Reactor.java:282)
              at jenkins.InitReactorRunner.run(InitReactorRunner.java:48)
              at jenkins.model.Jenkins.executeReactor(Jenkins.java:1152)
              at jenkins.model.Jenkins.<init>(Jenkins.java:959)
              at hudson.model.Hudson.<init>(Hudson.java:85)
              at hudson.model.Hudson.<init>(Hudson.java:81)
              at hudson.WebAppMain$3.run(WebAppMain.java:233)
      Caused: hudson.util.HudsonFailedToLoad
              at hudson.WebAppMain$3.run(WebAppMain.java:250)
      2019-10-28 11:41:01.869+0000 [id=47]    INFO    jenkins.model.Jenkins#cleanUp: Stopping Jenkins
      

        Attachments

          Activity

          There are no comments yet on this issue.

            People

            Assignee:
            sonarteam Sonar Team
            Reporter:
            brialius Denis Bel
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated: