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

Perforce polling fails with NullPointerException

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Critical
    • Resolution: Fixed
    • Labels:
      None
    • Environment:
      SunOS 5.10 Generic_142901-03 i86pc i386 i86pc, Tomcat 7
      Perforce Plugin 1.3.16
    • Similar Issues:

      Description

      After upgrading to the latest version of the plugin, polling is broken for all projects, with the following exception trace

      
      hudson.triggers.SCMTrigger$Runner runPolling
      SEVERE: Failed to record SCM polling for hudson.model.FreeStyleProject@4b0fc9d1[New_York_Sync]
      java.lang.NullPointerException
      	at hudson.plugins.perforce.PerforceSCM.substituteParameters(PerforceSCM.java:2253)
      	at hudson.plugins.perforce.PerforceSCM.getEffectiveProjectPath(PerforceSCM.java:595)
      	at hudson.plugins.perforce.PerforceSCM.compareRemoteRevisionWith(PerforceSCM.java:1149)
      	at hudson.scm.SCM._compareRemoteRevisionWith(SCM.java:356)
      	at hudson.scm.SCM.poll(SCM.java:373)
      	at hudson.model.AbstractProject._poll(AbstractProject.java:1415)
      	at hudson.model.AbstractProject.poll(AbstractProject.java:1335)
      	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

          Issue Links

            Activity

            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Rob Petti
            Path:
            src/main/java/hudson/plugins/perforce/PerforceSCM.java
            http://jenkins-ci.org/commit/perforce-plugin/e45fb52bbf693283d1393926bd74f2c61189b1b3
            Log:
            [FIXED JENKINS-14766] fixing NPE during polling

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Rob Petti Path: src/main/java/hudson/plugins/perforce/PerforceSCM.java http://jenkins-ci.org/commit/perforce-plugin/e45fb52bbf693283d1393926bd74f2c61189b1b3 Log: [FIXED JENKINS-14766] fixing NPE during polling
            Hide
            imavroukakis Ioannis Mavroukakis added a comment - - edited

            Cheers Rob, when will this be released to the jenkins plugin repo?

            Show
            imavroukakis Ioannis Mavroukakis added a comment - - edited Cheers Rob, when will this be released to the jenkins plugin repo?
            Hide
            rpetti Rob Petti added a comment -

            I released it immediately after fixing and testing it, so it should be on it's way through the update center if it's not there already.

            Show
            rpetti Rob Petti added a comment - I released it immediately after fixing and testing it, so it should be on it's way through the update center if it's not there already.

              People

              • Assignee:
                rpetti Rob Petti
                Reporter:
                imavroukakis Ioannis Mavroukakis
              • Votes:
                2 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: