You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "J?rg Hohwiller (JIRA)" <ji...@codehaus.org> on 2005/10/28 19:46:11 UTC

[jira] Created: (MNG-1355) Infinity Loop in DefaultMavenProjectBuilder.assembleLineage

Infinity Loop in DefaultMavenProjectBuilder.assembleLineage
-----------------------------------------------------------

         Key: MNG-1355
         URL: http://jira.codehaus.org/browse/MNG-1355
     Project: Maven 2
        Type: Bug
  Components: maven-project  
    Versions: 2.0    
 Environment: 3 level deep project
 Reporter: Jörg Hohwiller


In my open-source project (http://svn.projxperts.com/mmm/trunk/) I get an java.lang.StackOverflowError when I can mvn.
This seems to have something to do with the fact that the toplevel project has a subproject, that again has a subproject.
When I say subproject, I mean that it is declared as module in the parent pom.xml and its pom.xml defines the parent.
java.lang.StackOverflowError
        at java.nio.ByteBuffer.wrap(ByteBuffer.java:373)
        at java.lang.StringCoding$CharsetSE.encode(StringCoding.java:339)
        at java.lang.StringCoding.encode(StringCoding.java:378)
        at java.lang.String.getBytes(String.java:812)
        at java.io.UnixFileSystem.getBooleanAttributes0(Native Method)
        at java.io.UnixFileSystem.getBooleanAttributes(UnixFileSystem.java:228)
        at java.io.File.exists(File.java:702)
        at org.apache.maven.profiles.DefaultMavenProfilesBuilder.buildProfiles(DefaultMave
nProfilesBuilder.java:39)
        at org.apache.maven.project.DefaultMavenProjectBuilder.loadProjectExternalProfiles
(DefaultMavenProjectBuilder.java:1016)
        at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMave
nProjectBuilder.java:826)
        at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMave
nProjectBuilder.java:963)
        at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMave
nProjectBuilder.java:963)
...

-- 
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, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Commented: (MNG-1355) Infinity Loop in DefaultMavenProjectBuilder.assembleLineage

Posted by "J?rg Hohwiller (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-1355?page=comments#action_49513 ] 

Jörg Hohwiller commented on MNG-1355:
-------------------------------------

Sorry, typoo. I meant
https://svn.projxpert.com/mmm/trunk/

> Infinity Loop in DefaultMavenProjectBuilder.assembleLineage
> -----------------------------------------------------------
>
>          Key: MNG-1355
>          URL: http://jira.codehaus.org/browse/MNG-1355
>      Project: Maven 2
>         Type: Bug
>   Components: maven-project
>     Versions: 2.0
>  Environment: 3 level deep project
>     Reporter: Jörg Hohwiller

>
>
> In my open-source project (http://svn.projxperts.com/mmm/trunk/) I get an java.lang.StackOverflowError when I can mvn.
> This seems to have something to do with the fact that the toplevel project has a subproject, that again has a subproject.
> When I say subproject, I mean that it is declared as module in the parent pom.xml and its pom.xml defines the parent.
> java.lang.StackOverflowError
>         at java.nio.ByteBuffer.wrap(ByteBuffer.java:373)
>         at java.lang.StringCoding$CharsetSE.encode(StringCoding.java:339)
>         at java.lang.StringCoding.encode(StringCoding.java:378)
>         at java.lang.String.getBytes(String.java:812)
>         at java.io.UnixFileSystem.getBooleanAttributes0(Native Method)
>         at java.io.UnixFileSystem.getBooleanAttributes(UnixFileSystem.java:228)
>         at java.io.File.exists(File.java:702)
>         at org.apache.maven.profiles.DefaultMavenProfilesBuilder.buildProfiles(DefaultMave
> nProfilesBuilder.java:39)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.loadProjectExternalProfiles
> (DefaultMavenProjectBuilder.java:1016)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMave
> nProjectBuilder.java:826)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMave
> nProjectBuilder.java:963)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMave
> nProjectBuilder.java:963)
> ...

-- 
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, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Closed: (MNG-1355) Infinity Loop in DefaultMavenProjectBuilder.assembleLineage

Posted by "John Casey (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-1355?page=all ]
     
John Casey closed MNG-1355:
---------------------------

    Resolution: Fixed

Applied patch, with small logic fix: was comparing parent.getGroupId() to pom.getArtifactId(), instead of comparing groupId's in the DefaultModelValidator.

> Infinity Loop in DefaultMavenProjectBuilder.assembleLineage
> -----------------------------------------------------------
>
>          Key: MNG-1355
>          URL: http://jira.codehaus.org/browse/MNG-1355
>      Project: Maven 2
>         Type: Bug
>   Components: Inheritence and Interpolation
>     Versions: 2.0
>  Environment: 3 level deep project
>     Reporter: Jörg Hohwiller
>     Assignee: John Casey
>      Fix For: 2.0.1
>  Attachments: MNG-1355-maven-project.patch
>
>
> In my open-source project (http://svn.projxperts.com/mmm/trunk/) I get an java.lang.StackOverflowError when I can mvn.
> This seems to have something to do with the fact that the toplevel project has a subproject, that again has a subproject.
> When I say subproject, I mean that it is declared as module in the parent pom.xml and its pom.xml defines the parent.
> java.lang.StackOverflowError
>         at java.nio.ByteBuffer.wrap(ByteBuffer.java:373)
>         at java.lang.StringCoding$CharsetSE.encode(StringCoding.java:339)
>         at java.lang.StringCoding.encode(StringCoding.java:378)
>         at java.lang.String.getBytes(String.java:812)
>         at java.io.UnixFileSystem.getBooleanAttributes0(Native Method)
>         at java.io.UnixFileSystem.getBooleanAttributes(UnixFileSystem.java:228)
>         at java.io.File.exists(File.java:702)
>         at org.apache.maven.profiles.DefaultMavenProfilesBuilder.buildProfiles(DefaultMave
> nProfilesBuilder.java:39)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.loadProjectExternalProfiles
> (DefaultMavenProjectBuilder.java:1016)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMave
> nProjectBuilder.java:826)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMave
> nProjectBuilder.java:963)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMave
> nProjectBuilder.java:963)
> ...

-- 
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, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Commented: (MNG-1355) Infinity Loop in DefaultMavenProjectBuilder.assembleLineage

Posted by "Edwin Punzalan (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-1355?page=comments#action_50280 ] 

Edwin Punzalan commented on MNG-1355:
-------------------------------------

Hi, the cause of the infinite loop is not the depth of the project and/or the modules in it.

Look in the ui-toolkit/subproject/swing/pom.xml and you'll see that the project has the same artifactId as the parent.  That is what's causing the infinite loop.


> Infinity Loop in DefaultMavenProjectBuilder.assembleLineage
> -----------------------------------------------------------
>
>          Key: MNG-1355
>          URL: http://jira.codehaus.org/browse/MNG-1355
>      Project: Maven 2
>         Type: Bug
>   Components: maven-project
>     Versions: 2.0
>  Environment: 3 level deep project
>     Reporter: Jörg Hohwiller
>      Fix For: 2.0.1

>
>
> In my open-source project (http://svn.projxperts.com/mmm/trunk/) I get an java.lang.StackOverflowError when I can mvn.
> This seems to have something to do with the fact that the toplevel project has a subproject, that again has a subproject.
> When I say subproject, I mean that it is declared as module in the parent pom.xml and its pom.xml defines the parent.
> java.lang.StackOverflowError
>         at java.nio.ByteBuffer.wrap(ByteBuffer.java:373)
>         at java.lang.StringCoding$CharsetSE.encode(StringCoding.java:339)
>         at java.lang.StringCoding.encode(StringCoding.java:378)
>         at java.lang.String.getBytes(String.java:812)
>         at java.io.UnixFileSystem.getBooleanAttributes0(Native Method)
>         at java.io.UnixFileSystem.getBooleanAttributes(UnixFileSystem.java:228)
>         at java.io.File.exists(File.java:702)
>         at org.apache.maven.profiles.DefaultMavenProfilesBuilder.buildProfiles(DefaultMave
> nProfilesBuilder.java:39)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.loadProjectExternalProfiles
> (DefaultMavenProjectBuilder.java:1016)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMave
> nProjectBuilder.java:826)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMave
> nProjectBuilder.java:963)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMave
> nProjectBuilder.java:963)
> ...

-- 
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, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Updated: (MNG-1355) Infinity Loop in DefaultMavenProjectBuilder.assembleLineage

Posted by "Edwin Punzalan (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-1355?page=all ]

Edwin Punzalan updated MNG-1355:
--------------------------------

    Attachment:     (was: MNG-1355-maven-project.patch)

> Infinity Loop in DefaultMavenProjectBuilder.assembleLineage
> -----------------------------------------------------------
>
>          Key: MNG-1355
>          URL: http://jira.codehaus.org/browse/MNG-1355
>      Project: Maven 2
>         Type: Bug
>   Components: maven-project
>     Versions: 2.0
>  Environment: 3 level deep project
>     Reporter: Jörg Hohwiller
>     Assignee: Edwin Punzalan
>      Fix For: 2.0.1

>
>
> In my open-source project (http://svn.projxperts.com/mmm/trunk/) I get an java.lang.StackOverflowError when I can mvn.
> This seems to have something to do with the fact that the toplevel project has a subproject, that again has a subproject.
> When I say subproject, I mean that it is declared as module in the parent pom.xml and its pom.xml defines the parent.
> java.lang.StackOverflowError
>         at java.nio.ByteBuffer.wrap(ByteBuffer.java:373)
>         at java.lang.StringCoding$CharsetSE.encode(StringCoding.java:339)
>         at java.lang.StringCoding.encode(StringCoding.java:378)
>         at java.lang.String.getBytes(String.java:812)
>         at java.io.UnixFileSystem.getBooleanAttributes0(Native Method)
>         at java.io.UnixFileSystem.getBooleanAttributes(UnixFileSystem.java:228)
>         at java.io.File.exists(File.java:702)
>         at org.apache.maven.profiles.DefaultMavenProfilesBuilder.buildProfiles(DefaultMave
> nProfilesBuilder.java:39)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.loadProjectExternalProfiles
> (DefaultMavenProjectBuilder.java:1016)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMave
> nProjectBuilder.java:826)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMave
> nProjectBuilder.java:963)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMave
> nProjectBuilder.java:963)
> ...

-- 
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, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Commented: (MNG-1355) Infinity Loop in DefaultMavenProjectBuilder.assembleLineage

Posted by "J?rg Hohwiller (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-1355?page=comments#action_50496 ] 

Jörg Hohwiller commented on MNG-1355:
-------------------------------------

You are so right. Thanks for that. Would be nice if maven would detect this and given a more precise error message.

> Infinity Loop in DefaultMavenProjectBuilder.assembleLineage
> -----------------------------------------------------------
>
>          Key: MNG-1355
>          URL: http://jira.codehaus.org/browse/MNG-1355
>      Project: Maven 2
>         Type: Bug
>   Components: maven-project
>     Versions: 2.0
>  Environment: 3 level deep project
>     Reporter: Jörg Hohwiller
>     Assignee: Edwin Punzalan
>      Fix For: 2.0.1
>  Attachments: MNG-1355-maven-project.patch
>
>
> In my open-source project (http://svn.projxperts.com/mmm/trunk/) I get an java.lang.StackOverflowError when I can mvn.
> This seems to have something to do with the fact that the toplevel project has a subproject, that again has a subproject.
> When I say subproject, I mean that it is declared as module in the parent pom.xml and its pom.xml defines the parent.
> java.lang.StackOverflowError
>         at java.nio.ByteBuffer.wrap(ByteBuffer.java:373)
>         at java.lang.StringCoding$CharsetSE.encode(StringCoding.java:339)
>         at java.lang.StringCoding.encode(StringCoding.java:378)
>         at java.lang.String.getBytes(String.java:812)
>         at java.io.UnixFileSystem.getBooleanAttributes0(Native Method)
>         at java.io.UnixFileSystem.getBooleanAttributes(UnixFileSystem.java:228)
>         at java.io.File.exists(File.java:702)
>         at org.apache.maven.profiles.DefaultMavenProfilesBuilder.buildProfiles(DefaultMave
> nProfilesBuilder.java:39)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.loadProjectExternalProfiles
> (DefaultMavenProjectBuilder.java:1016)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMave
> nProjectBuilder.java:826)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMave
> nProjectBuilder.java:963)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMave
> nProjectBuilder.java:963)
> ...

-- 
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, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Updated: (MNG-1355) Infinity Loop in DefaultMavenProjectBuilder.assembleLineage

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-1355?page=all ]

Brett Porter updated MNG-1355:
------------------------------

    Description: 
In my open-source project (http://svn.projxperts.com/mmm/trunk/) I get an java.lang.StackOverflowError when I can mvn.
This seems to have something to do with the fact that the toplevel project has a subproject, that again has a subproject.
When I say subproject, I mean that it is declared as module in the parent pom.xml and its pom.xml defines the parent.
java.lang.StackOverflowError
        at java.nio.ByteBuffer.wrap(ByteBuffer.java:373)
        at java.lang.StringCoding$CharsetSE.encode(StringCoding.java:339)
        at java.lang.StringCoding.encode(StringCoding.java:378)
        at java.lang.String.getBytes(String.java:812)
        at java.io.UnixFileSystem.getBooleanAttributes0(Native Method)
        at java.io.UnixFileSystem.getBooleanAttributes(UnixFileSystem.java:228)
        at java.io.File.exists(File.java:702)
        at org.apache.maven.profiles.DefaultMavenProfilesBuilder.buildProfiles(DefaultMave
nProfilesBuilder.java:39)
        at org.apache.maven.project.DefaultMavenProjectBuilder.loadProjectExternalProfiles
(DefaultMavenProjectBuilder.java:1016)
        at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMave
nProjectBuilder.java:826)
        at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMave
nProjectBuilder.java:963)
        at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMave
nProjectBuilder.java:963)
...

  was:
In my open-source project (http://svn.projxperts.com/mmm/trunk/) I get an java.lang.StackOverflowError when I can mvn.
This seems to have something to do with the fact that the toplevel project has a subproject, that again has a subproject.
When I say subproject, I mean that it is declared as module in the parent pom.xml and its pom.xml defines the parent.
java.lang.StackOverflowError
        at java.nio.ByteBuffer.wrap(ByteBuffer.java:373)
        at java.lang.StringCoding$CharsetSE.encode(StringCoding.java:339)
        at java.lang.StringCoding.encode(StringCoding.java:378)
        at java.lang.String.getBytes(String.java:812)
        at java.io.UnixFileSystem.getBooleanAttributes0(Native Method)
        at java.io.UnixFileSystem.getBooleanAttributes(UnixFileSystem.java:228)
        at java.io.File.exists(File.java:702)
        at org.apache.maven.profiles.DefaultMavenProfilesBuilder.buildProfiles(DefaultMave
nProfilesBuilder.java:39)
        at org.apache.maven.project.DefaultMavenProjectBuilder.loadProjectExternalProfiles
(DefaultMavenProjectBuilder.java:1016)
        at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMave
nProjectBuilder.java:826)
        at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMave
nProjectBuilder.java:963)
        at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMave
nProjectBuilder.java:963)
...

    Fix Version: 2.0.1

> Infinity Loop in DefaultMavenProjectBuilder.assembleLineage
> -----------------------------------------------------------
>
>          Key: MNG-1355
>          URL: http://jira.codehaus.org/browse/MNG-1355
>      Project: Maven 2
>         Type: Bug
>   Components: maven-project
>     Versions: 2.0
>  Environment: 3 level deep project
>     Reporter: Jörg Hohwiller
>      Fix For: 2.0.1

>
>
> In my open-source project (http://svn.projxperts.com/mmm/trunk/) I get an java.lang.StackOverflowError when I can mvn.
> This seems to have something to do with the fact that the toplevel project has a subproject, that again has a subproject.
> When I say subproject, I mean that it is declared as module in the parent pom.xml and its pom.xml defines the parent.
> java.lang.StackOverflowError
>         at java.nio.ByteBuffer.wrap(ByteBuffer.java:373)
>         at java.lang.StringCoding$CharsetSE.encode(StringCoding.java:339)
>         at java.lang.StringCoding.encode(StringCoding.java:378)
>         at java.lang.String.getBytes(String.java:812)
>         at java.io.UnixFileSystem.getBooleanAttributes0(Native Method)
>         at java.io.UnixFileSystem.getBooleanAttributes(UnixFileSystem.java:228)
>         at java.io.File.exists(File.java:702)
>         at org.apache.maven.profiles.DefaultMavenProfilesBuilder.buildProfiles(DefaultMave
> nProfilesBuilder.java:39)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.loadProjectExternalProfiles
> (DefaultMavenProjectBuilder.java:1016)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMave
> nProjectBuilder.java:826)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMave
> nProjectBuilder.java:963)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMave
> nProjectBuilder.java:963)
> ...

-- 
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, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Commented: (MNG-1355) Infinity Loop in DefaultMavenProjectBuilder.assembleLineage

Posted by "Edwin Punzalan (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-1355?page=comments#action_50500 ] 

Edwin Punzalan commented on MNG-1355:
-------------------------------------

The attached path would do that.

> Infinity Loop in DefaultMavenProjectBuilder.assembleLineage
> -----------------------------------------------------------
>
>          Key: MNG-1355
>          URL: http://jira.codehaus.org/browse/MNG-1355
>      Project: Maven 2
>         Type: Bug
>   Components: maven-project
>     Versions: 2.0
>  Environment: 3 level deep project
>     Reporter: Jörg Hohwiller
>     Assignee: Edwin Punzalan
>      Fix For: 2.0.1
>  Attachments: MNG-1355-maven-project.patch
>
>
> In my open-source project (http://svn.projxperts.com/mmm/trunk/) I get an java.lang.StackOverflowError when I can mvn.
> This seems to have something to do with the fact that the toplevel project has a subproject, that again has a subproject.
> When I say subproject, I mean that it is declared as module in the parent pom.xml and its pom.xml defines the parent.
> java.lang.StackOverflowError
>         at java.nio.ByteBuffer.wrap(ByteBuffer.java:373)
>         at java.lang.StringCoding$CharsetSE.encode(StringCoding.java:339)
>         at java.lang.StringCoding.encode(StringCoding.java:378)
>         at java.lang.String.getBytes(String.java:812)
>         at java.io.UnixFileSystem.getBooleanAttributes0(Native Method)
>         at java.io.UnixFileSystem.getBooleanAttributes(UnixFileSystem.java:228)
>         at java.io.File.exists(File.java:702)
>         at org.apache.maven.profiles.DefaultMavenProfilesBuilder.buildProfiles(DefaultMave
> nProfilesBuilder.java:39)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.loadProjectExternalProfiles
> (DefaultMavenProjectBuilder.java:1016)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMave
> nProjectBuilder.java:826)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMave
> nProjectBuilder.java:963)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMave
> nProjectBuilder.java:963)
> ...

-- 
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, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Updated: (MNG-1355) Infinity Loop in DefaultMavenProjectBuilder.assembleLineage

Posted by "Edwin Punzalan (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-1355?page=all ]

Edwin Punzalan updated MNG-1355:
--------------------------------

    Attachment: MNG-1355-maven-project.patch

> Infinity Loop in DefaultMavenProjectBuilder.assembleLineage
> -----------------------------------------------------------
>
>          Key: MNG-1355
>          URL: http://jira.codehaus.org/browse/MNG-1355
>      Project: Maven 2
>         Type: Bug
>   Components: maven-project
>     Versions: 2.0
>  Environment: 3 level deep project
>     Reporter: Jörg Hohwiller
>     Assignee: Edwin Punzalan
>      Fix For: 2.0.1
>  Attachments: MNG-1355-maven-project.patch
>
>
> In my open-source project (http://svn.projxperts.com/mmm/trunk/) I get an java.lang.StackOverflowError when I can mvn.
> This seems to have something to do with the fact that the toplevel project has a subproject, that again has a subproject.
> When I say subproject, I mean that it is declared as module in the parent pom.xml and its pom.xml defines the parent.
> java.lang.StackOverflowError
>         at java.nio.ByteBuffer.wrap(ByteBuffer.java:373)
>         at java.lang.StringCoding$CharsetSE.encode(StringCoding.java:339)
>         at java.lang.StringCoding.encode(StringCoding.java:378)
>         at java.lang.String.getBytes(String.java:812)
>         at java.io.UnixFileSystem.getBooleanAttributes0(Native Method)
>         at java.io.UnixFileSystem.getBooleanAttributes(UnixFileSystem.java:228)
>         at java.io.File.exists(File.java:702)
>         at org.apache.maven.profiles.DefaultMavenProfilesBuilder.buildProfiles(DefaultMave
> nProfilesBuilder.java:39)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.loadProjectExternalProfiles
> (DefaultMavenProjectBuilder.java:1016)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMave
> nProjectBuilder.java:826)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMave
> nProjectBuilder.java:963)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMave
> nProjectBuilder.java:963)
> ...

-- 
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, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Updated: (MNG-1355) Infinity Loop in DefaultMavenProjectBuilder.assembleLineage

Posted by "Edwin Punzalan (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-1355?page=all ]

Edwin Punzalan updated MNG-1355:
--------------------------------

    Attachment: MNG-1355-maven-project.patch

I'm attaching a fix to prevent the infinite loop and also improve the validation of the project descriptor.

> Infinity Loop in DefaultMavenProjectBuilder.assembleLineage
> -----------------------------------------------------------
>
>          Key: MNG-1355
>          URL: http://jira.codehaus.org/browse/MNG-1355
>      Project: Maven 2
>         Type: Bug
>   Components: maven-project
>     Versions: 2.0
>  Environment: 3 level deep project
>     Reporter: Jörg Hohwiller
>     Assignee: Edwin Punzalan
>      Fix For: 2.0.1
>  Attachments: MNG-1355-maven-project.patch
>
>
> In my open-source project (http://svn.projxperts.com/mmm/trunk/) I get an java.lang.StackOverflowError when I can mvn.
> This seems to have something to do with the fact that the toplevel project has a subproject, that again has a subproject.
> When I say subproject, I mean that it is declared as module in the parent pom.xml and its pom.xml defines the parent.
> java.lang.StackOverflowError
>         at java.nio.ByteBuffer.wrap(ByteBuffer.java:373)
>         at java.lang.StringCoding$CharsetSE.encode(StringCoding.java:339)
>         at java.lang.StringCoding.encode(StringCoding.java:378)
>         at java.lang.String.getBytes(String.java:812)
>         at java.io.UnixFileSystem.getBooleanAttributes0(Native Method)
>         at java.io.UnixFileSystem.getBooleanAttributes(UnixFileSystem.java:228)
>         at java.io.File.exists(File.java:702)
>         at org.apache.maven.profiles.DefaultMavenProfilesBuilder.buildProfiles(DefaultMave
> nProfilesBuilder.java:39)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.loadProjectExternalProfiles
> (DefaultMavenProjectBuilder.java:1016)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMave
> nProjectBuilder.java:826)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMave
> nProjectBuilder.java:963)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMave
> nProjectBuilder.java:963)
> ...

-- 
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, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org