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

NullPointer in getPreviousBuild

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Critical Critical
    • core
    • core 1.501

      After upgrading to latest 1.501 (from 1.484) I see this error a lot in my Jenkins log surging from several actions: scm polling, columns sort, dashboard views, etc.

      Feb 16, 2013 6:00:55 PM hudson.triggers.SCMTrigger$Runner runPolling
      SEVERE: Failed to record SCM polling for hudson.model.FreeStyleProject@4dcc1f71[PM_OSS5_ACOMHFE_ADAPTATION_LV1]
      java.lang.NullPointerException
              at hudson.model.AbstractBuild.getPreviousBuild(AbstractBuild.java:213)
              at hudson.tasks.Fingerprinter$FingerprintAction.onLoad(Fingerprinter.java:349)
              at hudson.model.Run.onLoad(Run.java:320)
              at hudson.model.RunMap.retrieve(RunMap.java:226)
              at hudson.model.RunMap.retrieve(RunMap.java:59)
              at jenkins.model.lazy.AbstractLazyLoadRunMap.load(AbstractLazyLoadRunMap.java:645)
              at jenkins.model.lazy.AbstractLazyLoadRunMap.load(AbstractLazyLoadRunMap.java:608)
              at jenkins.model.lazy.AbstractLazyLoadRunMap.search(AbstractLazyLoadRunMap.java:347)
              at jenkins.model.lazy.AbstractLazyLoadRunMap.getByNumber(AbstractLazyLoadRunMap.java:505)
              at jenkins.model.lazy.AbstractLazyLoadRunMap.search(AbstractLazyLoadRunMap.java:358)
              at jenkins.model.lazy.AbstractLazyLoadRunMap.newestBuild(AbstractLazyLoadRunMap.java:300)
              at hudson.model.AbstractProject.getLastBuild(AbstractProject.java:1021)
              at hudson.model.AbstractProject.poll(AbstractProject.java:1387)
              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:471)
              at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
              at java.util.concurrent.FutureTask.run(FutureTask.java:166)
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
              at java.lang.Thread.run(Thread.java:722)
      

      I've disabled Downstream+buildview+plugin because of this error some jobs wouldn't even load, while other plugins like DashboardView would get dogslow while still throwing this same stacktrace, but still the same stack trace keeps showing up even in the most basic things like SCM Polling.

      Please check.

            Unassigned Unassigned
            josesa Jose Sa
            Votes:
            11 Vote for this issue
            Watchers:
            22 Start watching this issue

              Created:
              Updated:
              Resolved: