Re: Has sample an error (a many2many block to build.xml)?

Eivind Waaler <[email protected]>
Newsgroups gmane.comp.java.ejb.middlegen.user
Message-ID <[email protected]>
Hi,

If you just want to avoid the tables, specify the tables wanted in the
build file (instead of using the many2many element):

<table name="persons"/>
<table name="reservations"/>
<table name="flights"/>

I know this is a little akward, we'll try to add a patch that makes it
able to specify tables to exclude as well..

If you're not using JDO i suggest you comment out the related sections
from the build file.

Regards
.eivind

On Sat, 29 May 2004, Tuomas Kassila wrote:

> Halo all,
>
> I'm using jboss-3.2.3 and middlegen 1.2vo (My sdk is 1.5b and ant is v.
> 1.6.1 jboss is running with an option: java -version 1.4).
> I have tryed to compile and run ant under samples directory
> (ant -propertyfile build.properties.sample).
> When there are also another tables in hsql database than these sample
> tables: persons, flights and reservations,
> after running an ant, I will get allways compile errrors. (Btw, I have tryed
> also cvs-version with the same kind of problems.)
> An another option is to add a many2many block into build.xml file. But it is
> generating a jdodoclet compile error!
> How to correct this situation? Below is more text about these errors:
>
> Runtime environment for Sample
>
> The jboss database has JMS_MESSAGES and JMS_TRANSACTIONS tables and the
> sample script has created tables persons,
> flights and reservations.
>
> a) If I have deleted all ANOTHER tables (by example JMS_MESSAGES and
> JMS_TRANSACTIONS) from jboss hsql database, it is possible to run ant
> without any problems.
>
> But
> b) when there are another tables in the database, as it is normally after
> jboss installation, the ant task is hanging always some
>     unclear source code errors, which are generated by example from
> JMS_MESSAGE table etc (like errors in JmsMessage*.java)..
>
> c) or when I have added a many2many block:
>
>          <many2many>
>             <tablea generate="true" name="persons"/>
>             <jointable name="reservations" generate="true"/>
>             <tableb generate="true" name="flights"/>
>          </many2many>
>
> into the build.xml file, jdodoclet will allways hang nto exception:
>
> [jdodoclet] Caused by: java.lang.NullPointerException
> [jdodoclet]     at
> xdoclet.modules.libelis.jdo.LidoSubTask.getCollectionExtensions(LidoSubTask.
> java:150)
> [jdodoclet]     at
> xdoclet.modules.jdo.VendorExtensionsSubTask.getExtensions(VendorExtensionsSu
> bTask.java:206)
> [jdodoclet]     at
> xdoclet.modules.jdo.JdoTagsHandler.forAllVendorExtensions(JdoTagsHandler.jav
> a:122)
> [jdodoclet]     ... 101 more
> [jdodoclet] (XDocletMain.start                   53  ) Running XDoclet
> failed.
> [jdodoclet] (XDocletMain.start                   54  ) <<Running XDoclet
> failed.: xdoclet.template.TemplateException: Invoking method in class
> xdoclet.modules.jdo.JdoTagsHandler failed: forAllVendorExtensions, line=19
> of template file:
> jar:file:H:\java\opensource\middlegen-2.0-vo\samples\lib\xdoclet-jdo-module-
> 1.2b3-dev.jar!/xdoclet/modules/jdo/resources/jdo_xml.xdt, exception: null>>
> [jdodoclet] xdoclet.template.TemplateException: Invoking method in class
> xdoclet.modules.jdo.JdoTagsHandler failed: forAllVendorExtensions, line=19
> of template file:
> jar:file:H:\java\opensource\middlegen-2.0-vo\samples\lib\xdoclet-jdo-module-
> 1.2b3-dev.jar!/xdoclet/modules/jdo/resources/jdo_xml.xdt, exception: null
> [jdodoclet]     at
> xdoclet.template.TemplateEngine.invokeMethod(TemplateEngine.java:500)
> [jdodoclet]     at
> xdoclet.template.TemplateEngine.invokeBlockMethod(TemplateEngine.java:917)
> [jdodoclet]     at
> xdoclet.template.TemplateEngine.handleBlockTag(TemplateEngine.java:884)
>
> Thanks in advance,
> Tuomas
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by: Oracle 10g
> Get certified on the hottest thing ever to hit the market... Oracle 10g.
> Take an Oracle 10g class now, and we'll give you the exam FREE.
> http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
> _______________________________________________
> middlegen-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/middlegen-user
>
>


-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.