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 ]
            Hide
            josesa Jose Sa added a comment -

            After upgrading to 1.502, now I'm seeing bigger problems with same similar exception, where some jobs fail to load during Jenkins initialization

            Mar 08, 2013 5:05:21 AM jenkins.InitReactorRunner$1 onAttained
            INFO: Prepared all plugins
            Mar 08, 2013 5:05:49 AM jenkins.InitReactorRunner$1 onAttained
            INFO: Started all plugins
            Mar 08, 2013 5:05:49 AM jenkins.InitReactorRunner$1 onAttained
            INFO: Augmented all extensions
            
            Mar 08, 2013 5:06:03 AM jenkins.InitReactorRunner$1 onTaskFailed
            SEVERE: Failed Loading job PM_OSS5_MME_LV2_FUNCTIONAL_GA67
            java.lang.NullPointerException
                    at hudson.model.AbstractBuild.getPreviousBuild(AbstractBuild.java:214)
                    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:646)
                    at jenkins.model.lazy.AbstractLazyLoadRunMap.load(AbstractLazyLoadRunMap.java:608)
                    at jenkins.model.lazy.AbstractLazyLoadRunMap.search(AbstractLazyLoadRunMap.java:347)
                    at hudson.model.AbstractBuild.getPreviousBuild(AbstractBuild.java:214)
                    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:646)
                    at jenkins.model.lazy.AbstractLazyLoadRunMap.load(AbstractLazyLoadRunMap.java:608)
                    at jenkins.model.lazy.AbstractLazyLoadRunMap.search(AbstractLazyLoadRunMap.java:347)
                    at hudson.model.AbstractBuild.getPreviousBuild(AbstractBuild.java:214)
                    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:646)
                    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:1032)
                    at hudson.model.AbstractProject.getLastBuild(AbstractProject.java:138)
                    at hudson.plugins.robot.RobotProjectAction.getLastBuildWithRobot(RobotProjectAction.java:114)
                    at hudson.plugins.robot.RobotProjectAction.getLastBuildAction(RobotProjectAction.java:67)
                    at hudson.plugins.robot.RobotPublisher.getProjectActions(RobotPublisher.java:210)
                    at hudson.model.Project.createTransientActions(Project.java:211)
                    at hudson.model.AbstractProject.updateTransientActions(AbstractProject.java:699)
                    at hudson.model.AbstractProject.onLoad(AbstractProject.java:298)
                    at hudson.model.Project.onLoad(Project.java:83)
                    at hudson.model.Items.load(Items.java:221)
                    at jenkins.model.Jenkins$17.run(Jenkins.java:2539)
                    at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:146)
                    at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:259)
                    at jenkins.model.Jenkins$7.runTask(Jenkins.java:883)
                    at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:187)
                    at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:94)
                    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
                    at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:94)
                    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)
                    
                    
            Mar 08, 2013 5:06:06 AM jenkins.InitReactorRunner$1 onTaskFailed
            SEVERE: Failed Loading job RS_OSS5_ACOMNDS_LV2_BRINGUP_GA68
            java.lang.NullPointerException
                    at hudson.model.AbstractBuild.getPreviousBuild(AbstractBuild.java:214)
                    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:646)
                    at jenkins.model.lazy.AbstractLazyLoadRunMap.load(AbstractLazyLoadRunMap.java:629)
                    at jenkins.model.lazy.AbstractLazyLoadRunMap.search(AbstractLazyLoadRunMap.java:435)
                    at jenkins.model.lazy.AbstractLazyLoadRunMap.newestBuild(AbstractLazyLoadRunMap.java:300)
                    at hudson.model.AbstractProject.getLastBuild(AbstractProject.java:1032)
                    at hudson.model.AbstractProject.getLastBuild(AbstractProject.java:138)
                    at hudson.plugins.robot.RobotProjectAction.getLastBuildWithRobot(RobotProjectAction.java:114)
                    at hudson.plugins.robot.RobotProjectAction.getLastBuildAction(RobotProjectAction.java:67)
                    at hudson.plugins.robot.RobotPublisher.getProjectActions(RobotPublisher.java:210)
                    at hudson.model.Project.createTransientActions(Project.java:211)
                    at hudson.model.AbstractProject.updateTransientActions(AbstractProject.java:699)
                    at hudson.model.AbstractProject.onLoad(AbstractProject.java:298)
                    at hudson.model.Project.onLoad(Project.java:83)
                    at hudson.model.Items.load(Items.java:221)
                    at jenkins.model.Jenkins$17.run(Jenkins.java:2539)
                    at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:146)
                    at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:259)
                    at jenkins.model.Jenkins$7.runTask(Jenkins.java:883)
                    at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:187)
                    at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:94)
                    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)
            
            Show
            josesa Jose Sa added a comment - After upgrading to 1.502, now I'm seeing bigger problems with same similar exception, where some jobs fail to load during Jenkins initialization Mar 08, 2013 5:05:21 AM jenkins.InitReactorRunner$1 onAttained INFO: Prepared all plugins Mar 08, 2013 5:05:49 AM jenkins.InitReactorRunner$1 onAttained INFO: Started all plugins Mar 08, 2013 5:05:49 AM jenkins.InitReactorRunner$1 onAttained INFO: Augmented all extensions Mar 08, 2013 5:06:03 AM jenkins.InitReactorRunner$1 onTaskFailed SEVERE: Failed Loading job PM_OSS5_MME_LV2_FUNCTIONAL_GA67 java.lang.NullPointerException at hudson.model.AbstractBuild.getPreviousBuild(AbstractBuild.java:214) 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:646) at jenkins.model.lazy.AbstractLazyLoadRunMap.load(AbstractLazyLoadRunMap.java:608) at jenkins.model.lazy.AbstractLazyLoadRunMap.search(AbstractLazyLoadRunMap.java:347) at hudson.model.AbstractBuild.getPreviousBuild(AbstractBuild.java:214) 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:646) at jenkins.model.lazy.AbstractLazyLoadRunMap.load(AbstractLazyLoadRunMap.java:608) at jenkins.model.lazy.AbstractLazyLoadRunMap.search(AbstractLazyLoadRunMap.java:347) at hudson.model.AbstractBuild.getPreviousBuild(AbstractBuild.java:214) 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:646) 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:1032) at hudson.model.AbstractProject.getLastBuild(AbstractProject.java:138) at hudson.plugins.robot.RobotProjectAction.getLastBuildWithRobot(RobotProjectAction.java:114) at hudson.plugins.robot.RobotProjectAction.getLastBuildAction(RobotProjectAction.java:67) at hudson.plugins.robot.RobotPublisher.getProjectActions(RobotPublisher.java:210) at hudson.model.Project.createTransientActions(Project.java:211) at hudson.model.AbstractProject.updateTransientActions(AbstractProject.java:699) at hudson.model.AbstractProject.onLoad(AbstractProject.java:298) at hudson.model.Project.onLoad(Project.java:83) at hudson.model.Items.load(Items.java:221) at jenkins.model.Jenkins$17.run(Jenkins.java:2539) at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:146) at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:259) at jenkins.model.Jenkins$7.runTask(Jenkins.java:883) at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:187) at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:94) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:94) 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) Mar 08, 2013 5:06:06 AM jenkins.InitReactorRunner$1 onTaskFailed SEVERE: Failed Loading job RS_OSS5_ACOMNDS_LV2_BRINGUP_GA68 java.lang.NullPointerException at hudson.model.AbstractBuild.getPreviousBuild(AbstractBuild.java:214) 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:646) at jenkins.model.lazy.AbstractLazyLoadRunMap.load(AbstractLazyLoadRunMap.java:629) at jenkins.model.lazy.AbstractLazyLoadRunMap.search(AbstractLazyLoadRunMap.java:435) at jenkins.model.lazy.AbstractLazyLoadRunMap.newestBuild(AbstractLazyLoadRunMap.java:300) at hudson.model.AbstractProject.getLastBuild(AbstractProject.java:1032) at hudson.model.AbstractProject.getLastBuild(AbstractProject.java:138) at hudson.plugins.robot.RobotProjectAction.getLastBuildWithRobot(RobotProjectAction.java:114) at hudson.plugins.robot.RobotProjectAction.getLastBuildAction(RobotProjectAction.java:67) at hudson.plugins.robot.RobotPublisher.getProjectActions(RobotPublisher.java:210) at hudson.model.Project.createTransientActions(Project.java:211) at hudson.model.AbstractProject.updateTransientActions(AbstractProject.java:699) at hudson.model.AbstractProject.onLoad(AbstractProject.java:298) at hudson.model.Project.onLoad(Project.java:83) at hudson.model.Items.load(Items.java:221) at jenkins.model.Jenkins$17.run(Jenkins.java:2539) at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:146) at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:259) at jenkins.model.Jenkins$7.runTask(Jenkins.java:883) at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:187) at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:94) 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)
            Hide
            oldelvet Richard Mortimer added a comment -

            I suspect that this is an instance of JENKINS-15156. The stacktrace above shows that the problem occurred at AbstractBuild.java:214 and this line references AbstractProject#builds which was not being properly re-initialized by the lazy-loading code.

            JENKINS-15156 is mostly fixed in 1.504 but there are still a few fixes that will be in the soon to be released 1.505.

            Show
            oldelvet Richard Mortimer added a comment - I suspect that this is an instance of JENKINS-15156 . The stacktrace above shows that the problem occurred at AbstractBuild.java:214 and this line references AbstractProject#builds which was not being properly re-initialized by the lazy-loading code. JENKINS-15156 is mostly fixed in 1.504 but there are still a few fixes that will be in the soon to be released 1.505.
            Hide
            josesa Jose Sa added a comment -

            Jenkins upgraded to 1.505, but errors still shown during initialization causing jobs to fail loading:

            INFO: Augmented all extensions
            Mar 12, 2013 12:27:27 PM jenkins.InitReactorRunner$1 onTaskFailed
            SEVERE: Failed Loading job RS_OSS5_ACOMNDS_LV2_BRINGUP_GA68
            java.lang.NullPointerException
                    at hudson.model.AbstractBuild.getPreviousBuild(AbstractBuild.java:214)
                    at hudson.tasks.Fingerprinter$FingerprintAction.onLoad(Fingerprinter.java:349)
                    at hudson.model.Run.onLoad(Run.java:319)
                    at hudson.model.RunMap.retrieve(RunMap.java:226)
                    at hudson.model.RunMap.retrieve(RunMap.java:59)
                    at jenkins.model.lazy.AbstractLazyLoadRunMap.load(AbstractLazyLoadRunMap.java:657)
                    at jenkins.model.lazy.AbstractLazyLoadRunMap.load(AbstractLazyLoadRunMap.java:640)
                    at jenkins.model.lazy.AbstractLazyLoadRunMap.search(AbstractLazyLoadRunMap.java:446)
                    at jenkins.model.lazy.AbstractLazyLoadRunMap.newestBuild(AbstractLazyLoadRunMap.java:311)
                    at hudson.model.AbstractProject.getLastBuild(AbstractProject.java:1043)
                    at hudson.model.AbstractProject.getLastBuild(AbstractProject.java:140)
                    at hudson.plugins.robot.RobotProjectAction.getLastBuildWithRobot(RobotProjectAction.java:114)
                    at hudson.plugins.robot.RobotProjectAction.getLastBuildAction(RobotProjectAction.java:67)
                    at hudson.plugins.robot.RobotPublisher.getProjectActions(RobotPublisher.java:210)
                    at hudson.model.Project.createTransientActions(Project.java:211)
                    at hudson.model.AbstractProject.updateTransientActions(AbstractProject.java:701)
                    at hudson.model.AbstractProject.onLoad(AbstractProject.java:300)
                    at hudson.model.Project.onLoad(Project.java:83)
                    at hudson.model.Items.load(Items.java:221)
                    at jenkins.model.Jenkins$17.run(Jenkins.java:2540)
                    at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:146)
                    at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:259)
                    at jenkins.model.Jenkins$7.runTask(Jenkins.java:883)
                    at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:187)
                    at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:94)
                    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)
            
            Show
            josesa Jose Sa added a comment - Jenkins upgraded to 1.505, but errors still shown during initialization causing jobs to fail loading: INFO: Augmented all extensions Mar 12, 2013 12:27:27 PM jenkins.InitReactorRunner$1 onTaskFailed SEVERE: Failed Loading job RS_OSS5_ACOMNDS_LV2_BRINGUP_GA68 java.lang.NullPointerException at hudson.model.AbstractBuild.getPreviousBuild(AbstractBuild.java:214) at hudson.tasks.Fingerprinter$FingerprintAction.onLoad(Fingerprinter.java:349) at hudson.model.Run.onLoad(Run.java:319) at hudson.model.RunMap.retrieve(RunMap.java:226) at hudson.model.RunMap.retrieve(RunMap.java:59) at jenkins.model.lazy.AbstractLazyLoadRunMap.load(AbstractLazyLoadRunMap.java:657) at jenkins.model.lazy.AbstractLazyLoadRunMap.load(AbstractLazyLoadRunMap.java:640) at jenkins.model.lazy.AbstractLazyLoadRunMap.search(AbstractLazyLoadRunMap.java:446) at jenkins.model.lazy.AbstractLazyLoadRunMap.newestBuild(AbstractLazyLoadRunMap.java:311) at hudson.model.AbstractProject.getLastBuild(AbstractProject.java:1043) at hudson.model.AbstractProject.getLastBuild(AbstractProject.java:140) at hudson.plugins.robot.RobotProjectAction.getLastBuildWithRobot(RobotProjectAction.java:114) at hudson.plugins.robot.RobotProjectAction.getLastBuildAction(RobotProjectAction.java:67) at hudson.plugins.robot.RobotPublisher.getProjectActions(RobotPublisher.java:210) at hudson.model.Project.createTransientActions(Project.java:211) at hudson.model.AbstractProject.updateTransientActions(AbstractProject.java:701) at hudson.model.AbstractProject.onLoad(AbstractProject.java:300) at hudson.model.Project.onLoad(Project.java:83) at hudson.model.Items.load(Items.java:221) at jenkins.model.Jenkins$17.run(Jenkins.java:2540) at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:146) at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:259) at jenkins.model.Jenkins$7.runTask(Jenkins.java:883) at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:187) at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:94) 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)
            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 ]
            Hide
            dogfood dogfood added a comment -

            Integrated in jenkins_main_trunk #2432
            JENKINS-16845 Diagnostics. (Revision e172407b2cb0fe588c6e0699e88f5201f333ba27)

            Result = UNSTABLE
            Jesse Glick : e172407b2cb0fe588c6e0699e88f5201f333ba27
            Files :

            • core/src/main/java/hudson/model/AbstractBuild.java
            • core/src/main/java/hudson/model/AbstractProject.java
            Show
            dogfood dogfood added a comment - Integrated in jenkins_main_trunk #2432 JENKINS-16845 Diagnostics. (Revision e172407b2cb0fe588c6e0699e88f5201f333ba27) Result = UNSTABLE Jesse Glick : e172407b2cb0fe588c6e0699e88f5201f333ba27 Files : core/src/main/java/hudson/model/AbstractBuild.java core/src/main/java/hudson/model/AbstractProject.java
            Hide
            dogfood dogfood added a comment -

            Integrated in jenkins_main_trunk #2433
            JENKINS-16845 Hotfix to at least allow the job to be loaded. (Revision 353ebe6bfed33ef528e661d534449cfafca1aca8)

            Result = SUCCESS
            Jesse Glick : 353ebe6bfed33ef528e661d534449cfafca1aca8
            Files :

            • core/src/main/resources/hudson/tasks/Fingerprinter/FingerprintAction/index.jelly
            • changelog.html
            • core/src/main/java/hudson/tasks/Fingerprinter.java
            Show
            dogfood dogfood added a comment - Integrated in jenkins_main_trunk #2433 JENKINS-16845 Hotfix to at least allow the job to be loaded. (Revision 353ebe6bfed33ef528e661d534449cfafca1aca8) Result = SUCCESS Jesse Glick : 353ebe6bfed33ef528e661d534449cfafca1aca8 Files : core/src/main/resources/hudson/tasks/Fingerprinter/FingerprintAction/index.jelly changelog.html core/src/main/java/hudson/tasks/Fingerprinter.java
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Jesse Glick
            Path:
            changelog.html
            core/src/main/java/hudson/tasks/Fingerprinter.java
            core/src/main/resources/hudson/tasks/Fingerprinter/FingerprintAction/index.jelly
            http://jenkins-ci.org/commit/jenkins/353ebe6bfed33ef528e661d534449cfafca1aca8
            Log:
            JENKINS-16845 Hotfix to at least allow the job to be loaded.
            Root cause seems to be broken serial form of FingerprintAction, probably caused by lazy loading.

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: changelog.html core/src/main/java/hudson/tasks/Fingerprinter.java core/src/main/resources/hudson/tasks/Fingerprinter/FingerprintAction/index.jelly http://jenkins-ci.org/commit/jenkins/353ebe6bfed33ef528e661d534449cfafca1aca8 Log: JENKINS-16845 Hotfix to at least allow the job to be loaded. Root cause seems to be broken serial form of FingerprintAction, probably caused by lazy loading.
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Jesse Glick
            Path:
            core/src/main/java/hudson/model/AbstractBuild.java
            core/src/main/java/hudson/model/AbstractProject.java
            http://jenkins-ci.org/commit/jenkins/e172407b2cb0fe588c6e0699e88f5201f333ba27
            Log:
            JENKINS-16845 Diagnostics.

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: core/src/main/java/hudson/model/AbstractBuild.java core/src/main/java/hudson/model/AbstractProject.java http://jenkins-ci.org/commit/jenkins/e172407b2cb0fe588c6e0699e88f5201f333ba27 Log: JENKINS-16845 Diagnostics.
            Hide
            christianapel Christian Apel added a comment -

            Is this issue related to JENKINS-15652? We currently have dead executors every day, because of the following exception (see full stack trace in my comment):

            java.lang.ArrayIndexOutOfBoundsException: Assertion error: failing to load #6 DESC: lo=6,hi=4,size=6,size2=6
            at jenkins.model.lazy.AbstractLazyLoadRunMap.search(AbstractLazyLoadRunMap.java:432)
            at hudson.model.AbstractProject.getNearestOldBuild(AbstractProject.java:1053)
            at hudson.maven.MavenModuleSetBuild.getModuleLastBuilds(MavenModuleSetBuild.java:434)
            at hudson.maven.MavenModuleSetBuild.getResult(MavenModuleSetBuild.java:189)

            Show
            christianapel Christian Apel added a comment - Is this issue related to JENKINS-15652 ? We currently have dead executors every day, because of the following exception (see full stack trace in my comment ): java.lang.ArrayIndexOutOfBoundsException: Assertion error: failing to load #6 DESC: lo=6,hi=4,size=6,size2=6 at jenkins.model.lazy.AbstractLazyLoadRunMap.search(AbstractLazyLoadRunMap.java:432) at hudson.model.AbstractProject.getNearestOldBuild(AbstractProject.java:1053) at hudson.maven.MavenModuleSetBuild.getModuleLastBuilds(MavenModuleSetBuild.java:434) at hudson.maven.MavenModuleSetBuild.getResult(MavenModuleSetBuild.java:189)
            Hide
            jglick Jesse Glick added a comment -

            @christianapel: looks unrelated.

            Show
            jglick Jesse Glick added a comment - @christianapel: looks unrelated.
            Hide
            alex_ouzounis Alex Ouzounis added a comment -

            we are also affected by the broken serial form of FingerprintAction.
            What happens in our case is that in some cases the dashboard view cannot display the unstable and latest builds. After a couple of refreshes the view gets populated correctly so my assumption is that the lazy loaded "map" of builds loses its integrity and refreshing the dashboard view "forces" it to reload a bit every time until all builds are loaded correctly.

            We experience this after a jenkins restart or after periods of inactivity. Not sure why it happens in the second case; is the map of builds "cleared" after some time and needs to be re-build ?

            Show
            alex_ouzounis Alex Ouzounis added a comment - we are also affected by the broken serial form of FingerprintAction. What happens in our case is that in some cases the dashboard view cannot display the unstable and latest builds. After a couple of refreshes the view gets populated correctly so my assumption is that the lazy loaded "map" of builds loses its integrity and refreshing the dashboard view "forces" it to reload a bit every time until all builds are loaded correctly. We experience this after a jenkins restart or after periods of inactivity. Not sure why it happens in the second case; is the map of builds "cleared" after some time and needs to be re-build ?
            Hide
            alex_ouzounis Alex Ouzounis added a comment - - edited

            updated our Jenkins to 1.511 and problem is gone!

            Obviously the log now contains a dozen of these:

            Apr 15, 2013 10:22:09 AM hudson.tasks.Fingerprinter$FingerprintAction onLoad
            WARNING: JENKINS-16845: broken FingerprintAction record

            Would it be more helpful to have the warning updated such that it displays the build name and number that contains the broken FingerprintAction record ?

            Show
            alex_ouzounis Alex Ouzounis added a comment - - edited updated our Jenkins to 1.511 and problem is gone! Obviously the log now contains a dozen of these: Apr 15, 2013 10:22:09 AM hudson.tasks.Fingerprinter$FingerprintAction onLoad WARNING: JENKINS-16845 : broken FingerprintAction record Would it be more helpful to have the warning updated such that it displays the build name and number that contains the broken FingerprintAction record ?
            Hide
            jglick Jesse Glick added a comment -

            @alex_ouzounis: it would certainly be more helpful. Unfortunately when @FingerprintAction@ is deserialized it does not have access to this context information (or at least I do not know how to access it).

            Please be aware that 353ebe6 is only a hotfix to allow build records to be loaded with minimal loss of functionality. It is not a real fix, which would change the serial form to be safely stored and reloaded. The duplicate JENKINS-17125 has a full discussion.

            Show
            jglick Jesse Glick added a comment - @alex_ouzounis: it would certainly be more helpful. Unfortunately when @FingerprintAction@ is deserialized it does not have access to this context information (or at least I do not know how to access it). Please be aware that 353ebe6 is only a hotfix to allow build records to be loaded with minimal loss of functionality. It is not a real fix, which would change the serial form to be safely stored and reloaded. The duplicate JENKINS-17125 has a full discussion.
            Hide
            alex_ouzounis Alex Ouzounis added a comment -

            @jess_glick thanks for the reply Hopefully we will get a permeant fix in due time

            Show
            alex_ouzounis Alex Ouzounis added a comment - @jess_glick thanks for the reply Hopefully we will get a permeant fix in due time
            nickolay_martinov Nikolay Martynov made changes -
            Link This issue is related to JENKINS-17125 [ JENKINS-17125 ]
            Hide
            alex_ouzounis Alex Ouzounis added a comment - - edited

            Its back...

            I restarted jenkins and now I see this in the logs:

             
            Apr 17, 2013 3:21:18 PM hudson.ExpressionFactory2$JexlExpression evaluate
            WARNING: Caught exception evaluating: it.finishedBuilds in /jenkins/. Reason: java.lang.reflect.InvocationTargetException
            java.lang.reflect.InvocationTargetException
            	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
            	...
            	at jenkins.security.ApiTokenFilter.doFilter(ApiTokenFilter.java:64)
            	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
            	at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249)
            	at hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:67)
            	...
            	at java.lang.Thread.run(Thread.java:722)
            Caused by: java.lang.NullPointerException
            	at hudson.tasks.Fingerprinter$FingerprintAction.onLoad(Fingerprinter.java:346)
            	at hudson.model.Run.onLoad(Run.java:319)
            	at hudson.model.RunMap.retrieve(RunMap.java:226)
            	at hudson.model.RunMap.retrieve(RunMap.java:59)
            	at jenkins.model.lazy.AbstractLazyLoadRunMap.load(AbstractLazyLoadRunMap.java:667)
            	at jenkins.model.lazy.AbstractLazyLoadRunMap.load(AbstractLazyLoadRunMap.java:650)
            	at jenkins.model.lazy.AbstractLazyLoadRunMap.all(AbstractLazyLoadRunMap.java:602)
            	at jenkins.model.lazy.AbstractLazyLoadRunMap.entrySet(AbstractLazyLoadRunMap.java:264)
            	at java.util.AbstractMap$2$1.<init>(AbstractMap.java:378)
            	at java.util.AbstractMap$2.iterator(AbstractMap.java:377)
            	at hudson.util.RunList.iterator(RunList.java:103)
            	at hudson.util.RunList.size(RunList.java:114)
            	at java.util.AbstractCollection.toArray(AbstractCollection.java:136)
            	at java.util.ArrayList.addAll(ArrayList.java:530)
            	at hudson.plugins.view.dashboard.builds.LatestBuilds.getFinishedBuilds(LatestBuilds.java:53)
            	... 149 more
            
            Show
            alex_ouzounis Alex Ouzounis added a comment - - edited Its back... I restarted jenkins and now I see this in the logs: Apr 17, 2013 3:21:18 PM hudson.ExpressionFactory2$JexlExpression evaluate WARNING: Caught exception evaluating: it.finishedBuilds in /jenkins/. Reason: java.lang.reflect.InvocationTargetException java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ... at jenkins.security.ApiTokenFilter.doFilter(ApiTokenFilter.java:64) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249) at hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:67) ... at java.lang. Thread .run( Thread .java:722) Caused by: java.lang.NullPointerException at hudson.tasks.Fingerprinter$FingerprintAction.onLoad(Fingerprinter.java:346) at hudson.model.Run.onLoad(Run.java:319) at hudson.model.RunMap.retrieve(RunMap.java:226) at hudson.model.RunMap.retrieve(RunMap.java:59) at jenkins.model.lazy.AbstractLazyLoadRunMap.load(AbstractLazyLoadRunMap.java:667) at jenkins.model.lazy.AbstractLazyLoadRunMap.load(AbstractLazyLoadRunMap.java:650) at jenkins.model.lazy.AbstractLazyLoadRunMap.all(AbstractLazyLoadRunMap.java:602) at jenkins.model.lazy.AbstractLazyLoadRunMap.entrySet(AbstractLazyLoadRunMap.java:264) at java.util.AbstractMap$2$1.<init>(AbstractMap.java:378) at java.util.AbstractMap$2.iterator(AbstractMap.java:377) at hudson.util.RunList.iterator(RunList.java:103) at hudson.util.RunList.size(RunList.java:114) at java.util.AbstractCollection.toArray(AbstractCollection.java:136) at java.util.ArrayList.addAll(ArrayList.java:530) at hudson.plugins.view.dashboard.builds.LatestBuilds.getFinishedBuilds(LatestBuilds.java:53) ... 149 more
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Jesse Glick
            Path:
            core/src/main/java/hudson/tasks/Fingerprinter.java
            core/src/main/resources/hudson/tasks/Fingerprinter/FingerprintAction/index.jelly
            http://jenkins-ci.org/commit/jenkins/6d13d4cc424c05a3c0dff080fb978e8f18455392
            Log:
            JENKINS-16845 Hotfix to at least allow the job to be loaded.
            Root cause seems to be broken serial form of FingerprintAction, probably caused by lazy loading.(cherry picked from commit 353ebe6bfed33ef528e661d534449cfafca1aca8)

            Conflicts:
            changelog.html

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: core/src/main/java/hudson/tasks/Fingerprinter.java core/src/main/resources/hudson/tasks/Fingerprinter/FingerprintAction/index.jelly http://jenkins-ci.org/commit/jenkins/6d13d4cc424c05a3c0dff080fb978e8f18455392 Log: JENKINS-16845 Hotfix to at least allow the job to be loaded. Root cause seems to be broken serial form of FingerprintAction, probably caused by lazy loading.(cherry picked from commit 353ebe6bfed33ef528e661d534449cfafca1aca8) Conflicts: changelog.html
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Jesse Glick
            Path:
            core/src/main/java/hudson/model/AbstractBuild.java
            core/src/main/java/hudson/model/AbstractProject.java
            http://jenkins-ci.org/commit/jenkins/e565acd39771da86dee2918d2d6feb9f0705730f
            Log:
            JENKINS-16845 Diagnostics.(cherry picked from commit e172407b2cb0fe588c6e0699e88f5201f333ba27)

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: core/src/main/java/hudson/model/AbstractBuild.java core/src/main/java/hudson/model/AbstractProject.java http://jenkins-ci.org/commit/jenkins/e565acd39771da86dee2918d2d6feb9f0705730f Log: JENKINS-16845 Diagnostics.(cherry picked from commit e172407b2cb0fe588c6e0699e88f5201f333ba27)
            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 ]
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Jesse Glick
            Path:
            core/src/main/java/hudson/tasks/Fingerprinter.java
            http://jenkins-ci.org/commit/jenkins/24c8b60f7ec2e92e1db69d3b11fb96ed4b6992d2
            Log:
            JENKINS-16845 Refinement to hotfix: if build field has already been cleared due to earlier warning, do not throw a new NPE.

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: core/src/main/java/hudson/tasks/Fingerprinter.java http://jenkins-ci.org/commit/jenkins/24c8b60f7ec2e92e1db69d3b11fb96ed4b6992d2 Log: JENKINS-16845 Refinement to hotfix: if build field has already been cleared due to earlier warning, do not throw a new NPE.
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Jesse Glick
            Path:
            core/src/main/java/hudson/tasks/Fingerprinter.java
            http://jenkins-ci.org/commit/jenkins/405746324411959713835a02ba4a10096372bbdc
            Log:
            JENKINS-16845 Refinement to hotfix: if build field has already been cleared due to earlier warning, do not throw a new NPE.

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: core/src/main/java/hudson/tasks/Fingerprinter.java http://jenkins-ci.org/commit/jenkins/405746324411959713835a02ba4a10096372bbdc Log: JENKINS-16845 Refinement to hotfix: if build field has already been cleared due to earlier warning, do not throw a new NPE.
            Hide
            dogfood dogfood added a comment -

            Integrated in jenkins_main_trunk #2492
            JENKINS-16845 Refinement to hotfix: if build field has already been cleared due to earlier warning, do not throw a new NPE. (Revision 405746324411959713835a02ba4a10096372bbdc)

            Result = UNSTABLE
            Jesse Glick : 405746324411959713835a02ba4a10096372bbdc
            Files :

            • core/src/main/java/hudson/tasks/Fingerprinter.java
            Show
            dogfood dogfood added a comment - Integrated in jenkins_main_trunk #2492 JENKINS-16845 Refinement to hotfix: if build field has already been cleared due to earlier warning, do not throw a new NPE. (Revision 405746324411959713835a02ba4a10096372bbdc) Result = UNSTABLE Jesse Glick : 405746324411959713835a02ba4a10096372bbdc Files : core/src/main/java/hudson/tasks/Fingerprinter.java
            Hide
            alex_ouzounis Alex Ouzounis added a comment -

            Since 1.511 and clearing/deleting the bad builds problem is officially gone

            Show
            alex_ouzounis Alex Ouzounis added a comment - Since 1.511 and clearing/deleting the bad builds problem is officially gone
            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
            Hide
            gitt Slawa Giterman added a comment -

            I get similar error with 1.509.1:

            • I had several jobs created in Jenkins 1.501. The problem was that "Test Result Trend" chart was often not shown and in log file there were NullPointer/getPreviousBuild() exceptions.
            • Then I upgraded to 1.509.1, deleted all old builds and "Test Result Trend" charts were shown again. But only for some time. After several new builds they disappeared and this is what i see in Jenkins log again:
            May 15, 2013 2:19:19 PM org.kohsuke.stapler.compression.CompressionFilter reportException
            WARNING: Untrapped servlet exception
            javax.servlet.ServletException: java.lang.NullPointerException
            	at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:719)
            	at org.kohsuke.stapler.Stapler.invoke(Stapler.java:770)
            	at org.kohsuke.stapler.MetaClass$12.dispatch(MetaClass.java:384)
            	at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:677)
            	at org.kohsuke.stapler.Stapler.invoke(Stapler.java:770)
            	at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:241)
            	at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
            	at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:677)
            	at org.kohsuke.stapler.Stapler.invoke(Stapler.java:770)
            	at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:241)
            	at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
            	at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:677)
            	at org.kohsuke.stapler.Stapler.invoke(Stapler.java:770)
            	at org.kohsuke.stapler.Stapler.invoke(Stapler.java:583)
            	at org.kohsuke.stapler.Stapler.service(Stapler.java:214)
            ...
            Caused by: java.lang.NullPointerException
            	at hudson.model.Run.getFullDisplayName(Run.java:711)
            	at hudson.model.Run.toString(Run.java:706)
            	at java.lang.String.valueOf(Unknown Source)
            	at java.lang.StringBuilder.append(Unknown Source)
            	at hudson.model.AbstractBuild.getPreviousBuild(AbstractBuild.java:218)
            	at hudson.tasks.test.AbstractTestResultAction.getPreviousResult(AbstractTestResultAction.java:163)
            	at hudson.tasks.test.AbstractTestResultAction.buildDataSet(AbstractTestResultAction.java:246)
            	at hudson.tasks.test.AbstractTestResultAction.doGraphMap(AbstractTestResultAction.java:217)
            	at hudson.tasks.test.TestResultProjectAction.doTrendMap(TestResultProjectAction.java:108)
            	at sun.reflect.GeneratedMethodAccessor2212.invoke(Unknown Source)
            	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
            	at java.lang.reflect.Method.invoke(Unknown Source)
            	at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:288)
            	at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:151)
            	at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:90)
            	at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:111)
            	at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
            	at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:677)
            ...
            

            Or sometimes:

            May 16, 2013 10:06:30 AM hudson.ExpressionFactory2$JexlExpression evaluate
            WARNING: Caught exception evaluating: tr.previousResult!=null in /jenkins/view/Tests-Functional/job/FT_Web/. Reason: java.lang.reflect.InvocationTargetException
            java.lang.reflect.InvocationTargetException
            	at sun.reflect.GeneratedMethodAccessor815.invoke(Unknown Source)
            	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
            	at java.lang.reflect.Method.invoke(Unknown Source)
            	at org.apache.commons.jexl.util.PropertyExecutor.execute(PropertyExecutor.java:125)
            	at org.apache.commons.jexl.util.introspection.UberspectImpl$VelGetterImpl.invoke(UberspectImpl.java:314)
            	at org.apache.commons.jexl.parser.ASTArrayAccess.evaluateExpr(ASTArrayAccess.java:185)
            	at org.apache.commons.jexl.parser.ASTIdentifier.execute(ASTIdentifier.java:75)
            	at org.apache.commons.jexl.parser.ASTReference.execute(ASTReference.java:83)
            	at org.apache.commons.jexl.parser.ASTReference.value(ASTReference.java:57)
            	at org.apache.commons.jexl.parser.ASTNENode.value(ASTNENode.java:55)
            	at org.apache.commons.jexl.parser.ASTExpression.value(ASTExpression.java:54)
            	at org.apache.commons.jexl.parser.ASTExpressionExpression.value(ASTExpressionExpression.java:56)
            	at org.apache.commons.jexl.ExpressionImpl.evaluate(ExpressionImpl.java:80)
            	at hudson.ExpressionFactory2$JexlExpression.evaluate(ExpressionFactory2.java:74)
            ...
            Caused by: java.lang.NullPointerException
            	at hudson.model.Run.getFullDisplayName(Run.java:711)
            	at hudson.model.Run.toString(Run.java:706)
            	at java.lang.String.valueOf(Unknown Source)
            	at java.lang.StringBuilder.append(Unknown Source)
            	at hudson.model.AbstractBuild.getPreviousBuild(AbstractBuild.java:218)
            	at hudson.tasks.test.AbstractTestResultAction.getPreviousResult(AbstractTestResultAction.java:163)
            	at hudson.tasks.test.AbstractTestResultAction.getPreviousResult(AbstractTestResultAction.java:157)
            ...
            
            Show
            gitt Slawa Giterman added a comment - I get similar error with 1.509.1: I had several jobs created in Jenkins 1.501. The problem was that "Test Result Trend" chart was often not shown and in log file there were NullPointer/getPreviousBuild() exceptions. Then I upgraded to 1.509.1, deleted all old builds and "Test Result Trend" charts were shown again. But only for some time. After several new builds they disappeared and this is what i see in Jenkins log again: May 15, 2013 2:19:19 PM org.kohsuke.stapler.compression.CompressionFilter reportException WARNING: Untrapped servlet exception javax.servlet.ServletException: java.lang.NullPointerException at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:719) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:770) at org.kohsuke.stapler.MetaClass$12.dispatch(MetaClass.java:384) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:677) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:770) at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:241) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:677) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:770) at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:241) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:677) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:770) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:583) at org.kohsuke.stapler.Stapler.service(Stapler.java:214) ... Caused by: java.lang.NullPointerException at hudson.model.Run.getFullDisplayName(Run.java:711) at hudson.model.Run.toString(Run.java:706) at java.lang. String .valueOf(Unknown Source) at java.lang.StringBuilder.append(Unknown Source) at hudson.model.AbstractBuild.getPreviousBuild(AbstractBuild.java:218) at hudson.tasks.test.AbstractTestResultAction.getPreviousResult(AbstractTestResultAction.java:163) at hudson.tasks.test.AbstractTestResultAction.buildDataSet(AbstractTestResultAction.java:246) at hudson.tasks.test.AbstractTestResultAction.doGraphMap(AbstractTestResultAction.java:217) at hudson.tasks.test.TestResultProjectAction.doTrendMap(TestResultProjectAction.java:108) at sun.reflect.GeneratedMethodAccessor2212.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:288) at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:151) at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:90) at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:111) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:677) ... Or sometimes: May 16, 2013 10:06:30 AM hudson.ExpressionFactory2$JexlExpression evaluate WARNING: Caught exception evaluating: tr.previousResult!= null in /jenkins/view/Tests-Functional/job/FT_Web/. Reason: java.lang.reflect.InvocationTargetException java.lang.reflect.InvocationTargetException at sun.reflect.GeneratedMethodAccessor815.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.commons.jexl.util.PropertyExecutor.execute(PropertyExecutor.java:125) at org.apache.commons.jexl.util.introspection.UberspectImpl$VelGetterImpl.invoke(UberspectImpl.java:314) at org.apache.commons.jexl.parser.ASTArrayAccess.evaluateExpr(ASTArrayAccess.java:185) at org.apache.commons.jexl.parser.ASTIdentifier.execute(ASTIdentifier.java:75) at org.apache.commons.jexl.parser.ASTReference.execute(ASTReference.java:83) at org.apache.commons.jexl.parser.ASTReference.value(ASTReference.java:57) at org.apache.commons.jexl.parser.ASTNENode.value(ASTNENode.java:55) at org.apache.commons.jexl.parser.ASTExpression.value(ASTExpression.java:54) at org.apache.commons.jexl.parser.ASTExpressionExpression.value(ASTExpressionExpression.java:56) at org.apache.commons.jexl.ExpressionImpl.evaluate(ExpressionImpl.java:80) at hudson.ExpressionFactory2$JexlExpression.evaluate(ExpressionFactory2.java:74) ... Caused by: java.lang.NullPointerException at hudson.model.Run.getFullDisplayName(Run.java:711) at hudson.model.Run.toString(Run.java:706) at java.lang. String .valueOf(Unknown Source) at java.lang.StringBuilder.append(Unknown Source) at hudson.model.AbstractBuild.getPreviousBuild(AbstractBuild.java:218) at hudson.tasks.test.AbstractTestResultAction.getPreviousResult(AbstractTestResultAction.java:163) at hudson.tasks.test.AbstractTestResultAction.getPreviousResult(AbstractTestResultAction.java:157) ...
            Hide
            jglick Jesse Glick added a comment -

            @gitt I am not convinced your exception is related to this issue.

            Show
            jglick Jesse Glick added a comment - @gitt I am not convinced your exception is related to this issue.
            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 ]
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Jesse Glick
            Path:
            core/src/main/java/hudson/model/AbstractBuild.java
            http://jenkins-ci.org/commit/jenkins/cc26f23ec4f7ba58577c490b35e4c481d0527f49
            Log:
            JENKINS-16845 Properly report the IllegalStateException, rather than throwing an NPE producing the exception message.
            java.lang.NullPointerException
            at hudson.model.Run.getFullDisplayName(Run.java:711)
            at hudson.model.Run.toString(Run.java:706)
            at java.lang.String.valueOf(Unknown Source)
            at java.lang.StringBuilder.append(Unknown Source)
            at hudson.model.AbstractBuild.getPreviousBuild(AbstractBuild.java:218)

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: core/src/main/java/hudson/model/AbstractBuild.java http://jenkins-ci.org/commit/jenkins/cc26f23ec4f7ba58577c490b35e4c481d0527f49 Log: JENKINS-16845 Properly report the IllegalStateException, rather than throwing an NPE producing the exception message. java.lang.NullPointerException at hudson.model.Run.getFullDisplayName(Run.java:711) at hudson.model.Run.toString(Run.java:706) at java.lang.String.valueOf(Unknown Source) at java.lang.StringBuilder.append(Unknown Source) at hudson.model.AbstractBuild.getPreviousBuild(AbstractBuild.java:218)
            Hide
            dogfood dogfood added a comment -

            Integrated in jenkins_main_trunk #2601
            JENKINS-16845 Properly report the IllegalStateException, rather than throwing an NPE producing the exception message. (Revision cc26f23ec4f7ba58577c490b35e4c481d0527f49)

            Result = SUCCESS
            Jesse Glick : cc26f23ec4f7ba58577c490b35e4c481d0527f49
            Files :

            • core/src/main/java/hudson/model/AbstractBuild.java
            Show
            dogfood dogfood added a comment - Integrated in jenkins_main_trunk #2601 JENKINS-16845 Properly report the IllegalStateException, rather than throwing an NPE producing the exception message. (Revision cc26f23ec4f7ba58577c490b35e4c481d0527f49) Result = SUCCESS Jesse Glick : cc26f23ec4f7ba58577c490b35e4c481d0527f49 Files : core/src/main/java/hudson/model/AbstractBuild.java
            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: