Details

    • Similar Issues:

      Description

      No cvs polling seems to be working:

      Started on 20-Jun-2012 14:22:10
      ERROR: Failed to record SCM polling for hudson.model.FreeStyleProject@75222b8e[]
      java.lang.NullPointerException
      at jenkins.model.Jenkins.getInstance(Jenkins.java:694)
      at hudson.model.Run.getCharacteristicEnvVars(Run.java:1947)
      at hudson.model.Run.getEnvironment(Run.java:1906)
      at hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:843)
      at hudson.scm.CVSSCM.compareRemoteRevisionWith(CVSSCM.java:284)
      at hudson.scm.SCM._compareRemoteRevisionWith(SCM.java:356)
      at hudson.scm.SCM.poll(SCM.java:373)
      at hudson.model.AbstractProject.poll(AbstractProject.java:1370)
      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(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:662)

        Attachments

          Activity

          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: mc1arke
          Path:
          src/main/java/hudson/scm/AbstractCvs.java
          src/main/java/hudson/scm/CVSChangeLogSet.java
          src/main/java/hudson/scm/CvsLog.java
          src/test/java/hudson/scm/CvsChangeLogHelperTest.java
          http://jenkins-ci.org/commit/cvs-plugin/da501e9c5984e7e8b48bbf28cb22a36888e45dcc
          Log:
          Changing from regexp to keyword/token based parsing of CVS rlog output
          [FIXED JENKINS-14163] Prevent hanging of polling whilst parsing rlog contents
          [FIXED JENKINS-14293] Handle files with additional parameters in rlog output

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: mc1arke Path: src/main/java/hudson/scm/AbstractCvs.java src/main/java/hudson/scm/CVSChangeLogSet.java src/main/java/hudson/scm/CvsLog.java src/test/java/hudson/scm/CvsChangeLogHelperTest.java http://jenkins-ci.org/commit/cvs-plugin/da501e9c5984e7e8b48bbf28cb22a36888e45dcc Log: Changing from regexp to keyword/token based parsing of CVS rlog output [FIXED JENKINS-14163] Prevent hanging of polling whilst parsing rlog contents [FIXED JENKINS-14293] Handle files with additional parameters in rlog output
          Hide
          fredg Fred G added a comment -

          Hi Michael,
          Unfortunately I still get this error with Jenkins v1.492 and CVS Plugin v2.8:

          ERROR: Failed to record SCM polling for hudson.model.FreeStyleProject@162a5f3[<project name>]
          java.lang.NullPointerException
          	at hudson.scm.AbstractCvs.compareRemoteRevisionWith(AbstractCvs.java:451)
          	at hudson.scm.CVSSCM.compareRemoteRevisionWith(CVSSCM.java:193)
          	at hudson.scm.SCM._compareRemoteRevisionWith(SCM.java:356)
          	at hudson.scm.SCM.poll(SCM.java:373)
          	at hudson.model.AbstractProject._poll(AbstractProject.java:1483)
          	at hudson.model.AbstractProject.poll(AbstractProject.java:1403)
          	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)
          

          Let me know if/how I can provide more info.

          Show
          fredg Fred G added a comment - Hi Michael, Unfortunately I still get this error with Jenkins v1.492 and CVS Plugin v2.8: ERROR: Failed to record SCM polling for hudson.model.FreeStyleProject@162a5f3[<project name>] java.lang.NullPointerException at hudson.scm.AbstractCvs.compareRemoteRevisionWith(AbstractCvs.java:451) at hudson.scm.CVSSCM.compareRemoteRevisionWith(CVSSCM.java:193) at hudson.scm.SCM._compareRemoteRevisionWith(SCM.java:356) at hudson.scm.SCM.poll(SCM.java:373) at hudson.model.AbstractProject._poll(AbstractProject.java:1483) at hudson.model.AbstractProject.poll(AbstractProject.java:1403) 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) Let me know if/how I can provide more info.
          Hide
          mc1arke Michael Clarke added a comment -

          Fred,

          I suspect you have an invalid exclude pattern configure for one of your repositories. The NPE is thrown because we're failing to try and compile a pattern and are then trying to log the error using the listener for a launcher, despite not being passed a launcher by Jenkins (a side affect of not using a workspace for polling). I'll fix the NPE by changing the exception block to use the provided listener, rather than try and use a launcher's listener. I can then give you a snapshot if you want to try and track down the underlying exception that we're currently failing to log?

          Thanks,
          Michael

          Show
          mc1arke Michael Clarke added a comment - Fred, I suspect you have an invalid exclude pattern configure for one of your repositories. The NPE is thrown because we're failing to try and compile a pattern and are then trying to log the error using the listener for a launcher, despite not being passed a launcher by Jenkins (a side affect of not using a workspace for polling). I'll fix the NPE by changing the exception block to use the provided listener, rather than try and use a launcher's listener. I can then give you a snapshot if you want to try and track down the underlying exception that we're currently failing to log? Thanks, Michael
          Hide
          fredg Fred G added a comment -

          Hi Michael,
          There was indeed a problem with the exclude pattern.
          Let me know when the snapshot is ready, then I can test it.

          Regards,
          Fred

          Show
          fredg Fred G added a comment - Hi Michael, There was indeed a problem with the exclude pattern. Let me know when the snapshot is ready, then I can test it. Regards, Fred
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Michael Clarke
          Path:
          src/main/java/hudson/scm/AbstractCvs.java
          http://jenkins-ci.org/commit/cvs-plugin/ee3cc0aaf9611694c75ce7d2356cb84e4767b0e7
          Log:
          [FIXED JENKINS-14163] Fix NPE on failure compiling exclude pattern

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Michael Clarke Path: src/main/java/hudson/scm/AbstractCvs.java http://jenkins-ci.org/commit/cvs-plugin/ee3cc0aaf9611694c75ce7d2356cb84e4767b0e7 Log: [FIXED JENKINS-14163] Fix NPE on failure compiling exclude pattern

            People

            • Assignee:
              mc1arke Michael Clarke
              Reporter:
              oliverwhiteman Oliver Whiteman
            • Votes:
              2 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: