NPE after using cobertura plugin

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: Critical
    • Component/s: cobertura-plugin
    • None
    • Environment:
      Platform: All, OS: All

      Hudson : 1.277
      Cobertura Hudson plugin : 0.8.5
      Cobertura Maven 2 plugin : 2.2

      First I tried to get Cobertura reports with :

      • these m2 goals : clean test site
      • pom.xml : cobertura plugin config in reporting section

      It was not working, so I tried another config :

      • m2 goals : clean package site
      • pom.xml : cobertura plugin config to be launched on package phase

      And then I've got a NullPointerException.

      Now in my Hudson job configuration, I want try to disable Cobertura publisher,
      so I uncheck the corresponding checkbox but when I click on the Save button... I
      get an HTTP 500 error page with a NullPointerException. I think it is the same
      exception as the one occured during the build :
      java.lang.NullPointerException
      hudson.plugins.cobertura.CoberturaProjectAction.<init>
      CoberturaProjectAction.java:27)
      hudson.plugins.cobertura.MavenCoberturaPublisher.getProjectAction(MavenCoberturaPublisher.java:198)
      hudson.maven.MavenModule.addTransientActionsFromBuild(MavenModule.java:373)
      hudson.maven.MavenModule.addTransientActionsFromBuild(MavenModule.java:45)
      hudson.maven.AbstractMavenProject.updateTransientActions(AbstractMavenProject.java:33)
      hudson.maven.MavenModuleSet.updateTransientActions(MavenModuleSet.java:156)
      hudson.model.AbstractProject.submit(AbstractProject.java:1022)
      hudson.maven.MavenModuleSet.submit(MavenModuleSet.java:541)
      hudson.model.Job.doConfigSubmit(Job.java:860)
      hudson.model.AbstractProject.doConfigSubmit(AbstractProject.java:335)

      After a Tomcat restart, my job is not here anymore (I see the NPE in Hudson
      log). I'll try to restore my job by manually editing some config files...

            Assignee:
            Stephen Connolly
            Reporter:
            zaccret
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: