java.lang.NullPointerException

Jenkins JIRA | Ken Overly | 2 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    A NullPointerException occurs when Jenkins attempts to perform an SCM poll for any job. The stack trace would seem to indicate FilePath exec is null in line 326 of VaultSCM.java. A Vault SCM checkout completes successfully when a build is kicked off manually. I tried leaving the 'Path to Vault executable' field blank and using the default value configured but without success. Stack trace: Jan 19, 2015 8:26:00 AM org.jvnet.hudson.plugins.VaultSCM compareRemoteRevisionWith INFO: Last Build Date set to Wed Jan 14 10:19:55 EST 2015 Jan 19, 2015 8:26:00 AM hudson.triggers.SCMTrigger$Runner runPolling SEVERE: Failed to record SCM polling for hudson.model.FreeStyleProject@3ab722[FAB22_FABMain] java.lang.NullPointerException at org.jvnet.hudson.plugins.VaultSCM.getVaultPath(VaultSCM.java:334) at org.jvnet.hudson.plugins.VaultSCM.determineChangeCount(VaultSCM.java:521) at org.jvnet.hudson.plugins.VaultSCM.compareRemoteRevisionWith(VaultSCM.java:293) at hudson.scm.SCM.poll(SCM.java:397) at hudson.model.AbstractProject.pollWithWorkspace(AbstractProject.java:1462) at hudson.model.AbstractProject._poll(AbstractProject.java:1433) at hudson.model.AbstractProject.poll(AbstractProject.java:1344) at hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:515) at hudson.triggers.SCMTrigger$Runner.run(SCMTrigger.java:544) at hudson.util.SequentialExecutionQueue$QueueEntry.run(SequentialExecutionQueue.java:118) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source)

    Jenkins JIRA | 2 years ago | Ken Overly
    java.lang.NullPointerException
  2. 0

    A NullPointerException occurs when Jenkins attempts to perform an SCM poll for any job. The stack trace would seem to indicate FilePath exec is null in line 326 of VaultSCM.java. A Vault SCM checkout completes successfully when a build is kicked off manually. I tried leaving the 'Path to Vault executable' field blank and using the default value configured but without success. Stack trace: Jan 19, 2015 8:26:00 AM org.jvnet.hudson.plugins.VaultSCM compareRemoteRevisionWith INFO: Last Build Date set to Wed Jan 14 10:19:55 EST 2015 Jan 19, 2015 8:26:00 AM hudson.triggers.SCMTrigger$Runner runPolling SEVERE: Failed to record SCM polling for hudson.model.FreeStyleProject@3ab722[FAB22_FABMain] java.lang.NullPointerException at org.jvnet.hudson.plugins.VaultSCM.getVaultPath(VaultSCM.java:334) at org.jvnet.hudson.plugins.VaultSCM.determineChangeCount(VaultSCM.java:521) at org.jvnet.hudson.plugins.VaultSCM.compareRemoteRevisionWith(VaultSCM.java:293) at hudson.scm.SCM.poll(SCM.java:397) at hudson.model.AbstractProject.pollWithWorkspace(AbstractProject.java:1462) at hudson.model.AbstractProject._poll(AbstractProject.java:1433) at hudson.model.AbstractProject.poll(AbstractProject.java:1344) at hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:515) at hudson.triggers.SCMTrigger$Runner.run(SCMTrigger.java:544) at hudson.util.SequentialExecutionQueue$QueueEntry.run(SequentialExecutionQueue.java:118) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source)

    Jenkins JIRA | 2 years ago | Ken Overly
    java.lang.NullPointerException

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at org.jvnet.hudson.plugins.VaultSCM.getVaultPath()
    2. org.jvnet.hudson
      VaultSCM.compareRemoteRevisionWith
      1. org.jvnet.hudson.plugins.VaultSCM.getVaultPath(VaultSCM.java:334)
      2. org.jvnet.hudson.plugins.VaultSCM.determineChangeCount(VaultSCM.java:521)
      3. org.jvnet.hudson.plugins.VaultSCM.compareRemoteRevisionWith(VaultSCM.java:293)
      3 frames
    3. Hudson
      SequentialExecutionQueue$QueueEntry.run
      1. hudson.scm.SCM.poll(SCM.java:397)
      2. hudson.model.AbstractProject.pollWithWorkspace(AbstractProject.java:1462)
      3. hudson.model.AbstractProject._poll(AbstractProject.java:1433)
      4. hudson.model.AbstractProject.poll(AbstractProject.java:1344)
      5. hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:515)
      6. hudson.triggers.SCMTrigger$Runner.run(SCMTrigger.java:544)
      7. hudson.util.SequentialExecutionQueue$QueueEntry.run(SequentialExecutionQueue.java:118)
      7 frames
    4. Java RT
      Thread.run
      1. java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
      2. java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
      3. java.util.concurrent.FutureTask.run(Unknown Source)
      4. java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
      5. java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      6. java.lang.Thread.run(Unknown Source)
      6 frames