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

Hudson 1.319 + Violations 0.7.4 = NullPointerException in ViolationsMavenReporter

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • core
    • None
    • Platform: All, OS: Linux

      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

            kohsuke Kohsuke Kawaguchi
            mdsteele mdsteele
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: