maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Benjamin Bentmann (JIRA)" <j...@codehaus.org>
Subject [jira] Updated: (MNG-4454) Incomplete <parent> element causes NPE
Date Wed, 18 Nov 2009 12:00:55 GMT

     [ http://jira.codehaus.org/browse/MNG-4454?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Benjamin Bentmann updated MNG-4454:
-----------------------------------

    Description: 
A POM with
{code:xml}
<parent>
</parent>
{code}
will produce a NPE instead of the proper validation messages about missing parent info.

{noformat}
Caused by: java.lang.NullPointerException
        at org.apache.maven.model.validation.DefaultModelValidator.validateRawModel(DefaultModelValidator.java:69)
        at org.apache.maven.model.building.DefaultModelBuilder.readModel(DefaultModelBuilder.java:345)
        at org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:132)
        at org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:116)
        at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:323)
        at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:277)
        at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:397)
        at org.apache.maven.DefaultMaven.getProjectsForMavenReactor(DefaultMaven.java:346)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:169)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:102)
{noformat}

  was:
A POM with
{code:xml}
<parent>
</parent>
{code}
will produce a NPE instead of the proper validation messages about missing parent info.


> Incomplete <parent> element causes NPE
> --------------------------------------
>
>                 Key: MNG-4454
>                 URL: http://jira.codehaus.org/browse/MNG-4454
>             Project: Maven 2
>          Issue Type: Bug
>          Components: POM
>    Affects Versions: 3.0-alpha-4
>            Reporter: Benjamin Bentmann
>            Priority: Minor
>
> A POM with
> {code:xml}
> <parent>
> </parent>
> {code}
> will produce a NPE instead of the proper validation messages about missing parent info.
> {noformat}
> Caused by: java.lang.NullPointerException
>         at org.apache.maven.model.validation.DefaultModelValidator.validateRawModel(DefaultModelValidator.java:69)
>         at org.apache.maven.model.building.DefaultModelBuilder.readModel(DefaultModelBuilder.java:345)
>         at org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:132)
>         at org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:116)
>         at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:323)
>         at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:277)
>         at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:397)
>         at org.apache.maven.DefaultMaven.getProjectsForMavenReactor(DefaultMaven.java:346)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:169)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:102)
> {noformat}

-- 
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

        

Mime
View raw message