Nullpointer when running maven cobertura / changing project config

XMLWordPrintable

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

      I'm building a multimodule project with cobertura defined in the parent pom. The
      build succeeds when I run it on the console but I'm getting this when hudson
      runs the job:

      [INFO] Cobertura Report generation was successful.
      [HUDSON] Recording coverage results
      [HUDSON] Archiving ...
      [HUDSON] Archiving ...
      [HUDSON] Archiving ... [multimodule project]
      [HUDSON] Archiving ...
      [INFO] ------------------------------------------------------------------------
      [ERROR] FATAL ERROR
      [INFO] ------------------------------------------------------------------------
      [INFO] null
      [INFO] ------------------------------------------------------------------------
      [INFO] Trace
      java.lang.NullPointerException
      at
      hudson.plugins.cobertura.CoberturaProjectAction.<init>(CoberturaProjectAction.java:27)
      at
      hudson.plugins.cobertura.MavenCoberturaPublisher.getProjectAction(MavenCoberturaPublisher.java:198)
      at hudson.maven.MavenModule.addTransientActionsFromBuild(MavenModule.java:373)
      at hudson.maven.MavenModule.addTransientActionsFromBuild(MavenModule.java:45)

      the same thing happens when trying to change the project configuration:

      Status Code: 500
      Exception:
      Stacktrace:

      java.lang.NullPointerException
      at hudson.plugins.cobertura.CoberturaProjectAction.(CoberturaProjectAction.java:27)
      at
      hudson.plugins.cobertura.MavenCoberturaPublisher.getProjectAction(MavenCoberturaPublisher.java:198)
      at hudson.maven.MavenModule.addTransientActionsFromBuild(MavenModule.java:373)
      at hudson.maven.MavenModule.addTransientActionsFromBuild(MavenModule.java:45)

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

              Created:
              Updated:
              Resolved: