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

NullPointer in getPreviousBuild

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      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.

        Attachments

          Issue Links

            Activity

            josesa Jose Sa created issue -
            josesa Jose Sa made changes -
            Field Original Value New Value
            Description 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.

            {code}
            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)
            {code}

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

            Please check.
            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.

            {code}
            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)
            {code}

            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.
            kutzi kutzi made changes -
            Link This issue is related to JENKINS-17125 [ JENKINS-17125 ]
            nickolay_martinov Nikolay Martynov made changes -
            Link This issue is related to JENKINS-17265 [ JENKINS-17265 ]
            jglick Jesse Glick made changes -
            Link This issue is related to JENKINS-8754 [ JENKINS-8754 ]
            jglick Jesse Glick made changes -
            Link This issue is related to JENKINS-15156 [ JENKINS-15156 ]
            jglick Jesse Glick made changes -
            Link This issue is duplicated by JENKINS-17125 [ JENKINS-17125 ]
            jglick Jesse Glick made changes -
            Link This issue is related to JENKINS-17125 [ JENKINS-17125 ]
            jglick Jesse Glick made changes -
            Link This issue is related to JENKINS-17265 [ JENKINS-17265 ]
            jglick Jesse Glick made changes -
            Link This issue is duplicated by JENKINS-17265 [ JENKINS-17265 ]
            jglick Jesse Glick made changes -
            Labels lts-candidate
            jglick Jesse Glick made changes -
            Assignee Kohsuke Kawaguchi [ kohsuke ] Jesse Glick [ jglick ]
            jglick Jesse Glick made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            jglick Jesse Glick made changes -
            Status In Progress [ 3 ] Open [ 1 ]
            jglick Jesse Glick made changes -
            Assignee Jesse Glick [ jglick ]
            nickolay_martinov Nikolay Martynov made changes -
            Link This issue is related to JENKINS-17125 [ JENKINS-17125 ]
            jglick Jesse Glick made changes -
            Link This issue is related to JENKINS-15763 [ JENKINS-15763 ]
            jglick Jesse Glick made changes -
            Link This issue is related to JENKINS-17125 [ JENKINS-17125 ]
            vjuranek vjuranek made changes -
            Labels lts-candidate 1.509.1-fixed lts-candidate
            vjuranek vjuranek made changes -
            Labels 1.509.1-fixed lts-candidate 1.509.1-fixed
            vjuranek vjuranek made changes -
            Labels 1.509.1-fixed 1.509.1-fixed lts-candidate
            jglick Jesse Glick made changes -
            Link This issue is duplicated by JENKINS-17125 [ JENKINS-17125 ]
            jglick Jesse Glick made changes -
            Link This issue duplicates JENKINS-17125 [ JENKINS-17125 ]
            jglick Jesse Glick made changes -
            Resolution Duplicate [ 3 ]
            Status Open [ 1 ] Resolved [ 5 ]
            jglick Jesse Glick made changes -
            Labels 1.509.1-fixed lts-candidate 1.509.1-fixed
            danielbeck Daniel Beck made changes -
            Link This issue is duplicated by JENKINS-17976 [ JENKINS-17976 ]
            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 147674 ] JNJira + In-Review [ 192533 ]

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              josesa Jose Sa
              Votes:
              11 Vote for this issue
              Watchers:
              23 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: