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

RunList returning null from its elements in 1.485

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • core
    • Ubuntu Linux 2.6 Server x86 GNU/Linux

      Kohsuke's updated summary

      In 1.485, there's a bug that causes Jenkins to return null when someone is listing historical build records. The caller is not expecting null return value, so this normally results in NullPointerException.

      Because there are numerous code inside Jenkins that touches build history, such NullPointerException can occur in a large number of different places.

      If you are not sure your NullPointerException is just another manifestation of this bug or an unrelated bug, please feel free to file a separate ticket, and mention this ticket as a possible cause so that the plugin developers won't get confused.

      Original bug report

      running the build fails with the following error:

      ERROR: Processing failed due to a bug in the code. Please report this to jenkinsci-users@googlegroups.com
      java.lang.NullPointerException
      at hudson.tasks.LogRotator.perform(LogRotator.java:119)
      at hudson.model.Job.logRotate(Job.java:338)
      at hudson.model.Run.execute(Run.java:1581)
      at hudson.maven.MavenBuild.access$600(MavenBuild.java:83)
      at hudson.maven.MavenBuild$ProxyImpl2.close(MavenBuild.java:545)
      at hudson.maven.AbstractMavenBuilder.end(AbstractMavenBuilder.java:106)
      at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:794)
      at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:589)
      at hudson.model.Run.execute(Run.java:1516)
      at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:477)
      at hudson.model.ResourceController.execute(ResourceController.java:88)
      at hudson.model.Executor.run(Executor.java:236)
      project=hudson.maven.MavenModuleSet@280d8b87[deploy sdk]

          [JENKINS-15465] RunList returning null from its elements in 1.485

          Phumzile Saleni created issue -
          Phumzile Saleni made changes -
          Summary Original: Running a maven build on jenkins gives the following log and fails the build NB: htis build was assing before the latest update New: Running a maven build on jenkins gives the following log and fails the build NB: this build was working before the latest update
          Kohsuke Kawaguchi made changes -
          Assignee New: Kohsuke Kawaguchi [ kohsuke ]
          Summary Original: Running a maven build on jenkins gives the following log and fails the build NB: this build was working before the latest update New: RunList returning null from its elements in 1.485
          Kohsuke Kawaguchi made changes -
          Component/s New: core [ 15593 ]
          Component/s Original: maven [ 16033 ]
          Kohsuke Kawaguchi made changes -
          Description Original: running the build fails with the following error:

          ERROR: Processing failed due to a bug in the code. Please report this to jenkinsci-users@googlegroups.com
          java.lang.NullPointerException
          at hudson.tasks.LogRotator.perform(LogRotator.java:119)
          at hudson.model.Job.logRotate(Job.java:338)
          at hudson.model.Run.execute(Run.java:1581)
          at hudson.maven.MavenBuild.access$600(MavenBuild.java:83)
          at hudson.maven.MavenBuild$ProxyImpl2.close(MavenBuild.java:545)
          at hudson.maven.AbstractMavenBuilder.end(AbstractMavenBuilder.java:106)
          at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:794)
          at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:589)
          at hudson.model.Run.execute(Run.java:1516)
          at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:477)
          at hudson.model.ResourceController.execute(ResourceController.java:88)
          at hudson.model.Executor.run(Executor.java:236)
          project=hudson.maven.MavenModuleSet@280d8b87[deploy sdk]
          New: h3.Kohsuke's updated summary
          In 1.485, there's a bug that causes Jenkins to return null when someone is listing historical build records. The caller is not expecting null return value, so this normally results in NullPointerException.

          Because there are numerous code inside Jenkins that touches build history, such NullPointerException can occur in a large number of different places.

          If you are not sure your NullPointerException is just another manifestation of this bug or an unrelated bug, please feel free to file a separate ticket, and mention this ticket as a possible cause so that the plugin developers won't get confused.


          h3.Original bug report

          running the build fails with the following error:

          ERROR: Processing failed due to a bug in the code. Please report this to jenkinsci-users@googlegroups.com
          java.lang.NullPointerException
          at hudson.tasks.LogRotator.perform(LogRotator.java:119)
          at hudson.model.Job.logRotate(Job.java:338)
          at hudson.model.Run.execute(Run.java:1581)
          at hudson.maven.MavenBuild.access$600(MavenBuild.java:83)
          at hudson.maven.MavenBuild$ProxyImpl2.close(MavenBuild.java:545)
          at hudson.maven.AbstractMavenBuilder.end(AbstractMavenBuilder.java:106)
          at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:794)
          at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:589)
          at hudson.model.Run.execute(Run.java:1516)
          at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:477)
          at hudson.model.ResourceController.execute(ResourceController.java:88)
          at hudson.model.Executor.run(Executor.java:236)
          project=hudson.maven.MavenModuleSet@280d8b87[deploy sdk]
          SCM/JIRA link daemon made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          Tamas Papp made changes -
          Resolution Original: Fixed [ 1 ]
          Status Original: Resolved [ 5 ] New: Reopened [ 4 ]
          Richard Mortimer made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Reopened [ 4 ] New: Resolved [ 5 ]
          Robert Lachner made changes -
          Link New: This issue is related to JENKINS-15665 [ JENKINS-15665 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 146221 ] New: JNJira + In-Review [ 191825 ]

            kohsuke Kohsuke Kawaguchi
            thasaleni Phumzile Saleni
            Votes:
            4 Vote for this issue
            Watchers:
            20 Start watching this issue

              Created:
              Updated:
              Resolved: