jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Maven 1
  • MAVEN-1830

java.lang.StackOverflowError on <ant:property environment="env"/>

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Won't Fix
  • Affects Version/s: 1.1-beta-3
  • Fix Version/s: None
  • Component/s: core
  • Labels:
    None
  • Environment:
    fedora core 6

Description

\/ __ Apache_ ___
  \/ / ` \ V / -) ' \ ~ intelligent projects ~
_   _,_ _/___ _ _ v. 1.1-RC1-SNAPSHOT

DEPRECATED: the default goal should be specified in the <build> section of project.xml instead of maven.xml

BUILD FAILED

Errors stack :
>> File...... file:/home/martin/projects/workspace/BridgeClubWeb/maven.xml
>> Element... ant:property
>> Line...... 8
>> Column.... 38
>> java.lang.StackOverflowError

Exception stack traces :
org.apache.commons.jelly.JellyTagException: file:/home/martin/projects/workspace/BridgeClubWeb/maven.xml:8:38: <ant:property> java.lang.StackOverflowError
at org.apache.commons.jelly.impl.TagScript.handleException(TagScript.java:700)
at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:270)

Rest in an attachment.

This is a andromda 3.2 app. You can reporduce by generating an app with andromda 3.2 and running maven with 1.1.

http://andromda.org/

  • Options
    • Sort By Name
    • Sort By Date
    • Ascending
    • Descending
    • Download All

Attachments

  1. GZip Archive
    BridgeClubWeb.tar.gz
    30/Jan/07 1:34 PM
    12 kB
    Martin West
  2. Text File
    env.log
    30/Jan/07 1:50 PM
    2 kB
    Martin West
  3. XML File
    maven.xml
    29/Jan/07 4:26 PM
    9 kB
    Martin West
  4. Text File
    stackoverflow.log
    29/Jan/07 4:26 PM
    188 kB
    Martin West

Issue Links

duplicates

Sub-task - The sub-task of the issue MAVEN-1745 Some properties cause infinite recursion leading to a StackOverflowError

  • Major - Major loss of function.
  • Closed - The issue is considered finished, the resolution is correct. Issues which are not closed can be reopened.

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Lukas Theussl added a comment - 30/Jan/07 9:15 AM

Found this old thread on the same subject:

http://mail-archives.apache.org/mod_mbox/maven-users/200310.mbox/%3c3F905AA9.9070909@bonevich.com%3e

Can you confirm that you don't have some properties defined recursively somewhere (possibly completely unrelated)?

Show
Lukas Theussl added a comment - 30/Jan/07 9:15 AM Found this old thread on the same subject: http://mail-archives.apache.org/mod_mbox/maven-users/200310.mbox/%3c3F905AA9.9070909@bonevich.com%3e Can you confirm that you don't have some properties defined recursively somewhere (possibly completely unrelated)?
Hide
Permalink
Martin West added a comment - 30/Jan/07 12:48 PM

I had seen that and similar appends. I dont think so but Ill check again. It fails on the <ant:property environment="env"/> which seem to indicate this is a different problem.

Show
Martin West added a comment - 30/Jan/07 12:48 PM I had seen that and similar appends. I dont think so but Ill check again. It fails on the <ant:property environment="env"/> which seem to indicate this is a different problem.
Hide
Permalink
Martin West added a comment - 30/Jan/07 12:57 PM

PS - I also comented out the offending statement and then the build progressed further.

Show
Martin West added a comment - 30/Jan/07 12:57 PM PS - I also comented out the offending statement and then the build progressed further.
Hide
Permalink
Lukas Theussl added a comment - 30/Jan/07 1:04 PM

Could you attach a small self-contained project to reproduce the problem? It's not clear from your log what you are trying to do, eg what goal are you trying to run?

Show
Lukas Theussl added a comment - 30/Jan/07 1:04 PM Could you attach a small self-contained project to reproduce the problem? It's not clear from your log what you are trying to do, eg what goal are you trying to run?
Hide
Permalink
Martin West added a comment - 30/Jan/07 1:34 PM

Empty project which reproduces the problem, doesnt matter which goal - just type maven in the root directory

Show
Martin West added a comment - 30/Jan/07 1:34 PM Empty project which reproduces the problem, doesnt matter which goal - just type maven in the root directory
Hide
Permalink
Martin West added a comment - 30/Jan/07 1:50 PM

Just it case it helps, this is the output of env. Can see anything that might cause a problem.

Show
Martin West added a comment - 30/Jan/07 1:50 PM Just it case it helps, this is the output of env. Can see anything that might cause a problem.
Hide
Permalink
Lukas Theussl added a comment - 30/Jan/07 2:51 PM

Rename dataSource.name to dataSourceName in project.properties. Don't ask me why...

Show
Lukas Theussl added a comment - 30/Jan/07 2:51 PM Rename dataSource.name to dataSourceName in project.properties. Don't ask me why...
Hide
Permalink
Martin West added a comment - 30/Jan/07 3:50 PM

wow, you get the todays Golden Fixer award.

Thanks

Show
Martin West added a comment - 30/Jan/07 3:50 PM wow, you get the todays Golden Fixer award. Thanks
Hide
Permalink
Lukas Theussl added a comment - 31/Jan/07 2:57 AM

For the record I should note the offending statements:

dataSource.name=DefaultDS
dataSource=java:/${dataSource.name}

Even though there is no obvious recursion, renaming dataSource.name as indicated above solves the problem. Go figure...

Show
Lukas Theussl added a comment - 31/Jan/07 2:57 AM For the record I should note the offending statements:
dataSource.name=DefaultDS
dataSource=java:/${dataSource.name}
Even though there is no obvious recursion, renaming dataSource.name as indicated above solves the problem. Go figure...
Hide
Permalink
Martin West added a comment - 31/Jan/07 12:20 PM

Just a suspicion but I suspect dataSource becomes an object and the code tries to call/get the name attribute of dataSource.

Show
Martin West added a comment - 31/Jan/07 12:20 PM Just a suspicion but I suspect dataSource becomes an object and the code tries to call/get the name attribute of dataSource.
Hide
Permalink
Lukas Theussl added a comment - 01/Feb/07 9:54 AM

Better explanation:
http://mail-archives.apache.org/mod_mbox/maven-users/200506.mbox/%3CPine.LNX.4.58.0506222227570.20267@fire.homenet.neonics.com%3E

Show
Lukas Theussl added a comment - 01/Feb/07 9:54 AM Better explanation: http://mail-archives.apache.org/mod_mbox/maven-users/200506.mbox/%3CPine.LNX.4.58.0506222227570.20267@fire.homenet.neonics.com%3E

People

  • Assignee:
    Unassigned
    Reporter:
    Martin West
Vote (0)
Watch (0)

Dates

  • Created:
    29/Jan/07 4:26 PM
    Updated:
    01/Feb/07 9:54 AM
    Resolved:
    31/Jan/07 2:57 AM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.