You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by "Mikael Petterson (KI/EAB)" <mi...@ericsson.com> on 2004/07/16 14:35:35 UTC
OutofMemory error
Hi,
I am trying out the following build structure ( see below) with ant 1.6.1
It seems that my compilation of dependent classes is hanging ( 2nd javac).
Then I get the following error message:
[javac] The system is out of resources.
[javac] Consult the following stack trace for details.
[javac] java.lang.OutOfMemoryError
[javac] at java.util.zip.ZipFile.open(Native Method)
[javac] at java.util.zip.ZipFile.<init>(ZipFile.java:105)
[javac] at java.util.zip.ZipFile.<init>(ZipFile.java:70)
[javac] at com.sun.tools.javac.v8.code.ClassReader.openArchive(ClassReader.java:890)
[javac] at com.sun.tools.javac.v8.code.ClassReader.list(ClassReader.java:1095)
[javac] at com.sun.tools.javac.v8.code.ClassReader.listAll(ClassReader.java:1191)
[javac] at com.sun.tools.javac.v8.code.ClassReader.fillIn(ClassReader.java:1213)
[javac] at com.sun.tools.javac.v8.code.ClassReader.complete(ClassReader.java:955)
[javac] at com.sun.tools.javac.v8.code.Symbol.complete(Symbol.java:366)
[javac] at com.sun.tools.javac.v8.code.Symbol$PackageSymbol.flags(Symbol.java:485)
[javac] at com.sun.tools.javac.v8.code.Symbol$PackageSymbol.exists(Symbol.java:496)
[javac] at com.sun.tools.javac.v8.comp.Enter$CompleteEnter.complete(Enter.java:858)
[javac] at com.sun.tools.javac.v8.code.Symbol.complete(Symbol.java:366)
[javac] at com.sun.tools.javac.v8.code.Symbol$ClassSymbol.flags(Symbol.java:578)
[javac] at com.sun.tools.javac.v8.comp.Resolve.isAccessible(Resolve.java:73)
[javac] at com.sun.tools.javac.v8.comp.Resolve.loadClass(Resolve.java:461)
[javac] at com.sun.tools.javac.v8.comp.Resolve.findGlobalType(Resolve.java:528)
[javac] at com.sun.tools.javac.v8.comp.Resolve.findType(Resolve.java:574)
[javac] at com.sun.tools.javac.v8.comp.Resolve.findIdent(Resolve.java:610)
[javac] at com.sun.tools.javac.v8.comp.Resolve.resolveIdent(Resolve.java:771)
[javac] at com.sun.tools.javac.v8.comp.Attr._case(Attr.java:1058)
[javac] at com.sun.tools.javac.v8.tree.Tree$Ident.visit(Tree.java:983)
[javac] at com.sun.tools.javac.v8.comp.Attr.attribTree(Attr.java:234)
[javac] at com.sun.tools.javac.v8.comp.Attr.attribType(Attr.java:269)
[javac] at com.sun.tools.javac.v8.comp.Enter$MemberEnter._case(Enter.java:730)
[javac] at com.sun.tools.javac.v8.tree.Tree$VarDef.visit(Tree.java:470)
[javac] at com.sun.tools.javac.v8.comp.Enter$MemberEnter.memberEnter(Enter.java:642)
[javac] at com.sun.tools.javac.v8.comp.Enter$MemberEnter.memberEnter(Enter.java:658)
[javac] at com.sun.tools.javac.v8.comp.Enter$CompleteEnter.finish(Enter.java:879)
[javac] at com.sun.tools.javac.v8.comp.Enter$CompleteEnter.complete(Enter.java:865)
[javac] at com.sun.tools.javac.v8.code.Symbol.complete(Symbol.java:366)
[javac] at com.sun.tools.javac.v8.comp.Enter.main(Enter.java:544)
[javac] at com.sun.tools.javac.v8.JavaCompiler.compile(JavaCompiler.java:357)
[javac] at com.sun.tools.javac.v8.Main.compile(Main.java:247)
[javac] at com.sun.tools.javac.Main.compile(Main.java:26)
[javac] at java.lang.reflect.Method.invoke(Native Method)
[javac] at org.apache.tools.ant.taskdefs.compilers.Javac13.execute(Javac13.java:61)
[javac] at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:942)
[javac] at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:764)
[javac] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)
[javac] at org.apache.tools.ant.Task.perform(Task.java:364)
[javac] at org.apache.tools.ant.Target.execute(Target.java:301)
[javac] at org.apache.tools.ant.Target.performTasks(Target.java:328)
[javac] at org.apache.tools.ant.Project.executeTarget(Project.java:1215)
[javac] at org.apache.tools.ant.Project.executeTargets(Project.java:1063)
[javac] at org.apache.tools.ant.Main.runBuild(Main.java:632)
[javac] at org.apache.tools.ant.Main.startAnt(Main.java:183)
[javac] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:197)
[javac] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:56)
BUILD FAILED
/vobs/rbs/sw/rbssw1/boam_subsys/auemao_swb/aue_swu/build/boamaue.xml:56: Compile failed; see the compiler error output for details.
at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:944)
at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:764)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:301)
at org.apache.tools.ant.Target.performTasks(Target.java:328)
at org.apache.tools.ant.Project.executeTarget(Project.java:1215)
at org.apache.tools.ant.Project.executeTargets(Project.java:1063)
at org.apache.tools.ant.Main.runBuild(Main.java:632)
at org.apache.tools.ant.Main.startAnt(Main.java:183)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:197)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:56)
Total time: 7 minutes 14 seconds
ws3196{eraonel_espresso2.2}[espresso/rbssw/1.1]
Any hints?
I have tried to increase heapsize without any luck.
BR
//Mikael
<project basedir="." default="all" name="boamaue">
<!-- ==================================================================== -->
<!-- import common tasks and settings -->
<!-- ==================================================================== -->
<property file="/vobs/rbs/sw/rbssw1/boam_subsys/build/build.properties"/>
<import file="/vobs/rbs/sw/rbssw1/boam_subsys/build/common.xml"/>
<!-- ==================================================================== -->
<!-- check dependencies and set classpath -->
<!-- ==================================================================== -->
<target name="setup">
<!-- Set common classpath to override def. in common.xml -->
<path id="common.classpath">
<pathelement location="${CELLO.DIR}/${CMA.JAR}"/>
<pathelement location="${CELLO.DIR}/${FOUNDATION.JAR}"/>
<pathelement location="${CELLO.DIR}/${OMS.JAR}"/>
<pathelement location="${CELLO.DIR}/${VBJORB.JAR}"/>
<pathelement location="${CELLO.DIR}/${ASMS.JAR}"/>
<path refid="additional.classpath"/>
</path>
<!-- Make sure upfwk and boam is uptodate -->
<depend srcdir="${BOAM.SRC.DIR}"
destdir="${AUE.CLASSES.DIR}"
cache="depcache"
closure="yes">
<include name="**/upfwk/**/*.java"/>
<exclude name="**/conv"/>
<exclude name="**/operation"/>
</depend>
<javac debug="true" deprecation="true" destdir="${AUE.CLASSES.DIR}" srcdir="${BOAM.SRC.DIR}">
<classpath refid="common.classpath"/>
<include name="**/upfwk/**/*.java"/>
<exclude name="**/conv"/>
<exclude name="**/operation"/>
</javac>
<depend srcdir="${BOAM.SRC.DIR}"
destdir="${BOAM.CLASSES.DIR}"
cache="depcache"
closure="yes">
<include name="**/*.java"/>
</depend>
<javac debug="true" deprecation="true" destdir="${BOAM.CLASSES.DIR}" srcdir="${BOAM.SRC.DIR}">
<classpath refid="common.classpath"/>
<include name="**/*.java"/>
</javac>
<echo name="after boam compile!!!"/>
<!-- Adding upfwk and boam to classpath -->
<path id="additional.classpath">
<fileset dir="${AUE.CLASSES.DIR}">
<include name="**/upfwk/**/*.class"/>
<exclude name="**/conv"/>
<exclude name="**/operation"/>
</fileset>
<fileset dir="${BOAM.CLASSES.DIR}">
<include name="**/*.class"/>
</fileset>
</path>
</target>
</project>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org