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

SCM polling fails with NPE in EnvInjectPluginAction$1.transformEntry [...] after upgrading to 1.91

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Component/s: envinject-plugin
    • Labels:
      None
    • Environment:
      Jenkins 1.599 on Windows Server 2008 (x64)
      Subversion Plugin 2.5
      EnvInject Plugin 1.91
    • Similar Issues:

      Description

      After upgrading from Envinject 1.90 to 1.91 the SCM-Polling fails (with following trace):

      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)
      

      This also occurs for all other jobs (which uses SCM-Polling); a forced job-start (on the other side) runs as expected.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                gbois Gregory Boissinot
                Reporter:
                ibiatiroler Markus Eisenmann
              • Votes:
                2 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: