I posted the below to the Ant mailing list as well and one
suggestion was to try and fork the ejbdoclet task. I found several issues on
the Xdoclet mailing lists that seemed like a match but were either not fixed or
not quite the same issue. I am not running inside an IDE, which several issues
mentioned. One issue (several years old) mentioned using the maxmemory parm on
my task tag but apparently that parameter is no longer accepted – it was
found in the ‘olddocs’ on the sourceforge site. Is there a way to ‘fork’ the ejbdoclet task? How do I get the functionality of the apparently old ‘maxmemory’
parameter for the ejbdoclet task? I am trying to resolve an OutOfMemoryError within our build
process. We have a work-around but would really like to be able to run
our ‘standard’ targets to get everything built. We have a 3
layer file structure for components, modules then submodules. Our compile
target is compile.all.all which calls compile.all for the the modules, which
then calls compile on the submodules, using subant. Software version/levels: Ant 1.6.2 (or 1.6.5), JDK 1.4.2_08
and XDoclet 1.2B4 Have set ANT_OPTS=-Xmx1024m and our compile tasks use
fork=”true”. I also included a call to a java task that calls the Runtime
class to get the memory values in hopes that it might provide some
assistance. I placed this before the javac and the ejb tasks (which calls
ejbdoclet). Below is the output just before the failure in the ejbdoclet
task. I have run the failure with both –v and –d but nothing
jumps out at me as significantly wrong – but then again – I am not
an Ant expert! The error seems to be coming when we run the ejbdoclet task Looking for suggestions and any assistance!
Thanks in advance. ******** output ************** [java] Free Memory=32909504 Total Memory=70029312 Max
Memory=1065484288 BUILD FAILED C:\PPOSDevelopment\2006.1\build.xml:84: The following error
occurred while executing this line: C:\PPOSDevelopment\2006.1\PCOS\build.xml:48: The following
error occurred while executing this line: java.lang.OutOfMemoryError at
org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:539) at
org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:388) at
org.apache.tools.ant.taskdefs.SubAnt.execute(SubAnt.java:265) at
org.apache.tools.ant.taskdefs.SubAnt.execute(SubAnt.java:195) at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275) at
org.apache.tools.ant.Task.perform(Task.java:364) at
org.apache.tools.ant.Target.execute(Target.java:341) at
org.apache.tools.ant.Target.performTasks(Target.java:369) at
org.apache.tools.ant.Project.executeTarget(Project.java:1214) at
org.apache.tools.ant.Project.executeTargets(Project.java:1062) at
org.apache.tools.ant.Main.runBuild(Main.java:673) at
org.apache.tools.ant.Main.startAnt(Main.java:188) at org.apache.tools.ant.launch.Launcher.run(Launcher.java:196) at
org.apache.tools.ant.launch.Launcher.main(Launcher.java:55) Caused by: C:\PPOSDevelopment\2006.1\PCOS\build.xml:48: The
following error occurred while executing java.lang.OutOfMemoryError at
org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:539) at
org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:388) at
org.apache.tools.ant.taskdefs.SubAnt.execute(SubAnt.java:265) at org.apache.tools.ant.taskdefs.SubAnt.execute(SubAnt.java:195) at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275) at
org.apache.tools.ant.Task.perform(Task.java:364) at
org.apache.tools.ant.Target.execute(Target.java:341) at
org.apache.tools.ant.Target.performTasks(Target.java:369) at
org.apache.tools.ant.Project.executeTarget(Project.java:1214) at
org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:386) ... 12 more Caused by: java.lang.OutOfMemoryError at
org.apache.tools.ant.Project.executeTarget(Project.java:1223) at
org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:386) ... 20 more Caused by: java.lang.OutOfMemoryError --- Nested Exception --- C:\PPOSDevelopment\2006.1\PCOS\build.xml:48: The following
error occurred while executing this line: java.lang.OutOfMemoryError at
org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:539) at
org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:388) at
org.apache.tools.ant.taskdefs.SubAnt.execute(SubAnt.java:265) at
org.apache.tools.ant.taskdefs.SubAnt.execute(SubAnt.java:195) at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275) at
org.apache.tools.ant.Task.perform(Task.java:364) at
org.apache.tools.ant.Target.execute(Target.java:341) at
org.apache.tools.ant.Target.performTasks(Target.java:369) at
org.apache.tools.ant.Project.executeTarget(Project.java:1214) at
org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:386) at
org.apache.tools.ant.taskdefs.SubAnt.execute(SubAnt.java:265) at
org.apache.tools.ant.taskdefs.SubAnt.execute(SubAnt.java:195) at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275) at
org.apache.tools.ant.Task.perform(Task.java:364) at
org.apache.tools.ant.Target.execute(Target.java:341) at
org.apache.tools.ant.Target.performTasks(Target.java:369) at org.apache.tools.ant.Project.executeTarget(Project.java:1214) at
org.apache.tools.ant.Project.executeTargets(Project.java:1062) at
org.apache.tools.ant.Main.runBuild(Main.java:673) at
org.apache.tools.ant.Main.startAnt(Main.java:188) at
org.apache.tools.ant.launch.Launcher.run(Launcher.java:196) at
org.apache.tools.ant.launch.Launcher.main(Launcher.java:55) Caused by: java.lang.OutOfMemoryError at
org.apache.tools.ant.Project.executeTarget(Project.java:1223) at
org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:386) ... 20 more Caused by: java.lang.OutOfMemoryError --- Nested Exception --- java.lang.OutOfMemoryError at
org.apache.tools.ant.Project.executeTarget(Project.java:1223) at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:386) at
org.apache.tools.ant.taskdefs.SubAnt.execute(SubAnt.java:265) at
org.apache.tools.ant.taskdefs.SubAnt.execute(SubAnt.java:195) at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275) at
org.apache.tools.ant.Task.perform(Task.java:364) at
org.apache.tools.ant.Target.execute(Target.java:341) at
org.apache.tools.ant.Target.performTasks(Target.java:369) at org.apache.tools.ant.Project.executeTarget(Project.java:1214) at
org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:386) at
org.apache.tools.ant.taskdefs.SubAnt.execute(SubAnt.java:265) at
org.apache.tools.ant.taskdefs.SubAnt.execute(SubAnt.java:195) at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275) at
org.apache.tools.ant.Task.perform(Task.java:364) at
org.apache.tools.ant.Target.execute(Target.java:341) at
org.apache.tools.ant.Target.performTasks(Target.java:369) at
org.apache.tools.ant.Project.executeTarget(Project.java:1214) at
org.apache.tools.ant.Project.executeTargets(Project.java:1062) at
org.apache.tools.ant.Main.runBuild(Main.java:673) at org.apache.tools.ant.Main.startAnt(Main.java:188) at
org.apache.tools.ant.launch.Launcher.run(Launcher.java:196) at
org.apache.tools.ant.launch.Launcher.main(Launcher.java:55) Caused by: java.lang.OutOfMemoryError --- Nested Exception --- java.lang.OutOfMemoryError Mike Miller Phone: (214) 277-7759 -- |
- [Xdoclet-user] OutofMemoryError running Ejbdoclet Mike Miller