File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

XDoclet OutOfMemory problem.

 
trevy bevy
Greenhorn
Posts: 4
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.>>
 
norman richards
Author
Ranch Hand
Posts: 367
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 17616
39
Android Eclipse IDE Linux
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
javac had a memory leak somewhere around the 1.3 release.
 
Brad Rust
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic