Tuomas Kassila
2004-05-29 09:21:11 UTC
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
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