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

Perforce Polling throws NullPointerException

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Critical
    • Resolution: Fixed
    • Component/s: perforce-plugin
    • Labels:
      None
    • Environment:
      redhat linux
      hudson 1.361
    • Similar Issues:

      Description

      I have configured the perforce plugin and am trying to trigger builds based on new checkins. Whenever the poll occurs, a NullPointerException is logged:

      Jun 14, 2010 1:20:32 AM hudson.triggers.SCMTrigger$Runner runPolling
      SEVERE: Failed to record SCM polling
      java.lang.NullPointerException
      at hudson.plugins.perforce.PerforceSCM.getDefaultSubstitutions(PerforceSCM.java:394)
      at hudson.plugins.perforce.PerforceSCM.pollChanges(PerforceSCM.java:702)
      at hudson.scm.SCM.poll(SCM.java:370)
      at hudson.model.AbstractProject.poll(AbstractProject.java:1157)
      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:417)
      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
      at java.util.concurrent.FutureTask.run(FutureTask.java:123)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
      at java.lang.Thread.run(Thread.java:595)

      Feed

        Attachments

          Activity

          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in hudson
          User: : rpetti
          Path:
          trunk/hudson/plugins/perforce/src/main/java/hudson/plugins/perforce/PerforceSCM.java
          http://jenkins-ci.org/commit/32018
          Log:
          [FIXED JENKINS-6762] fixing NPE during polling

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in hudson User: : rpetti Path: trunk/hudson/plugins/perforce/src/main/java/hudson/plugins/perforce/PerforceSCM.java http://jenkins-ci.org/commit/32018 Log: [FIXED JENKINS-6762] fixing NPE during polling
          Hide
          kireetreddy kireetreddy added a comment -

          wow, fixes don't get faster than that!

          for those wanting to work around this issue, i was able to get polling to work by checking the "This build is parameterized" box and adding a dummy parameter.

          Show
          kireetreddy kireetreddy added a comment - wow, fixes don't get faster than that! for those wanting to work around this issue, i was able to get polling to work by checking the "This build is parameterized" box and adding a dummy parameter.

            People

            • Assignee:
              rpetti Rob Petti
              Reporter:
              kireetreddy kireetreddy
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: