[ 
http://jira.codehaus.org/browse/MOJO-749?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_93328
 ] 

Jörg Hohwiller commented on MOJO-749:
-------------------------------------

I am sorry, but I can not. The project is an enterprise application for my 
customer.
I will try if the problem still occurres when I switch to tree layout. The rest 
is pretty convenient but there is also one module that is a webapp with 
packaging 'war'.
What I figured out is that somehow maven site:stage is not called on the 
modules first but starts on the toplevel project. Maybe when it does 
DashBoardUtils.getCoberturaDataFile the coberatura.ser is empty and therefore 
the version is null.

> NPE if dashboard called on parent project
> -----------------------------------------
>
>                 Key: MOJO-749
>                 URL: http://jira.codehaus.org/browse/MOJO-749
>             Project: Mojo
>          Issue Type: Bug
>          Components: dashboard
>            Reporter: Jörg Hohwiller
>            Assignee: David Vicente
>
> On a project where I tried dashboard 1.0-SNAPSHOT today I continously got an 
> NPE.
> The problem only showed up, when dashboard (via site or site:stage) was 
> called on the parent project.
> It worked well on the individual modules. I do not know if that matters but 
> the project-layout was NOT a tree
> but flat. From the stracktrace, I can see that 
> DefaultArtifactVersion.parseVersion was called with a "version" argument of 
> null:
> java.lang.NullPointerException
> at 
> org.apache.maven.artifact.versioning.DefaultArtifactVersion.parseVersion(DefaultArtifactVersion.java:148)
> at 
> org.apache.maven.artifact.versioning.DefaultArtifactVersion.<init>(DefaultArtifactVersion.java:42)
> at 
> org.codehaus.mojo.dashboard.report.plugin.DashBoardUtils.getCoberturaDataFile(DashBoardUtils.java:841)
> at 
> org.codehaus.mojo.dashboard.report.plugin.DashBoardUtils.getCoberturaReport(DashBoardUtils.java:342)
> at 
> org.codehaus.mojo.dashboard.report.plugin.DashBoardUtils.getDashBoardReportBean(DashBoardUtils.java:273)
> at 
> org.codehaus.mojo.dashboard.report.plugin.DashBoardUtils.getDashBoardReportBean(DashBoardUtils.java:235)
> at 
> org.codehaus.mojo.dashboard.report.plugin.DashBoardReportMojo.executeReport(DashBoardReportMojo.java:143)
> at 
> org.apache.maven.reporting.AbstractMavenReport.generate(AbstractMavenReport.java:98)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira



---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to