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

Could not fetch branches from source [some-guid] java.lang.NullPointerException

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • None
    • Jenkins ver. 2.32.3 on Ubuntu 16.04 LTS on Azure VM.

      In a multibranch project, when scanning a private GitHub repo I get:

       

       

      Checking branch feature/CLP-68
            'Jenkinsfile' found
          Met criteria
      ERROR: [Wed Mar 08 16:38:29 UTC 2017] Could not fetch branches from source 941d83d6-48dc-4c5b-88f6-9f0774744aaf
      java.lang.NullPointerException at com.cloudbees.hudson.plugins.folder.computed.ComputedFolder$FullReindexChildObserver.shouldUpdate(ComputedFolder.java:728)
      at jenkins.branch.MultiBranchProject$SCMHeadObserverImpl.observe(MultiBranchProject.java:1890)
      at org.jenkinsci.plugins.github_branch_source.GitHubSCMSource.doRetrieve(GitHubSCMSource.java:741)
      at org.jenkinsci.plugins.github_branch_source.GitHubSCMSource.retrieve(GitHubSCMSource.java:451)
      at jenkins.scm.api.SCMSource._retrieve(SCMSource.java:300)
      at jenkins.scm.api.SCMSource.fetch(SCMSource.java:210)
      at jenkins.branch.MultiBranchProject.computeChildren(MultiBranchProject.java:628)
      at com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.updateChildren(ComputedFolder.java:252)
      at com.cloudbees.hudson.plugins.folder.computed.FolderComputation.run(FolderComputation.java:154)
      at jenkins.branch.MultiBranchProject$BranchIndexing.run(MultiBranchProject.java:967)
      at hudson.model.ResourceController.execute(ResourceController.java:98)
      at hudson.model.Executor.run(Executor.java:404)
      [Wed Mar 08 16:38:29 UTC 2017] Finished branch indexing. Indexing took 2.9 sec
      FATAL: Failed to recompute children of clientpanel
      java.lang.NullPointerException at com.cloudbees.hudson.plugins.folder.computed.ComputedFolder$FullReindexChildObserver.shouldUpdate(ComputedFolder.java:728)
      at jenkins.branch.MultiBranchProject$SCMHeadObserverImpl.observe(MultiBranchProject.java:1890)
      at org.jenkinsci.plugins.github_branch_source.GitHubSCMSource.doRetrieve(GitHubSCMSource.java:741)
      at org.jenkinsci.plugins.github_branch_source.GitHubSCMSource.retrieve(GitHubSCMSource.java:451)
      at jenkins.scm.api.SCMSource._retrieve(SCMSource.java:300)
      at jenkins.scm.api.SCMSource.fetch(SCMSource.java:210)
      at jenkins.branch.MultiBranchProject.computeChildren(MultiBranchProject.java:628)
      at com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.updateChildren(ComputedFolder.java:252)
      at com.cloudbees.hudson.plugins.folder.computed.FolderComputation.run(FolderComputation.java:154)
      at jenkins.branch.MultiBranchProject$BranchIndexing.run(MultiBranchProject.java:967)
      at hudson.model.ResourceController.execute(ResourceController.java:98)
      at hudson.model.Executor.run(Executor.java:404)
      Finished: FAILURE

       

          [JENKINS-42588] Could not fetch branches from source [some-guid] java.lang.NullPointerException

          Bartłomiej Szypelow created issue -
          Craig Muchinsky made changes -
          Priority Original: Major [ 3 ] New: Critical [ 2 ]
          Craig Muchinsky made changes -
          Link New: This issue is related to JENKINS-42593 [ JENKINS-42593 ]
          Chris Williams made changes -
          Comment [ I'm seeing a new error after the cloudbees-folder fix. For one specific repository, it fails to grab the branches. I cannot figure out what it only fails for this one repository and not others in the same org:

          {code}
          ERROR: [Thu Mar 09 08:17:25 PST 2017] Could not fetch branches from source org.jenkinsci.plugins.github_branch_source.GitHubSCMNavigator::https://api.github.com::aptana::studio3
          java.lang.NullPointerException
          at org.jenkinsci.plugins.github_branch_source.GitHubSCMSource.doRetrieve(GitHubSCMSource.java:571)
          at org.jenkinsci.plugins.github_branch_source.GitHubSCMSource.retrieve(GitHubSCMSource.java:451)
          at jenkins.scm.api.SCMSource._retrieve(SCMSource.java:300)
          at jenkins.scm.api.SCMSource.fetch(SCMSource.java:210)
          at jenkins.branch.MultiBranchProject.computeChildren(MultiBranchProject.java:628)
          at com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.updateChildren(ComputedFolder.java:219)
          at com.cloudbees.hudson.plugins.folder.computed.FolderComputation.run(FolderComputation.java:154)
          at jenkins.branch.MultiBranchProject$BranchIndexing.run(MultiBranchProject.java:967)
          at hudson.model.ResourceController.execute(ResourceController.java:98)
          at hudson.model.Executor.run(Executor.java:404)
          [Thu Mar 09 08:17:25 PST 2017] Finished branch indexing. Indexing took 8.4 sec
          FATAL: Failed to recompute children of Aptana Studio » studio3
          java.lang.NullPointerException
          at org.jenkinsci.plugins.github_branch_source.GitHubSCMSource.doRetrieve(GitHubSCMSource.java:571)
          at org.jenkinsci.plugins.github_branch_source.GitHubSCMSource.retrieve(GitHubSCMSource.java:451)
          at jenkins.scm.api.SCMSource._retrieve(SCMSource.java:300)
          at jenkins.scm.api.SCMSource.fetch(SCMSource.java:210)
          at jenkins.branch.MultiBranchProject.computeChildren(MultiBranchProject.java:628)
          at com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.updateChildren(ComputedFolder.java:219)
          at com.cloudbees.hudson.plugins.folder.computed.FolderComputation.run(FolderComputation.java:154)
          at jenkins.branch.MultiBranchProject$BranchIndexing.run(MultiBranchProject.java:967)
          at hudson.model.ResourceController.execute(ResourceController.java:98)
          at hudson.model.Executor.run(Executor.java:404)
          {code} ]
          Stephen Connolly made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]

            Unassigned Unassigned
            bszypelow Bartłomiej Szypelow
            Votes:
            10 Vote for this issue
            Watchers:
            20 Start watching this issue

              Created:
              Updated:
              Resolved: