java.lang.NullPointerException

Jenkins JIRA | Gabriele Giuseppini | 4 years ago
  1. 0

    For quite some time, all of our jobs have been randomly going into a state where SCM polling starts failing with the following stack: {code} Started on Jul 10, 2012 9:39:45 AM ERROR: Failed to record SCM polling for hudson.model.FreeStyleProject@7e1eb84f[anonymous_libs] java.lang.NullPointerException at java.util.TreeMap.putAll(Unknown Source) at org.jenkinsci.plugins.envinject.EnvInjectBuilderContributionAction.buildEnvVars(EnvInjectBuilderContributionAction.java:23) at hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:867) at hudson.scm.SubversionSCM.compareRemoteRevisionWith(SubversionSCM.java:1114) at hudson.scm.SCM._compareRemoteRevisionWith(SCM.java:356) at hudson.scm.SCM.poll(SCM.java:373) at hudson.model.AbstractProject.poll(AbstractProject.java:1377) at hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:420) at hudson.triggers.SCMTrigger$Runner.run(SCMTrigger.java:449) 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$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) {code} When a job goes into this state, it never gets out of it unless a user kicks off a build manually. When that happens, SCM polling for that job start working again for a short time. I'm attaching an anoymized config file for this particular job.

    Jenkins JIRA | 4 years ago | Gabriele Giuseppini
    java.lang.NullPointerException
  2. 0

    For quite some time, all of our jobs have been randomly going into a state where SCM polling starts failing with the following stack: {code} Started on Jul 10, 2012 9:39:45 AM ERROR: Failed to record SCM polling for hudson.model.FreeStyleProject@7e1eb84f[anonymous_libs] java.lang.NullPointerException at java.util.TreeMap.putAll(Unknown Source) at org.jenkinsci.plugins.envinject.EnvInjectBuilderContributionAction.buildEnvVars(EnvInjectBuilderContributionAction.java:23) at hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:867) at hudson.scm.SubversionSCM.compareRemoteRevisionWith(SubversionSCM.java:1114) at hudson.scm.SCM._compareRemoteRevisionWith(SCM.java:356) at hudson.scm.SCM.poll(SCM.java:373) at hudson.model.AbstractProject.poll(AbstractProject.java:1377) at hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:420) at hudson.triggers.SCMTrigger$Runner.run(SCMTrigger.java:449) 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$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) {code} When a job goes into this state, it never gets out of it unless a user kicks off a build manually. When that happens, SCM polling for that job start working again for a short time. I'm attaching an anoymized config file for this particular job.

    Jenkins JIRA | 4 years ago | Gabriele Giuseppini
    java.lang.NullPointerException
  3. 0
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
  6. 0

    swagger-maven-plugin:3.0-SNAPSHOT gives a null pointer exception when trying to do a mvn clean install

    GitHub | 2 years ago | harish2816
    org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.github.kongchen:swagger-maven-plugin:3.0-SNAPSHOT:generate (default) on project restservices: null

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at java.util.TreeMap.putAll()
    2. Java RT
      TreeMap.putAll
      1. java.util.TreeMap.putAll(Unknown Source)
      1 frame
    3. org.jenkinsci.plugins
      EnvInjectBuilderContributionAction.buildEnvVars
      1. org.jenkinsci.plugins.envinject.EnvInjectBuilderContributionAction.buildEnvVars(EnvInjectBuilderContributionAction.java:23)
      1 frame
    4. Hudson
      SequentialExecutionQueue$QueueEntry.run
      1. hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:867)
      2. hudson.scm.SubversionSCM.compareRemoteRevisionWith(SubversionSCM.java:1114)
      3. hudson.scm.SCM._compareRemoteRevisionWith(SCM.java:356)
      4. hudson.scm.SCM.poll(SCM.java:373)
      5. hudson.model.AbstractProject.poll(AbstractProject.java:1377)
      6. hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:420)
      7. hudson.triggers.SCMTrigger$Runner.run(SCMTrigger.java:449)
      8. hudson.util.SequentialExecutionQueue$QueueEntry.run(SequentialExecutionQueue.java:118)
      8 frames
    5. 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$Worker.runTask(Unknown Source)
      5. java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      6. java.lang.Thread.run(Unknown Source)
      6 frames