This week's book giveaway is in the Design and Architecture forum.
We're giving away four copies of Communication Patterns: A Guide for Developers and Architects and have Jacqui Read on-line!
See this thread for details.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

XDoclet OutOfMemory problem.

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.>>
 
Author
Posts: 367
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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...
 
Saloon Keeper
Posts: 28078
198
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
javac had a memory leak somewhere around the 1.3 release.
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
What? What, what, what? What what tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic