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

NPE when computing build results in NumBuildsStatsBuilder

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • project-stats-plugin
    • None
    • Debian, latest OpenJDK-JRE, latest Jenkins

      My graphs are being affected by this as well - they show everything as 'fixed' when a build fails; these exceptions show up in my jenkins log:

      INFO: Loaded data file /var/lib/jenkins/jobs/anonymous.repo/builds/2011-05-05_15-19-23/analysis.xml for build 14
      May 5, 2011 6:22:18 PM hudson.ExpressionFactory2$JexlExpression evaluate
      WARNING: Caught exception evaluating: it.getStats(job). Reason: java.lang.NullPointerException
      java.lang.NullPointerException
      at hudson.plugins.projectstats.NumBuildsStatsBuilder.<init>(NumBuildsStatsBuilder.java:25)

      ....

      May 5, 2011 6:22:18 PM hudson.ExpressionFactory2$JexlExpression evaluate
      WARNING: Caught exception evaluating: it.getStats(job). Reason: java.lang.NullPointerException
      java.lang.NullPointerException
      at hudson.plugins.projectstats.NumBuildsStatsBuilder.<init>(NumBuildsStatsBuilder.java:25)

      ....

      Attached is a full dump

          [JENKINS-9608] NPE when computing build results in NumBuildsStatsBuilder

          Ulli Hafner added a comment -

          BTW: Did you enable that the analysis should run for failed builds?

          Ulli Hafner added a comment - BTW: Did you enable that the analysis should run for failed builds?

          Justin Rovang added a comment -

          hudson.plugins.projectstats.NumBuildsStatsBuilder - my guess is the dashboad portlet? The exception shows up between what appears to be iterations through the builds for analysis; perhaps this ticket should go there instead.

          I've looked explicitly for what you're mentioning - I must be too tired this week because I can't find such an option :o

          Justin Rovang added a comment - hudson.plugins.projectstats.NumBuildsStatsBuilder - my guess is the dashboad portlet? The exception shows up between what appears to be iterations through the builds for analysis; perhaps this ticket should go there instead. I've looked explicitly for what you're mentioning - I must be too tired this week because I can't find such an option :o

          Marco Ambu added a comment -

          Hi, what version of the project-stats-plugin are you using?

          Marco Ambu added a comment - Hi, what version of the project-stats-plugin are you using?

          Marco Ambu added a comment -

          Did you try again with the latest version of both dashboard-view and project-statistics plugins?

          Marco Ambu added a comment - Did you try again with the latest version of both dashboard-view and project-statistics plugins?

          Marco Ambu added a comment -

          Closing as not enough info has been provided. Reopen if needed.

          Marco Ambu added a comment - Closing as not enough info has been provided. Reopen if needed.

          Kyle O'Connor added a comment - - edited

          Constantly get this error in my Jenkins log

          Sep 07, 2012 2:33:43 PM hudson.ExpressionFactory2$JexlExpression evaluate
          WARNING: Caught exception evaluating: it.getStats(job). Reason: java.lang.NullPointerException
          java.lang.NullPointerException

          Seems to occur whenever switching to 'All' view. My default view is something else than 'All', but it doesn't seem to matter from where the user is coming from to 'All' view.

          Kyle O'Connor added a comment - - edited Constantly get this error in my Jenkins log Sep 07, 2012 2:33:43 PM hudson.ExpressionFactory2$JexlExpression evaluate WARNING: Caught exception evaluating: it.getStats(job). Reason: java.lang.NullPointerException java.lang.NullPointerException Seems to occur whenever switching to 'All' view. My default view is something else than 'All', but it doesn't seem to matter from where the user is coming from to 'All' view.

          Marco Ambu added a comment -

          Is this happening with the latest version of both dashboard-view plugin and projectstats plugin?

          Marco Ambu added a comment - Is this happening with the latest version of both dashboard-view plugin and projectstats plugin?

          Kyle O'Connor added a comment -

          Yes

          Kyle O'Connor added a comment - Yes

          Kyle O'Connor added a comment -

          Problem is in latest project-stats-plugin because it does not check if the job is currently building before trying to access number of build results.

          Kyle O'Connor added a comment - Problem is in latest project-stats-plugin because it does not check if the job is currently building before trying to access number of build results.

          Kyle O'Connor added a comment -

          9608 is a dupe of 15067. 15067 should survive as it has best description.

          Kyle O'Connor added a comment - 9608 is a dupe of 15067. 15067 should survive as it has best description.

            mambu Marco Ambu
            rovangju Justin Rovang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: