java.lang.NullPointerException

Jenkins JIRA | Markus Eisenmann | 2 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    After upgrading from Envinject 1.90 to 1.91 the SCM-Polling fails (with following trace): {noformat} Failed to record SCM polling for hudson.model.FreeStyleProject@25640dfb[GMC_NightlyBuild] java.lang.NullPointerException at org.jenkinsci.plugins.envinject.EnvInjectPluginAction$1.transformEntry(EnvInjectPluginAction.java:25) at org.jenkinsci.plugins.envinject.EnvInjectPluginAction$1.transformEntry(EnvInjectPluginAction.java:23) at com.google.common.collect.Maps$TransformedEntriesMap$1$1.apply(Maps.java:1218) at com.google.common.collect.Maps$TransformedEntriesMap$1$1.apply(Maps.java:1216) at com.google.common.collect.Iterators$8.next(Iterators.java:812) at java.util.AbstractMap.putAll(AbstractMap.java:280) at java.util.TreeMap.putAll(TreeMap.java:327) at org.jenkinsci.plugins.envinject.EnvInjectVarList.<init>(EnvInjectVarList.java:26) at org.jenkinsci.plugins.envinject.EnvInjectPluginAction.getTarget(EnvInjectPluginAction.java:22) at org.jenkinsci.plugins.envinject.EnvInjectPluginAction.buildEnvVars(EnvInjectPluginAction.java:31) at hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:929) at hudson.scm.SubversionSCM.compareRemoteRevisionWith(SubversionSCM.java:1343) at hudson.scm.SCM.compareRemoteRevisionWith(SCM.java:380) at hudson.scm.SCM.poll(SCM.java:397) at hudson.model.AbstractProject._poll(AbstractProject.java:1446) at hudson.model.AbstractProject.poll(AbstractProject.java:1349) 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(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) {noformat} This also occurs for all other jobs (which uses SCM-Polling); a forced job-start (on the other side) runs as expected.

    Jenkins JIRA | 2 years ago | Markus Eisenmann
    java.lang.NullPointerException
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    After upgrading from Envinject 1.90 to 1.91 the SCM-Polling fails (with following trace): {noformat} Failed to record SCM polling for hudson.model.FreeStyleProject@25640dfb[GMC_NightlyBuild] java.lang.NullPointerException at org.jenkinsci.plugins.envinject.EnvInjectPluginAction$1.transformEntry(EnvInjectPluginAction.java:25) at org.jenkinsci.plugins.envinject.EnvInjectPluginAction$1.transformEntry(EnvInjectPluginAction.java:23) at com.google.common.collect.Maps$TransformedEntriesMap$1$1.apply(Maps.java:1218) at com.google.common.collect.Maps$TransformedEntriesMap$1$1.apply(Maps.java:1216) at com.google.common.collect.Iterators$8.next(Iterators.java:812) at java.util.AbstractMap.putAll(AbstractMap.java:280) at java.util.TreeMap.putAll(TreeMap.java:327) at org.jenkinsci.plugins.envinject.EnvInjectVarList.<init>(EnvInjectVarList.java:26) at org.jenkinsci.plugins.envinject.EnvInjectPluginAction.getTarget(EnvInjectPluginAction.java:22) at org.jenkinsci.plugins.envinject.EnvInjectPluginAction.buildEnvVars(EnvInjectPluginAction.java:31) at hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:929) at hudson.scm.SubversionSCM.compareRemoteRevisionWith(SubversionSCM.java:1343) at hudson.scm.SCM.compareRemoteRevisionWith(SCM.java:380) at hudson.scm.SCM.poll(SCM.java:397) at hudson.model.AbstractProject._poll(AbstractProject.java:1446) at hudson.model.AbstractProject.poll(AbstractProject.java:1349) 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(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) {noformat} This also occurs for all other jobs (which uses SCM-Polling); a forced job-start (on the other side) runs as expected.

    Jenkins JIRA | 2 years ago | Markus Eisenmann
    java.lang.NullPointerException

    1 unregistered visitors
    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 org.jenkinsci.plugins.envinject.EnvInjectPluginAction$1.transformEntry()
    2. org.jenkinsci.plugins
      EnvInjectPluginAction$1.transformEntry
      1. org.jenkinsci.plugins.envinject.EnvInjectPluginAction$1.transformEntry(EnvInjectPluginAction.java:25)
      2. org.jenkinsci.plugins.envinject.EnvInjectPluginAction$1.transformEntry(EnvInjectPluginAction.java:23)
      2 frames
    3. Guava
      Iterators$8.next
      1. com.google.common.collect.Maps$TransformedEntriesMap$1$1.apply(Maps.java:1218)
      2. com.google.common.collect.Maps$TransformedEntriesMap$1$1.apply(Maps.java:1216)
      3. com.google.common.collect.Iterators$8.next(Iterators.java:812)
      3 frames
    4. Java RT
      TreeMap.putAll
      1. java.util.AbstractMap.putAll(AbstractMap.java:280)
      2. java.util.TreeMap.putAll(TreeMap.java:327)
      2 frames
    5. org.jenkinsci.plugins
      EnvInjectPluginAction.buildEnvVars
      1. org.jenkinsci.plugins.envinject.EnvInjectVarList.<init>(EnvInjectVarList.java:26)
      2. org.jenkinsci.plugins.envinject.EnvInjectPluginAction.getTarget(EnvInjectPluginAction.java:22)
      3. org.jenkinsci.plugins.envinject.EnvInjectPluginAction.buildEnvVars(EnvInjectPluginAction.java:31)
      3 frames
    6. Hudson
      SequentialExecutionQueue$QueueEntry.run
      1. hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:929)
      2. hudson.scm.SubversionSCM.compareRemoteRevisionWith(SubversionSCM.java:1343)
      3. hudson.scm.SCM.compareRemoteRevisionWith(SCM.java:380)
      4. hudson.scm.SCM.poll(SCM.java:397)
      5. hudson.model.AbstractProject._poll(AbstractProject.java:1446)
      6. hudson.model.AbstractProject.poll(AbstractProject.java:1349)
      7. hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:515)
      8. hudson.triggers.SCMTrigger$Runner.run(SCMTrigger.java:544)
      9. hudson.util.SequentialExecutionQueue$QueueEntry.run(SequentialExecutionQueue.java:118)
      9 frames
    7. Java RT
      Thread.run
      1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      2. java.util.concurrent.FutureTask.run(FutureTask.java:266)
      3. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      4. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      5. java.lang.Thread.run(Thread.java:745)
      5 frames