Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Component/s: pvcs_scm-plugin
    • Labels:
      None
    • Environment:
      Windows
    • Similar Issues:

      Description

      A full build (triggered from web page) works. When it is set up to run every 30 minutes I get the following error whether there are changes in PVCS or not:

      INFO: looking for changes between Mon Dec 06 10:05:21 EST 2010 and Mon Dec 06 14:31:03 EST 2010
      Dec 6, 2010 2:31:03 PM hudson.triggers.SCMTrigger$Runner runPolling
      SEVERE: Failed to record SCM polling
      java.lang.NullPointerException
      at hudson.plugins.pvcs_scm.PvcsScm.getModifications(PvcsScm.java:419)
      at hudson.plugins.pvcs_scm.PvcsScm.pollChanges(PvcsScm.java:337)
      at hudson.scm.SCM.poll(SCM.java:373)
      at hudson.model.AbstractProject.poll(AbstractProject.java:1250)
      at hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:425)
      at hudson.triggers.SCMTrigger$Runner.run(SCMTrigger.java:454)
      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)

      If I run the command that is genterates (based on finest logging) the command runs and either returns nothing or returns a change report. In either case, the NPE is generated.

        Attachments

          Activity

          Hide
          eeeanoop Anoop Puthanveettil added a comment -

          I am having is the same issue. If anyone have succesfully configured PVCS polling, kindly shed some light on this.
          Platform : Redhat linux.
          -----------------------------------------------------------------------------------------
          looking for changes between Thu Jul 18 14:52:35 PDT 2013 and Thu Jul 18 15:08:26 PDT 2013
          ERROR: Failed to record SCM polling for hudson.model.FreeStyleProject@55ac9683[DataComparisonTool_test]
          java.lang.NullPointerException
          at hudson.plugins.pvcs_scm.PvcsScm.getModifications(PvcsScm.java:419)
          at hudson.plugins.pvcs_scm.PvcsScm.pollChanges(PvcsScm.java:337)
          at hudson.scm.SCM.poll(SCM.java:375)
          at hudson.model.AbstractProject._poll(AbstractProject.java:1541)
          at hudson.model.AbstractProject.poll(AbstractProject.java:1466)
          at hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:439)
          at hudson.triggers.SCMTrigger$Runner.run(SCMTrigger.java:468)
          at hudson.util.SequentialExecutionQueue$QueueEntry.run(SequentialExecutionQueue.java:118)
          at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)
          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)
          -----------------------------------------------------------------------------------------------------

          Show
          eeeanoop Anoop Puthanveettil added a comment - I am having is the same issue. If anyone have succesfully configured PVCS polling, kindly shed some light on this. Platform : Redhat linux. ----------------------------------------------------------------------------------------- looking for changes between Thu Jul 18 14:52:35 PDT 2013 and Thu Jul 18 15:08:26 PDT 2013 ERROR: Failed to record SCM polling for hudson.model.FreeStyleProject@55ac9683 [DataComparisonTool_test] java.lang.NullPointerException at hudson.plugins.pvcs_scm.PvcsScm.getModifications(PvcsScm.java:419) at hudson.plugins.pvcs_scm.PvcsScm.pollChanges(PvcsScm.java:337) at hudson.scm.SCM.poll(SCM.java:375) at hudson.model.AbstractProject._poll(AbstractProject.java:1541) at hudson.model.AbstractProject.poll(AbstractProject.java:1466) at hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:439) at hudson.triggers.SCMTrigger$Runner.run(SCMTrigger.java:468) at hudson.util.SequentialExecutionQueue$QueueEntry.run(SequentialExecutionQueue.java:118) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439) 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) -----------------------------------------------------------------------------------------------------
          Hide
          eeeanoop Anoop Puthanveettil added a comment -

          When Hudson calls pvcs_scm plugin for polling it passes a 'null' launcher to the following snippet of code. No idea why it does that.

          public PvcsChangeLogSet getModifications(final Launcher launcher,
          final TaskListener listener,
          final Calendar lastBuild)
          throws IOException, InterruptedException
          {

          ...

          //Null pointer happens right here.

          Proc proc = launcher.launch().cmds(cmd).stdout(os).start();

          ...

          Show
          eeeanoop Anoop Puthanveettil added a comment - When Hudson calls pvcs_scm plugin for polling it passes a 'null' launcher to the following snippet of code. No idea why it does that. public PvcsChangeLogSet getModifications(final Launcher launcher, final TaskListener listener, final Calendar lastBuild) throws IOException, InterruptedException { ... //Null pointer happens right here. Proc proc = launcher.launch().cmds(cmd).stdout(os).start(); ...
          Hide
          eeeanoop Anoop Puthanveettil added a comment -

          can anyone point to why the launcher could be null?

          Show
          eeeanoop Anoop Puthanveettil added a comment - can anyone point to why the launcher could be null?
          Hide
          isa_t Isabelle Theis added a comment -

          It's because of the pvcs_scm Plugin returning, it doesn't need a workspace to poll:

          PvcsScm.java
              // {{{ requiresWorkspaceForPolling
              /**
               * @todo
               */
              @Override
              public boolean requiresWorkspaceForPolling() {
                  return false;
              }
          

          In that case the launcher is null:

          AbstractProject.java
                  if (scm.requiresWorkspaceForPolling()) {
                     ...
                  } else {
                      // polling without workspace
                      LOGGER.fine("Polling SCM changes of " + getName());
                      if (pollingBaseline==null) // see NOTE-NO-BASELINE above
                          calcPollingBaseline(getLastBuild(),null,listener);
                      PollingResult r = scm.poll(this, null, null, listener, pollingBaseline);
                      pollingBaseline = r.remote;
                      return r;
                  }
          

          Who could change this to fix the problem?

          Show
          isa_t Isabelle Theis added a comment - It's because of the pvcs_scm Plugin returning, it doesn't need a workspace to poll: PvcsScm.java // {{{ requiresWorkspaceForPolling /** * @todo */ @Override public boolean requiresWorkspaceForPolling() { return false ; } In that case the launcher is null: AbstractProject.java if (scm.requiresWorkspaceForPolling()) { ... } else { // polling without workspace LOGGER.fine( "Polling SCM changes of " + getName()); if (pollingBaseline== null ) // see NOTE-NO-BASELINE above calcPollingBaseline(getLastBuild(), null ,listener); PollingResult r = scm.poll( this , null , null , listener, pollingBaseline); pollingBaseline = r.remote; return r; } Who could change this to fix the problem?

            People

            • Assignee:
              blalor blalor
              Reporter:
              davidjplatt davidjplatt
            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: