Re: OOME when building with Ant [FIXED]

From: Chuck Hill (chil..lobal-village.net)
Date: Sun Sep 20 2009 - 13:50:53 EDT

  • Next message: Ray Kiddy (JIRA): "[OS-JIRA] Created: (WOL-1102) create a Wonder Application project, new components are not subclasses of ERXComponent"

    On Sep 20, 2009, at 10:42 AM, David Avendasora wrote:

    >
    > On Sep 20, 2009, at 12:48 PM, Chuck Hill wrote:
    >
    >> For command line runs of ant, use ant_opts:
    >>
    >> http://wiki.apache.org/ant/TheElementsOfAntStyle
    >
    >
    > That's a helpful link! Better than any of the ones I found via Google.

    I shall not mention how it found it then...

    > I was originally running into the error in Hudson, then tried the
    > command line to see if I could figure it out that way. Travis Britt
    > suggested ANT_OPTS and then that led me to the fix and I simply
    > jumped to fixing it in Hudson instead of messing with the command
    > line.
    >
    > Dave
    >
    >>
    >>
    >> Chuck
    >>
    >>
    >> On Sep 20, 2009, at 9:37 AM, David Avendasora wrote:
    >>
    >>> I added:
    >>>
    >>> -Xms1024m -Xmx1536m
    >>>
    >>> To the Java Options property for the Ant task in Hudson and it
    >>> worked. I had tried increasing Hudson's memory, but obviously it
    >>> wasn't hudson that was running out of memory.
    >>>
    >>> I knew it was an obvious thing.
    >>>
    >>> Thanks Travis!
    >>>
    >>> Dave
    >>>
    >>> On Sep 20, 2009, at 11:23 AM, David Avendasora wrote:
    >>>
    >>>> Hi all,
    >>>>
    >>>> I'm getting the following error when I try to build using Ant
    >>>> from the command line with:
    >>>>
    >>>> ant install -propertyfile Root/wolips.properties -lib Root/lib -
    >>>> debug
    >>>>
    >>>> [wocompile] The system is out of resources.
    >>>> [wocompile] Consult the following stack trace for details.
    >>>> [wocompile] java.lang.OutOfMemoryError: Java heap space
    >>>> [wocompile] at com.sun.tools.javac.code.Scope
    >>>> $ImportScope.makeEntry(Scope.java:385)
    >>>> [wocompile] at com.sun.tools.javac.code.Scope.enter(Scope.java:
    >>>> 196)
    >>>> [wocompile] at com.sun.tools.javac.code.Scope.enter(Scope.java:
    >>>> 183)
    >>>> [wocompile] at
    >>>> com.sun.tools.javac.comp.MemberEnter.importAll(MemberEnter.java:
    >>>> 132)
    >>>> [wocompile] at
    >>>> com
    >>>> .sun.tools.javac.comp.MemberEnter.visitTopLevel(MemberEnter.java:
    >>>> 509)
    >>>> [wocompile] at com.sun.tools.javac.tree.JCTree
    >>>> $JCCompilationUnit.accept(JCTree.java:446)
    >>>> [wocompile] at
    >>>> com.sun.tools.javac.comp.MemberEnter.memberEnter(MemberEnter.java:
    >>>> 387)
    >>>> [wocompile] at
    >>>> com.sun.tools.javac.comp.MemberEnter.complete(MemberEnter.java:819)
    >>>> [wocompile] at
    >>>> com.sun.tools.javac.code.Symbol.complete(Symbol.java:386)
    >>>> [wocompile] at com.sun.tools.javac.code.Symbol
    >>>> $ClassSymbol.complete(Symbol.java:758)
    >>>> [wocompile] at com.sun.tools.javac.code.Symbol
    >>>> $ClassSymbol.flags(Symbol.java:690)
    >>>> [wocompile] at
    >>>> com.sun.tools.javac.comp.Resolve.isAccessible(Resolve.java:124)
    >>>> [wocompile] at
    >>>> com.sun.tools.javac.comp.Resolve.loadClass(Resolve.java:843)
    >>>> [wocompile] at
    >>>> com.sun.tools.javac.comp.Resolve.findGlobalType(Resolve.java:901)
    >>>> [wocompile] at
    >>>> com.sun.tools.javac.comp.Resolve.findType(Resolve.java:957)
    >>>> [wocompile] at
    >>>> com.sun.tools.javac.comp.Resolve.findIdent(Resolve.java:986)
    >>>> [wocompile] at
    >>>> com.sun.tools.javac.comp.Resolve.resolveIdent(Resolve.java:1162)
    >>>> [wocompile] at
    >>>> com.sun.tools.javac.comp.Attr.visitIdent(Attr.java:1714)
    >>>> [wocompile] at com.sun.tools.javac.tree.JCTree
    >>>> $JCIdent.accept(JCTree.java:1547)
    >>>> [wocompile] at
    >>>> com.sun.tools.javac.comp.Attr.attribTree(Attr.java:360)
    >>>> [wocompile] at
    >>>> com.sun.tools.javac.comp.Attr.attribType(Attr.java:390)
    >>>> [wocompile] at
    >>>> com.sun.tools.javac.comp.Attr.attribBase(Attr.java:471)
    >>>> [wocompile] at
    >>>> com.sun.tools.javac.comp.MemberEnter.complete(MemberEnter.java:833)
    >>>> [wocompile] at
    >>>> com.sun.tools.javac.code.Symbol.complete(Symbol.java:386)
    >>>> [wocompile] at com.sun.tools.javac.code.Symbol
    >>>> $ClassSymbol.complete(Symbol.java:758)
    >>>> [wocompile] at com.sun.tools.javac.code.Symbol
    >>>> $ClassSymbol.flags(Symbol.java:690)
    >>>> [wocompile] at
    >>>> com.sun.tools.javac.comp.Resolve.isAccessible(Resolve.java:124)
    >>>> [wocompile] at
    >>>> com.sun.tools.javac.comp.Resolve.loadClass(Resolve.java:843)
    >>>> [wocompile] at
    >>>> com.sun.tools.javac.comp.Resolve.findIdentInPackage(Resolve.java:
    >>>> 1011)
    >>>> [wocompile] at com.sun.tools.javac.comp.Attr.selectSym(Attr.java:
    >>>> 1921)
    >>>> [wocompile] at
    >>>> com.sun.tools.javac.comp.Attr.visitSelect(Attr.java:1835)
    >>>> [wocompile] at com.sun.tools.javac.tree.JCTree
    >>>> $JCFieldAccess.accept(JCTree.java:1522)
    >>>>
    >>>> I get the same thing from Hudson as well. Any ideas? It has to be
    >>>> something obvious that I'm just missing...
    >>>>
    >>>> Thanks,
    >>>>
    >>>> Dave
    >>>>
    >>>>
    >>>
    >>
    >> --
    >> Chuck Hill Senior Consultant / VP Development
    >>
    >> Practical WebObjects - for developers who want to increase their
    >> overall knowledge of WebObjects or who are trying to solve specific
    >> problems.
    >> http://www.global-village.net/products/practical_webobjects
    >>
    >>
    >>
    >>
    >>
    >>
    >>
    >>
    >>
    >

    -- 
    Chuck Hill             Senior Consultant / VP Development
    

    Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/practical_webobjects



    This archive was generated by hypermail 2.0.0 : Sun Sep 20 2009 - 13:51:40 EDT