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

java.lang.NullPointerException on Jenkins restart

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • pipeline-github-plugin

      I 'm using the issueCommentTrigger in my Multibranch pipeline. Works as expected for me. But I'm observed the following exception in Jenkins log when Jenkins was restarted. There was no trigger from GitHub so not sure why the pipeline tried to start at this moment.

          Sep 11, 2024 7:24:45 AM SEVERE org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty startTriggersCan't start trigger.java.lang.NullPointerException: Cannot invoke "org.jenkinsci.plugins.github_branch_source.GitHubSCMSource.getRepoOwner()" because "scmSource" is null    at PluginClassLoader for pipeline-github//org.jenkinsci.plugins.pipeline.github.trigger.IssueCommentTrigger.getKey(IssueCommentTrigger.java:69)    at PluginClassLoader for pipeline-github//org.jenkinsci.plugins.pipeline.github.trigger.IssueCommentTrigger.start(IssueCommentTrigger.java:50)    at PluginClassLoader for pipeline-github//org.jenkinsci.plugins.pipeline.github.trigger.IssueCommentTrigger.start(IssueCommentTrigger.java:34)    at PluginClassLoader for workflow-job//org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty.startTriggers(PipelineTriggersJobProperty.java:113)    at PluginClassLoader for workflow-job//org.jenkinsci.plugins.workflow.job.WorkflowJob.onLoad(WorkflowJob.java:151)    at PluginClassLoader for cloudbees-folder//com.cloudbees.hudson.plugins.folder.AbstractFolder.loadChildren(AbstractFolder.java:381)    at PluginClassLoader for cloudbees-folder//com.cloudbees.hudson.plugins.folder.AbstractFolder.onLoad(AbstractFolder.java:472)    at PluginClassLoader for cloudbees-folder//com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.onLoad(ComputedFolder.java:211)    at PluginClassLoader for branch-api//jenkins.branch.MultiBranchProject.onLoad(MultiBranchProject.java:185)    at PluginClassLoader for workflow-multibranch//org.jenkinsci.plugins.workflow.multibranch.WorkflowMultiBranchProject.onLoad(WorkflowMultiBranchProject.java:85)    at PluginClassLoader for cloudbees-folder//com.cloudbees.hudson.plugins.folder.AbstractFolder.loadChildren(AbstractFolder.java:381)    at PluginClassLoader for cloudbees-folder//com.cloudbees.hudson.plugins.folder.AbstractFolder.onLoad(AbstractFolder.java:472)    at PluginClassLoader for cloudbees-folder//com.cloudbees.hudson.plugins.folder.Folder.onLoad(Folder.java:113)    at hudson.model.Items.load(Items.java:376)    at jenkins.model.Jenkins$13.run(Jenkins.java:3525)    at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:177)    at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:305)    at jenkins.model.Jenkins$5.runTask(Jenkins.java:1175)    at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:221)    at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:120)    at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:68)    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)    at java.base/java.lang.Thread.run(Thread.java:833) 

            aaronjwhiteside Aaron Whiteside
            pb810 Preetam
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: