• 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
  • Rob Spoor
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Junilu Lacar
  • Tim Cooke
Saloon Keepers:
  • Tim Holloway
  • Piet Souris
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Frits Walraven
  • Himai Minh

Xdoclet infinite loop

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
We've been using Xdoclet for a while now and have had very few problems. Recently I modified our ant webdoclet task to include our entire source tree, rather than a few selected packages.
My app builds fine on my windows box, but when I promote it out to our Linux dev server, I get the following error:
> struts-doclet:
> [webdoclet] (XDocletMain.start 47 ) Running
> <strutsconfigxml/> [webdoclet] (TemplateSubTask.engineStarted 792 )
> Generating output 'struts-config.xml' using template file
> 'jar:file:/home/cvsadmin/chimp/main/commons/archive/modules/sourceforge/xdo
>clet/1.2b4/lib/xdoclet-apache-module-1.2b4.jar!/xdoclet/modules/apache/strut
>s/resources/struts_config_xml.xdt'. [webdoclet] (TemplateEngine.invokeMethod
> 509 ) Invoking method failed:
> xdoclet.tagshandler.ClassTagsHandler.forAllClasses, line=25 of template
> file:
> jar:file:/home/cvsadmin/chimp/main/commons/archive/modules/sourceforge/xdoc
>let/1.2b4/lib/xdoclet-apache-module-1.2b4.jar!/xdoclet/modules/apache/struts
>/resources/struts_config_xml.xdt [webdoclet]
> java.lang.reflect.InvocationTargetException
> [webdoclet] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> [webdoclet] at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:3
>9) [webdoclet] at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp
>l.java:25) [webdoclet] at java.lang.reflect.Method.invoke(Method.java:324)
> [webdoclet] at
> xdoclet.template.TemplateEngine.invoke(TemplateEngine.java:603) [webdoclet]
> at xdoclet.template.TemplateEngine.invokeMethod(TemplateEngine.java:502)
> [webdoclet] at
> xdoclet.template.TemplateEngine.invokeBlockMethod(TemplateEngine.java:927)
> [webdoclet] at
> xdoclet.template.TemplateEngine.handleBlockTag(TemplateEngine.java:894)
> [webdoclet] at
> xdoclet.template.TemplateEngine.handleTag(TemplateEngine.java:434)
>
> BUILD FAILED
> Listener attempted to access System.out - infinite loop terminated
Any ideas what might be causing this problem?
Ant 1.6.1
Xdoclet 1.2b3-dev
Here's the webdoclet task from my build.xml
<webdoclet destdir="${dir.build.metadata}" verbose="true">
<fileset dir="${dir.src.java}">
<include name="com/yadda/${app.name}/**/*.java"/>
<exclude name="com/yadda/${app.name}/deploy/**/*.java"/>
<exclude name="com/yadda/${app.name}/oet/**/*.java"/>
<exclude name="com/yadda/${app.name}/search/model/data/*.java"/>
<exclude name="com/yadda/${app.name}/search/model/extended/*.java"/>
<exclude name="com/yadda/${app.name}/search/model/keyword/*.java"/>
<exclude name="com/yadda/${app.name}/search/model/simple/*.java"/>
<exclude name="com/yadda/${app.name}/tools/document/model/data/*.java"/>
</fileset>
<strutsconfigxml mergedir="${dir.src.conf.struts}/yadda-config"
version="1.1" validateXml="true"/>
<strutsvalidationxml mergeDir="${dir.src.conf.struts}/yadda-config"
validateXml="true"/>
</webdoclet>
 
Jonathan Bryant
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I answered my own question -
I fixed the problem by increasing the heap size. For some reason the infinite loop error was returned instead of the OutOfMemoryException. Why, I don't know.
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am having the same problem. I've tried to encrease heap size but that didn't solve the problem. If enyone knows what is going on please respond.
 
I will open the floodgates of his own worst nightmare! All in a tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic