wood burning stoves*
The moose likes Other Java Products and Servers and the fly likes XDoclet OutOfMemory problem. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Products » Other Java Products and Servers
Bookmark "XDoclet OutOfMemory problem." Watch "XDoclet OutOfMemory problem." New topic
Author

XDoclet OutOfMemory problem.

trevy bevy
Greenhorn

Joined: Jul 03, 2003
Posts: 4
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.>>


REGARDS<br /><i>Trev</i>
norman richards
Author
Ranch Hand

Joined: Jul 21, 2003
Posts: 367
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... )
trevy bevy
Greenhorn

Joined: Jul 03, 2003
Posts: 4
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...
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16101
    
  21

javac had a memory leak somewhere around the 1.3 release.


Customer surveys are for companies who didn't pay proper attention to begin with.
Brad Rust
Greenhorn

Joined: Jan 13, 2004
Posts: 1
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?
Sunil D'Monte
Greenhorn

Joined: Jul 20, 2005
Posts: 1
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.
 
GeeCON Prague 2014
 
subject: XDoclet OutOfMemory problem.