java.lang.NullPointerException

Jenkins JIRA | Sylvain C. | 4 years ago
  1. 0
  2. 0
  3. 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
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 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
  6. 0

    The Build-Pipeline view is empty after upgrading to CopyArtifact 1.15 (from 1.14) and upgrading Build-Pipeline from 1.0 to 1.1.1. Stack trace has a NPE from hudson.plugins.copyartifact.CopyArtifact. WARNING: Caught exception evaluating: from.getBuildPipelineForm(). Reason: java.lang.NullPointerException java.lang.NullPointerException at java.util.TreeMap.putAll(TreeMap.java:290) at hudson.plugins.copyartifact.CopyArtifact$EnvAction.buildEnvVars(CopyArtifact.java:359) at hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:756) at au.com.centrumsystems.hudson.plugin.buildpipeline.PipelineBuild.getBuildResultURL(PipelineBuild.java:190) at au.com.centrumsystems.hudson.plugin.buildpipeline.BuildForm.<init>(BuildForm.java:66) at au.com.centrumsystems.hudson.plugin.buildpipeline.BuildForm.<init>(BuildForm.java:82) at au.com.centrumsystems.hudson.plugin.buildpipeline.BuildPipelineView.getBuildPipelineForm(BuildPipelineView.java:214) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.commons.jexl.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:258) at org.apache.commons.jexl.parser.ASTMethod.execute(ASTMethod.java:104) at org.apache.commons.jexl.parser.ASTReference.execute(ASTReference.java:83) at org.apache.commons.jexl.parser.ASTReference.value(ASTReference.java:57) at org.apache.commons.jexl.parser.ASTReferenceExpression.value(ASTReferenceExpression.java:51) at org.apache.commons.jexl.ExpressionImpl.evaluate(ExpressionImpl.java:80) at hudson.ExpressionFactory2$JexlExpression.evaluate(ExpressionFactory2.java:72) at org.apache.commons.jelly.tags.core.CoreTagLibrary$3.run(CoreTagLibrary.java:134 ... Raised also as an issue on Build-Pipeline: http://code.google.com/p/build-pipeline-plugin/issues/list?thanks=19&ts=1302748637

    Jenkins JIRA | 6 years ago | dmeibusch
    java.lang.NullPointerException

    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(TreeMap.java:290)
      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(Executors.java:441)
      2. java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
      3. java.util.concurrent.FutureTask.run(FutureTask.java:138)
      4. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      5. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      6. java.lang.Thread.run(Thread.java:662)
      6 frames