Hi Do any of you XDoclet users know how to solve my ejbdoclet problem? I get the java.lang.OutOfMemoryError below: Many Thanks in Anticipation. [ejbdoclet] Generating Home interface for 'uk.co.lfs.services.ejb.CashbackServiceEJB'. [ejbdoclet] (TemplateEngine.invokeMethod 490 ) Invoking method failed: xdoclet.tagshandler.TranslatorTagsHandler.getString, line=7 of template file: jar:file:/utils/websphere/overnight/lastbuild/lfs/lde/ldehead/dk/xdoclet/lib/xdoclet-ejb-module.jar!/xdoclet/modules/ejb/home/resources/home.xdt [ejbdoclet] java.lang.reflect.InvocationTargetException: [ejbdoclet] java.lang.OutOfMemoryError [ejbdoclet] <<no stack trace available>> [ejbdoclet] (XDocletMain.start 51 ) Running XDoclet failed. [ejbdoclet] (XDocletMain.start 52 ) <<Running XDoclet failed.>>
It's not clear why you might be running out of memory, but one possible solution is to increase the JVM size when invoking ant. Try setting your ANT_OPTS environment variable to something large like "-Xmx512m" and see if you can run... (now watch some javaranch guy move the thread to the ant forum... )
Thanks for your reply Norman. Yes I've tried increasing the JVM heap. It doesn't appear to make any difference. I'm actually running XDoclet a number of times over different code modules. If I do one module at a time, it's OK. I'm beginning to wonder if it's an ant or XDoclet bug...
I wanted to second the motion that there may be a problem. Recently upgraded to xdoclet-1.2 (official release) and it seems to have coincided with that. Running j2sdk1.4.2(03), ant 1.5.x or ant 1.6. We have large, iterative build scripts. Eventually, we run OutOfMemory. When you re-try the task (with less out of date targets), everything succeeds. I have ANT_OPTS including -Xmx900m but the process doesn't seem to be getting up over 250m. Anyone have any suggestions?
I'm having the same problem. Am using j2sdk1.4.2_06, with the ANT that comes with Weblogic 8.1sp3 i.e. 1.5.3. I get outofmemory exceptions (and other weird xdoclet exceptions) at around 250m. However, when I use ANT 1.6.2, the problem vanishes and the build succeeds.
What are you doing? You are supposed to be reading this tiny ad!