facebook

Out of memory error when running XDoclet [closed]

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #231450 Reply

    blemon
    Member

    Using Eclipse 3.1.0
    MyEclipse 3.8.4
    Weblogic 8.1
    j2sdk1.4.2_04

    I have an existing EJB that was created with a previous version of Eclipse. After upgrading to 3.1.0 and 3.8.4 I can’t run the XDoclet.
    I get a java.lang.outofmemoryerror just after the XDoclet starts. This problem does not occur in every project workspace… Just this one so far.

    Here is the complete error code

    Buildfile: W:\CNRWLSDevEclipse\Source Files\lms40java\xdoclet-build.xml
    N10004:
    [ejbdoclet] Deploy TEMPLATE URL: jar:file:/C:/Program%20Files/MyEclipse/eclipse/plugins/com.genuitec.jboss.ide.eclipse.xdoclet.core_3.8.1/xdoclet-apache-module-1.2.jar!/xdoclet/modules/apache/axis/ejb/resources/axis-deploy_wsdd.xdt
    [ejbdoclet] Undeploy TEMPLATE URL: jar:file:/C:/Program%20Files/MyEclipse/eclipse/plugins/com.genuitec.jboss.ide.eclipse.xdoclet.core_3.8.1/xdoclet-apache-module-1.2.jar!/xdoclet/modules/apache/axis/ejb/resources/axis-undeploy_wsdd.xdt
    [ejbdoclet] (XDocletMain.start 47 ) Running <remoteinterface/>
    [ejbdoclet] null
    [ejbdoclet] ParameterImpl instances: 20
    [ejbdoclet] MethodImpl instances: 423
    [ejbdoclet] ConstructorImpl instances: 0

    BUILD FAILED
    java.lang.OutOfMemoryError

    Total time: 6 seconds

    Any suggestions??

    #231472

    Greg
    Member

    XDoclet is run in its own jvm process. So the trick is to give the jvm that runs XDoclet more memory. You can follow these steps to do that:

    1) Right-click EJB project select Properties > MyEclipse-XDoclet
    2) Click on Build take and select Use xdoclet-build.xml file
    3) Right-click xdoclet-build.xml file and select Run > External Tools
    4) Click on Ant Build and select the “New” button. This should create a new ant build configuration
    5) On the new configuration, select the tab called “JRE” and in the field called VM Arguments put:

    -Xmx256M

    6) Then select Apply, then Run

    Now you can run XDoclet from the External Tools launch menu to run Xdoclet with more memory.

    #231473

    blemon
    Member

    That fixed it… thanks a lot

    #270256

    sfragata
    Member

    There is no way to set the memory values into ANT, because the solution above isn’t a right solution, that is a workaround for this problem !!

    Tanks.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Out of memory error when running XDoclet [closed]

You must be logged in to post in the forum log in