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

Failed to record SCM polling for hudson.model.FreeStyleProject

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • chromedriver-plugin
    • None

      SCM polling is failing for multiple projects, using multiple SCMs (git and svn). Jenkins 1.599

      Log excerpt:

      Mar 15, 2015 4:36:28 PM hudson.triggers.SCMTrigger$Runner runPolling
      SEVERE: Failed to record SCM polling for hudson.model.FreeStyleProject@5f0bc88b[7.5-CORE_rails_ios-enrollment-api]
      java.lang.NullPointerException
      Mar 15, 2015 4:36:28 PM hudson.triggers.SCMTrigger$Runner runPolling
      SEVERE: Failed to record SCM polling for hudson.model.FreeStyleProject@3ee89b6d[7.5_rails_ios-enrollment-api]
      java.lang.NullPointerException
      Mar 15, 2015 4:36:28 PM hudson.triggers.SCMTrigger$Runner runPolling
      SEVERE: Failed to record SCM polling for hudson.model.FreeStyleProject@271d900d[7.5patch216_uss]
      java.lang.NullPointerException
      Mar 15, 2015 4:36:28 PM hudson.triggers.SCMTrigger$Runner runPolling
      SEVERE: Failed to record SCM polling for hudson.model.FreeStyleProject@347e4f51[7.5patch358_uss]
      java.lang.NullPointerException
      Mar 15, 2015 4:36:28 PM hudson.triggers.SCMTrigger$Runner runPolling
      SEVERE: Failed to record SCM polling for hudson.model.FreeStyleProject@55f55e9f[8.0_active-directory]
      java.lang.NullPointerException
      Mar 15, 2015 4:36:28 PM hudson.triggers.SCMTrigger$Runner runPolling
      SEVERE: Failed to record SCM polling for hudson.model.FreeStyleProject@54da11b4[heavyseas_active-directory]
      java.lang.NullPointerException
      Mar 15, 2015 4:36:28 PM hudson.triggers.SCMTrigger$Runner runPolling
      SEVERE: Failed to record SCM polling for hudson.model.FreeStyleProject@6a04009[trunk_active-directory]
      java.lang.NullPointerException
      Mar 15, 2015 4:36:28 PM hudson.triggers.SCMTrigger$Runner runPolling
      SEVERE: Failed to record SCM polling for hudson.model.FreeStyleProject@5c6647cb[trunk_user-device-service]
      java.lang.NullPointerException

          [JENKINS-27442] Failed to record SCM polling for hudson.model.FreeStyleProject

          ASD added a comment -

          ASD added a comment - https://issues.jenkins-ci.org/browse/JENKINS-16036

          Daniel Mish added a comment -

          I am seeing this as well, however, I do not have EnvInject installed, so https://issues.jenkins-ci.org/browse/JENKINS-16036 does not apply in my case.

          The Jenkins version is 1.602.

          Here is a Stack Trace:

          Apr 23, 2015 2:16:00 PM hudson.triggers.SCMTrigger$Runner runPolling
          SEVERE: Failed to record SCM polling for hudson.model.FreeStyleProject@528d94b0[vendorCommon]
          java.lang.NullPointerException
                  at org.jenkinsci.plugins.chromedriver.EnvironmentContributorImpl.buildEnvironmentFor(EnvironmentContributorImpl.java:23)
                  at hudson.model.Run.getEnvironment(Run.java:2248)
                  at hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:917)
                  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:471)
                  at java.util.concurrent.FutureTask.run(FutureTask.java:262)
                  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
                  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
                  at java.lang.Thread.run(Thread.java:745)
          
          

          Daniel Mish added a comment - I am seeing this as well, however, I do not have EnvInject installed, so https://issues.jenkins-ci.org/browse/JENKINS-16036 does not apply in my case. The Jenkins version is 1.602. Here is a Stack Trace: Apr 23, 2015 2:16:00 PM hudson.triggers.SCMTrigger$Runner runPolling SEVERE: Failed to record SCM polling for hudson.model.FreeStyleProject@528d94b0[vendorCommon] java.lang.NullPointerException at org.jenkinsci.plugins.chromedriver.EnvironmentContributorImpl.buildEnvironmentFor(EnvironmentContributorImpl.java:23) at hudson.model.Run.getEnvironment(Run.java:2248) at hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:917) 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:471) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang. Thread .run( Thread .java:745)

          Parag Thakur added a comment -

          We are getting the same issue for our SVN repos:

          Started on Jul 6, 2015 10:30:00 AM
          ERROR: Failed to record SCM polling for hudson.model.FreeStyleProject@6815a5cb[Native-Win-64bit]
          java.lang.NullPointerException
          at org.jenkinsci.plugins.chromedriver.EnvironmentContributorImpl.buildEnvironmentFor(EnvironmentContributorImpl.java:23)
          at hudson.model.Run.getEnvironment(Run.java:2245)
          at hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:935)
          at hudson.scm.SubversionSCM.compareRemoteRevisionWith(SubversionSCM.java:1356)
          at hudson.scm.SCM.poll(SCM.java:398)
          at hudson.model.AbstractProject._poll(AbstractProject.java:1453)
          at hudson.model.AbstractProject.poll(AbstractProject.java:1356)
          at hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:510)
          at hudson.triggers.SCMTrigger$Runner.run(SCMTrigger.java:539)
          at hudson.util.SequentialExecutionQueue$QueueEntry.run(SequentialExecutionQueue.java:118)
          at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
          at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
          at java.util.concurrent.FutureTask.run(FutureTask.java:166)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
          at java.lang.Thread.run(Thread.java:724)

          Other type of repo configured on our server is Perforce.

          Parag Thakur added a comment - We are getting the same issue for our SVN repos: Started on Jul 6, 2015 10:30:00 AM ERROR: Failed to record SCM polling for hudson.model.FreeStyleProject@6815a5cb [Native-Win-64bit] java.lang.NullPointerException at org.jenkinsci.plugins.chromedriver.EnvironmentContributorImpl.buildEnvironmentFor(EnvironmentContributorImpl.java:23) at hudson.model.Run.getEnvironment(Run.java:2245) at hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:935) at hudson.scm.SubversionSCM.compareRemoteRevisionWith(SubversionSCM.java:1356) at hudson.scm.SCM.poll(SCM.java:398) at hudson.model.AbstractProject._poll(AbstractProject.java:1453) at hudson.model.AbstractProject.poll(AbstractProject.java:1356) at hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:510) at hudson.triggers.SCMTrigger$Runner.run(SCMTrigger.java:539) at hudson.util.SequentialExecutionQueue$QueueEntry.run(SequentialExecutionQueue.java:118) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:724) Other type of repo configured on our server is Perforce.

          Thales Vieira added a comment - - edited

          Apparently chromedriver plugin is the issue.
          I've disabled and it seems to clear the NullPointer exceptions.

          See: https://issues.jenkins-ci.org/browse/JENKINS-25911

          Thales Vieira added a comment - - edited Apparently chromedriver plugin is the issue. I've disabled and it seems to clear the NullPointer exceptions. See: https://issues.jenkins-ci.org/browse/JENKINS-25911

          Daniel Mish added a comment -

          Removing ChromeDriver also corrected the issue for me.

          Daniel Mish added a comment - Removing ChromeDriver also corrected the issue for me.

          Oleg Nenashev added a comment -

          Fixed the component according to the feedback

          Oleg Nenashev added a comment - Fixed the component according to the feedback

            Unassigned Unassigned
            chorn Cameron Horn
            Votes:
            6 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated: