[Issue 2823] New - Nullpointer when running maven cobertura / changing project config

12 messages Options
Embed this post
Permalink
francisdb

[Issue 2823] New - Nullpointer when running maven cobertura / changing project config

Reply Threaded More More options
Print post
Permalink
https://hudson.dev.java.net/issues/show_bug.cgi?id=2823
                 Issue #|2823
                 Summary|Nullpointer when running maven cobertura / changing pr
                        |oject config
               Component|hudson
                 Version|current
                Platform|All
              OS/Version|All
                     URL|
                  Status|NEW
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|DEFECT
                Priority|P3
            Subcomponent|cobertura
             Assigned to|stephenconnolly
             Reported by|francisdb






------- Additional comments from [hidden email] Sun Jan 11 16:15:10 +0000 2009 -------
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)

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

david_calavera

[Issue 2823] Nullpointer when running maven cobertura / changing project config

Reply Threaded More More options
Print post
Permalink
https://hudson.dev.java.net/issues/show_bug.cgi?id=2823



User david_calavera changed the following:

                What    |Old value                 |New value
================================================================================
                  Status|NEW                       |RESOLVED
--------------------------------------------------------------------------------
              Resolution|                          |FIXED
--------------------------------------------------------------------------------




------- Additional comments from [hidden email] Mon Jan 19 18:00:41 +0000 2009 -------
mavenized projects use MavenCoberturaPublisher instead of CoberturaPublisher so
the project action doesn't find the publisher.

I've fixed it with an "if cp != null" because MavenCoberturaPublisher doesn't
have the "getOnlyStable" method. Perhaps both classes should implement a common
interface.

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

francisdb

[Issue 2823] Nullpointer when running maven cobertura / changing project config

Reply Threaded More More options
Print post
Permalink
In reply to this post by francisdb
https://hudson.dev.java.net/issues/show_bug.cgi?id=2823






------- Additional comments from [hidden email] Mon Jan 19 20:11:53 +0000 2009 -------
are you sure this did not break the plugin as I'm not getting any coverage
results and the needed XML file is generated in the correct path (maven 2 build)

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Alan Harder-2

[Issue 2823] Nullpointer when running maven cobertura / changing project config

Reply Threaded More More options
Print post
Permalink
In reply to this post by francisdb
https://hudson.dev.java.net/issues/show_bug.cgi?id=2823






------- Additional comments from [hidden email] Wed Jan 21 17:59:27 +0000 2009 -------
*** Issue 2897 has been marked as a duplicate of this issue. ***

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Alan Harder-2

[Issue 2823] Nullpointer when running maven cobertura / changing project config

Reply Threaded More More options
Print post
Permalink
In reply to this post by francisdb
https://hudson.dev.java.net/issues/show_bug.cgi?id=2823






------- Additional comments from [hidden email] Wed Jan 21 18:00:36 +0000 2009 -------
*** Issue 2847 has been marked as a duplicate of this issue. ***

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Alan Harder-2

[Issue 2823] Nullpointer when running maven cobertura / changing project config

Reply Threaded More More options
Print post
Permalink
In reply to this post by francisdb
https://hudson.dev.java.net/issues/show_bug.cgi?id=2823






------- Additional comments from [hidden email] Wed Jan 21 18:01:49 +0000 2009 -------
*** Issue 2850 has been marked as a duplicate of this issue. ***

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

sunfire-2

[Issue 2823] Nullpointer when running maven cobertura / changing project config

Reply Threaded More More options
Print post
Permalink
In reply to this post by francisdb
https://hudson.dev.java.net/issues/show_bug.cgi?id=2823






------- Additional comments from [hidden email] Sun Jan 25 22:24:20 +0000 2009 -------
I built the latest in trunk now and at least I can build again. However, the
coverage reports only show up when I click on MODULES and the Maven module under
that - not on the project summary page.


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

jurek_piasek

[Issue 2823] Nullpointer when running maven cobertura / changing project config

Reply Threaded More More options
Print post
Permalink
In reply to this post by francisdb
https://hudson.dev.java.net/issues/show_bug.cgi?id=2823






------- Additional comments from [hidden email] Mon Feb  9 02:31:07 +0000 2009 -------
In what version of Hudson is this fix found? I am currently using Hudson 1.281
and continue to get an error when I use cobertura.
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)
        at
hudson.maven.AbstractMavenProject.updateTransientActions(AbstractMavenProject.java:33)
        at hudson.model.AbstractProject.onLoad(AbstractProject.java:172)
        at hudson.maven.MavenModule.onLoad(MavenModule.java:157)
        at hudson.model.Items.load(Items.java:78)
        at hudson.model.ItemGroupMixIn.loadChildren(ItemGroupMixIn.java:35)
        at hudson.maven.MavenModuleSet.onLoad(MavenModuleSet.java:333)
        at hudson.model.Items.load(Items.java:78)
        at hudson.model.Hudson.load(Hudson.java:1705)
        at hudson.model.Hudson.access$500(Hudson.java:165)
        at hudson.model.Hudson$8.run(Hudson.java:2301)


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

cotoneal

[Issue 2823] Nullpointer when running maven cobertura / changing project config

Reply Threaded More More options
Print post
Permalink
In reply to this post by francisdb
https://hudson.dev.java.net/issues/show_bug.cgi?id=2823






------- Additional comments from [hidden email] Mon Feb  9 12:40:27 +0000 2009 -------
Created an attachment (id=547)
cobertura 0.8.6 Snapshot hpi


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

cotoneal

[Issue 2823] Nullpointer when running maven cobertura / changing project config

Reply Threaded More More options
Print post
Permalink
In reply to this post by francisdb
https://hudson.dev.java.net/issues/show_bug.cgi?id=2823






------- Additional comments from [hidden email] Mon Feb  9 12:41:59 +0000 2009 -------
This bug fix has not been released yet. You can build yourself a SNAPSHOT
version. Or use the snapshot that have joined to this thread.

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

kutzi

[Issue 2823] Nullpointer when running maven cobertura / changing project config

Reply Threaded More More options
Print post
Permalink
In reply to this post by francisdb
https://hudson.dev.java.net/issues/show_bug.cgi?id=2823






------- Additional comments from [hidden email] Sun Feb 22 14:00:52 +0000 2009 -------
*** Issue 3029 has been marked as a duplicate of this issue. ***

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Alan Harder-2

[Issue 2823] Nullpointer when running maven cobertura / changing project config

Reply Threaded More More options
Print post
Permalink
In reply to this post by francisdb
https://hudson.dev.java.net/issues/show_bug.cgi?id=2823






------- Additional comments from [hidden email] Thu Mar 12 15:53:09 +0000 2009 -------
*** Issue 3279 has been marked as a duplicate of this issue. ***

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]