Hudson 1.319 + Violations 0.7.4 = NullPointerException in ViolationsMavenReporter

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      Hi guys,

      I'm running 0.7.4 of the Violations plugin. After upgrading to 1.319 of Hudson,
      my builds began to fail with the following message:

      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD SUCCESSFUL
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 4 minutes 13 seconds
      [INFO] Finished at: Mon Aug 10 09:21:22 CDT 2009
      [INFO] Final Memory: 99M/587M
      [INFO] ------------------------------------------------------------------------
      [locks-and-latches] Releasing all the locks
      [locks-and-latches] All the locks released
      ERROR: Processing failed due to a bug in the code. Please report this to
      users@hudson.dev.java.net
      java.lang.NullPointerException
      at
      hudson.plugins.violations.hudson.maven.ViolationsMavenReporter.end(ViolationsMavenReporter.java:98)
      at hudson.maven.MavenModuleSetBuild$Builder.end(MavenModuleSetBuild.java:674)
      at
      hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun(MavenModuleSetBuild.java:484)
      at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:345)
      at hudson.model.Run.run(Run.java:1090)
      at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:301)
      at hudson.model.ResourceController.execute(ResourceController.java:93)
      at hudson.model.Executor.run(Executor.java:122)
      project=hudson.maven.MavenModuleSet@77ec3adc[project]
      project.getModules()=[hudson.maven.MavenModule@427b2d29[project/com.uprr.project:project]]
      project.getRootModule()=hudson.maven.MavenModule@427b2d29[project/com.uprr.project:project]
      FATAL: null
      java.lang.NullPointerException
      at
      hudson.plugins.violations.hudson.maven.ViolationsMavenReporter.end(ViolationsMavenReporter.java:98)
      at hudson.maven.MavenModuleSetBuild$Builder.end(MavenModuleSetBuild.java:674)
      at
      hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun(MavenModuleSetBuild.java:484)
      at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:345)
      at hudson.model.Run.run(Run.java:1090)
      at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:301)
      at hudson.model.ResourceController.execute(ResourceController.java:93)
      at hudson.model.Executor.run(Executor.java:122)

      The builds are successful when I revert Hudson to version 1.318.

      Looking at the location of the NPE, it looks like that class hasn't been changed
      for months:
      http://fisheye4.atlassian.com/browse/hudson/trunk/hudson/plugins/violations/src/main/java/hudson/plugins/violations/hudson/maven/ViolationsMavenReporter.java?r=10807#l98

            Assignee:
            Kohsuke Kawaguchi
            Reporter:
            mdsteele
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: