facebook

Ant/XDoclet Memory problem [closed]

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

    edosoft
    Member

    Hello,

    I have a problem with ANT/XDOCLET. I have been working normally until now. But in adding a finder in a CMP Entity Run XDoclets have been started to give me fault outputs like I have attached here.

    I have monitorized memory consumption and it is normal (aprox. 100MB in javaw (ant process)).

    Could someone give me a hand.

    Thank you,

    Console Output.

    [ejbdoclet] XJavaDoc Ignoring class com.edosoftfactory.icmtp.interfaces.DepartamentoExternoLocal in C:\proyectos\myeclipsework\icmtpEJB\src\com\edosoftfactory\icmtp\interfaces\DepartamentoExternoLocal.java. It was generated (Tue Apr 12 19:10:35 BST 2005) after XJavaDoc’s timestamp was reset (Tue Apr 12 19:09:45 BST 2005)

    [ejbdoclet] XJavaDoc Ignoring class com.edosoftfactory.icmtp.interfaces.FlujoLocal in C:\proyectos\myeclipsework\icmtpEJB\src\com\edosoftfactory\icmtp\interfaces\FlujoLocal.java. It was generated (Tue Apr 12 19:10:24 BST 2005) after XJavaDoc’s timestamp was reset (Tue Apr 12 19:09:45 BST 2005)

    [ejbdoclet] Generating Home interface for ‘com.edosoftfactory.icmtp.ejb.PostAccionDescriptor’.

    [ejbdoclet] (TemplateEngine.invokeMethod 544 ) Invoking method failed: xdoclet.modules.ejb.home.HomeTagsHandler.forAllHomeMethods, line=9 of template file: jar:file:/C:/Archivos%20de%20programa/MyEclipse/eclipse/plugins/com.genuitec.jboss.ide.eclipse.xdoclet.core_3.8.3/xdoclet-ejb-module-1.2.2.jar!/xdoclet/modules/ejb/home/resources/home.xdt

    [ejbdoclet] java.lang.reflect.InvocationTargetException

    [ejbdoclet] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

    [ejbdoclet] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

    [ejbdoclet] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

    [ejbdoclet] at java.lang.reflect.Method.invoke(Method.java:324)

    [ejbdoclet] at xdoclet.template.TemplateEngine.invoke(TemplateEngine.java:638)

    [ejbdoclet] at xdoclet.template.TemplateEngine.invokeMethod(TemplateEngine.java:537)

    [ejbdoclet] at xdoclet.template.TemplateEngine.invokeBlockMethod(TemplateEngine.java:962)

    [ejbdoclet] at xdoclet.template.TemplateEngine.handleBlockTag(TemplateEngine.java:929)

    [ejbdoclet] at xdoclet.template.TemplateEngine.handleTag(TemplateEngine.java:469)

    [ejbdoclet] (TemplateEngine.invokeMethod 576 ) Invoking method failed: xdoclet.modules.ejb.EjbTagsHandler.ifIsAConcreteEJBean, line=21 of template file: jar:file:/C:/Archivos%20de%20programa/MyEclipse/eclipse/plugins/com.genuitec.jboss.ide.eclipse.xdoclet.core_3.8.3/xdoclet-ejb-module-1.2.2.jar!/xdoclet/modules/ejb/home/resources/home.xdt

    [ejbdoclet] java.lang.reflect.InvocationTargetException

    [ejbdoclet] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

    [ejbdoclet] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

    [ejbdoclet] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

    [ejbdoclet] at java.lang.reflect.Method.invoke(Method.java:324)

    [ejbdoclet] at xdoclet.template.TemplateEngine.invoke(TemplateEngine.java:638)

    [ejbdoclet] at xdoclet.template.TemplateEngine.invokeMethod(TemplateEngine.java:564)

    [ejbdoclet] at xdoclet.template.TemplateEngine.invokeBlockMethod(TemplateEngine.java:962)

    [ejbdoclet] at xdoclet.template.TemplateEngine.handleBlockTag(TemplateEngine.java:929)

    [ejbdoclet] at xdoclet.template.TemplateEngine.handleTag(TemplateEngine.java:469)

    [ejbdoclet] at xdoclet.template.TemplateEngine.generate(TemplateEngine.java:347)

    [ejbdoclet] at xdoclet.template.TemplateEngine.start(TemplateEngine.java:414)

    [ejbdoclet] at xdoclet.TemplateSubTask.startEngine(TemplateSubTask.java:561)

    [ejbdoclet] at xdoclet.TemplateSubTask.generateForClass(TemplateSubTask.java:778)

    [ejbdoclet] at xdoclet.TemplateSubTask.startProcessPerClass(TemplateSubTask.java:678)

    [ejbdoclet] at xdoclet.TemplateSubTask.startProcess(TemplateSubTask.java:595)

    [ejbdoclet] at xdoclet.TemplateSubTask.execute(TemplateSubTask.java:487)

    [ejbdoclet] null

    [ejbdoclet] at xdoclet.XDocletMain.start(XDocletMain.java:48)

    [ejbdoclet] ParameterImpl instances: 20

    [ejbdoclet] MethodImpl instances: 7221

    [ejbdoclet] ConstructorImpl instances: 289

    [ejbdoclet] SimpleNode instances: 0

    [ejbdoclet] SourceClass instances: 361

    [ejbdoclet] XDoc instances: 1464

    [ejbdoclet] DefaultXTag instances: 4233

    [ejbdoclet] BinaryClass instances: 77

    [ejbdoclet] UnknownClass instances: 0

    [ejbdoclet] Total memory: 63

    [ejbdoclet] Free memory: 0

    [ejbdoclet] Try to increase heap size. Can be done by defining ANT_OPTS=-Xmx640m

    [ejbdoclet] See the JDK tooldocs.

    BUILD FAILED: C:\proyectos\myeclipsework\icmtpEJB\.xdoclet-build.tmp.xml:42: null

    Total time: 1 minute 38 seconds

    #227996 Reply

    Greg
    Member

    To increate the amount of memory given to XDoclet do the following steps.

    1) Open your MyEclipse-XDoclet properties for your EJB project.
    2) Select the Build tag and set the build policy to “Use xdoclet-build.xml file”.
    3) Hit OK and notice the xdoclet-buid.xml file that will be generated in your ejb project.
    4) Right-click the xdoclet-build.xml file and go to the “Run > Ant Build … “ item.
    5) In the Run dialog that comes up select the JRE tab.
    6) In the VM arguments field, set the memory that will be available “-Xmx512M”
    7) Hit Run to run xdoclet

    Hope this helps.

    #227997 Reply

    edosoft
    Member

    Solved,

    Thanks

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: Ant/XDoclet Memory problem [closed]

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