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

ERROR: Failed to record SCM polling nullpointer exception when building on a slave while the number of executors on the master is set to 0

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: mercurial-plugin
    • Labels:
      None
    • Environment:
      Ubuntu 9.10 Slave
    • Similar Issues:

      Description

      I have my mercurial build setup on a ubuntu slave, and get the following in polling log if the number of executors on the master is set to 0.

      ERROR: Failed to record SCM polling
      java.lang.NullPointerException
      at hudson.model.Run.getEnvironment(Run.java:1648)
      at hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:663)
      at hudson.plugins.mercurial.MercurialSCM.compareRemoteRevisionWith(MercurialSCM.java:250)
      at hudson.scm.SCM._compareRemoteRevisionWith(SCM.java:351)
      at hudson.scm.SCM.poll(SCM.java:368)
      at hudson.model.AbstractProject.poll(AbstractProject.java:1153)
      at hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:330)
      at hudson.triggers.SCMTrigger$Runner.run(SCMTrigger.java:359)
      at hudson.util.SequentialExecutionQueue$QueueEntry.run(SequentialExecutionQueue.java:118)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
      at java.util.concurrent.FutureTask.run(FutureTask.java:138)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      at java.lang.Thread.run(Thread.java:619)

        Attachments

          Issue Links

            Activity

            dhavalshah dhavalshah created issue -
            mfriedenhagen Mirko Friedenhagen made changes -
            Field Original Value New Value
            Assignee kohsuke [ kohsuke ] mfriedenhagen [ mfriedenhagen ]
            mfriedenhagen Mirko Friedenhagen made changes -
            Status Open [ 1 ] Resolved [ 5 ]
            Resolution Fixed [ 1 ]
            mfriedenhagen Mirko Friedenhagen made changes -
            Summary ERROR: Failed to record SCM polling nullpointer exception ERROR: Failed to record SCM polling nullpointer exception when building on a slave when the number of executors on the master is set to 0
            mfriedenhagen Mirko Friedenhagen made changes -
            Resolution Fixed [ 1 ]
            Status Resolved [ 5 ] Reopened [ 4 ]
            mfriedenhagen Mirko Friedenhagen made changes -
            Summary ERROR: Failed to record SCM polling nullpointer exception when building on a slave when the number of executors on the master is set to 0 ERROR: Failed to record SCM polling nullpointer exception when building on a slave while the number of executors on the master is set to 0
            Description I have my mercurial build setup on a ubuntu slave, and get the following in polling log.

            ERROR: Failed to record SCM polling
            java.lang.NullPointerException
            at hudson.model.Run.getEnvironment(Run.java:1648)
            at hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:663)
            at hudson.plugins.mercurial.MercurialSCM.compareRemoteRevisionWith(MercurialSCM.java:250)
            at hudson.scm.SCM._compareRemoteRevisionWith(SCM.java:351)
            at hudson.scm.SCM.poll(SCM.java:368)
            at hudson.model.AbstractProject.poll(AbstractProject.java:1153)
            at hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:330)
            at hudson.triggers.SCMTrigger$Runner.run(SCMTrigger.java:359)
            at hudson.util.SequentialExecutionQueue$QueueEntry.run(SequentialExecutionQueue.java:118)
            at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
            at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
            at java.util.concurrent.FutureTask.run(FutureTask.java:138)
            at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
            at java.lang.Thread.run(Thread.java:619)
            I have my mercurial build setup on a ubuntu slave, and get the following in polling log if the number of executors on the master is set to 0.

            ERROR: Failed to record SCM polling
            java.lang.NullPointerException
            at hudson.model.Run.getEnvironment(Run.java:1648)
            at hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:663)
            at hudson.plugins.mercurial.MercurialSCM.compareRemoteRevisionWith(MercurialSCM.java:250)
            at hudson.scm.SCM._compareRemoteRevisionWith(SCM.java:351)
            at hudson.scm.SCM.poll(SCM.java:368)
            at hudson.model.AbstractProject.poll(AbstractProject.java:1153)
            at hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:330)
            at hudson.triggers.SCMTrigger$Runner.run(SCMTrigger.java:359)
            at hudson.util.SequentialExecutionQueue$QueueEntry.run(SequentialExecutionQueue.java:118)
            at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
            at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
            at java.util.concurrent.FutureTask.run(FutureTask.java:138)
            at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
            at java.lang.Thread.run(Thread.java:619)
            abayer Andrew Bayer made changes -
            Link This issue is related to JENKINS-7547 [ JENKINS-7547 ]
            stefanbrausch Stefan Brausch made changes -
            Component/s git [ 15543 ]
            stubbs Stubbs made changes -
            Link This issue is duplicated by JENKINS-5902 [ JENKINS-5902 ]
            scm_issue_link SCM/JIRA link daemon made changes -
            Status Reopened [ 4 ] Resolved [ 5 ]
            Resolution Fixed [ 1 ]
            markewaite Mark Waite made changes -
            Component/s git [ 15543 ]
            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 136219 ] JNJira + In-Review [ 187146 ]

              People

              • Assignee:
                mfriedenhagen Mirko Friedenhagen
                Reporter:
                dhavalshah dhavalshah
              • Votes:
                5 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: