From: Ara A. <ar...@ya...> - 2001-11-28 16:19:44
|
Because an NPE for example is politely wrapped in an XDocletException, and this exception is politely returned layer by layer and caller by caller to DocletMain. DocletMain hides XdocletException and shows the polite error message ("missing tag parameter x" and like that). So if you find Xdoclet is in a bad mode then you have to enable logging for DocletMain. I hate programs that show stacktraces everywhere (like weblogic's deployer!). Ara. > -----Original Message----- > From: Vincent Harcq [mailto:vin...@hu...] > Sent: Wednesday, November 28, 2001 12:56 PM > To: 'Ara Abrahamian'; 'Colin Daly'; xdo...@li... > Subject: RE: [Xdoclet-user] can't get aggregates to work > > Hi, > When there is an error why not print the stacktrace regardless of > logging ? > Vincent > > > -----Original Message----- > > From: xdo...@li... > > [mailto:xdo...@li...] On Behalf > > Of Ara Abrahamian > > Sent: lundi 26 novembre 2001 16:36 > > To: 'Colin Daly'; xdo...@li... > > Subject: RE: [Xdoclet-user] can't get aggregates to work > > > > > > Are you using 1.0.1? If so please use latest from cvs. > > > > Now a note for all Xdoclet users (not for this specific case though): > > -------------------------------- > > > > As a general rule, whenever you get an un-normal error > > "Xdoclet failed blabla", please turn log4j on and let us see > > what the stack trace shows. To do so: > > > > - make a copy of core/config/log4j.properties, put it where > > your build.xml is. > > - Uncomment the last line of it. > > - Rerun Ant, this time add this parameter to Ant launcher: > > -Dlog4j.configuration=file:/full_path/log4j.properties > > (Assuming you launch Ant by java org.apache.tools.ant.Main > > blabla like Xdoclet's samples) > > - Copy and send the stack trace (lines starting with > > (DocletTask$DocletMain.blabla). > > > > Cheers, > > Ara. > > > > > -----Original Message----- > > > From: xdo...@li... > > [mailto:xdoclet-user- > > > ad...@li...] On Behalf Of Colin Daly > > > Sent: Monday, November 26, 2001 2:58 AM > > > To: xdo...@li... > > > Subject: [Xdoclet-user] can't get aggregates to work > > > > > > > > > i want to aggregate an Account with a PartyOrder > > > and if I only put @aggregate on the getter I get.... > > > > > > compile: > > > [echo] "src/java;gen-src/java" > > > [javac] Compiling 111 source files to > > > /home/colin/projects/cop/build/ejb > > > [javac] > > > /home/colin/projects/cop/gen- > > > src/java/au/com/ucw/cop/ejb/PartyOrderEJBCMP.java:92: > > > cannot resolve symbol > > > [javac] symbol : method setAccount > > > (au.com.ucw.cop.interfaces.AccountEJBData) > > > [javac] location: class > > au.com.ucw.cop.interfaces.PartyOrderEJBData > > > [javac] dataHolder.setAccount( > > getAccount().getData() > > > ); > > > [javac] ^ > > > > > > if I add @aggregate to the setter I get the following exception.... > > > > > > [ejbdoclet] javadoc: In doclet class xdoclet.DocletTask$DocletMain, > > > method start has thrown an exception > > java.lang.reflect.InvocationTargetException > > > > > > anyone got the aggregate stuff to work - any help would be > > appreciated. > > > > > > Colin. > > > > > > _______________________________________________ > > > Xdoclet-user mailing list > > > Xdo...@li... > > > https://lists.sourceforge.net/lists/listinfo/xdoclet-user > > > > > > _________________________________________________________ > > Do You Yahoo!? > > Get your free @yahoo.com address at http://mail.yahoo.com > > > > > > _______________________________________________ > > Xdoclet-user mailing list > > Xdo...@li... > > https://lists.sourceforge.net/lists/listinfo/xdoclet-user > > > > _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com |