You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-user@db.apache.org by David Zejda <dv...@atlas.cz> on 2004/06/26 19:36:00 UTC

(xdoclet -> torque) with reference to interface

I had a class with reference:

     * @ojb.reference class-ref="oit.agree.Agreement"
     *                foreignkey="agreement_id"
     *                auto-retrieve="true"
     *                auto-update="false"
     *                auto-delete="false"

and referenced interface (with no ojb fields, defined only for extent)

/**
 * @ojb.class include-inherited="true"
 */
public interface Agreement ...

XDoclet created repository, but refused to generate torque schema
(invocation exception, caused by null pointer exc. (and something about
array size 0) has been thrown instead)...

The problem disappeared, as soon as I had shifted reference to implementing
class instead of interface:

     * @ojb.reference class-ref="oit.agree.AbstractAgreement"
     *                foreignkey="agreement_id"
     *                auto-retrieve="true"
     *                auto-update="false"
     *                auto-delete="false"

Is it OK?

David.


---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org


Re: (xdoclet -> torque) with reference to interface

Posted by Thomas Dudziak <to...@first.fhg.de>.
David Zejda wrote:

>as you can see from stacktrace:
>
>file: jar:file:...xdoclet-ojb-module-1.2.1.jar!/xdoclet
>/modules/ojb/resources/torque_xml.xdt[ojbdoclet]
>
>, i used the 1.2.1 version, downloaded exactly from
>
>http://cvs.apache.org/viewcvs.cgi/*checkout*/db-ojb/lib/xdoclet-1.2.1.jar
>http://cvs.apache.org/viewcvs.cgi/*checkout*/db-ojb/lib/xdoclet-ojb-module-1.2.1.jar
>http://cvs.apache.org/viewcvs.cgi/*checkout*/db-ojb/lib/xjavadoc-1.0.3.jar
>  
>
Hmm, strange. Could you send me your classes so that I can debug the 
problem ?

>, other libs are from rc6. Should I try OJB rc7? Or current snapshot of
>whole OJB?
>  
>
No need to update OJB just yet, wait a few days more and then update to 1.0.

Tom


---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org


Re: (xdoclet -> torque) with reference to interface

Posted by David Zejda <dv...@atlas.cz>.
as you can see from stacktrace:

file: jar:file:...xdoclet-ojb-module-1.2.1.jar!/xdoclet
/modules/ojb/resources/torque_xml.xdt[ojbdoclet]

, i used the 1.2.1 version, downloaded exactly from

http://cvs.apache.org/viewcvs.cgi/*checkout*/db-ojb/lib/xdoclet-1.2.1.jar
http://cvs.apache.org/viewcvs.cgi/*checkout*/db-ojb/lib/xdoclet-ojb-module-1.2.1.jar
http://cvs.apache.org/viewcvs.cgi/*checkout*/db-ojb/lib/xjavadoc-1.0.3.jar

, other libs are from rc6. Should I try OJB rc7? Or current snapshot of
whole OJB?

Thanks
David

> David Zejda wrote:
>
> >Remains roughly the same.
> >
> >David
> >
> >Caused by: java.lang.IndexOutOfBoundsException: Index: 0, Size:
0[ojbdoclet]
> >at java.util.ArrayList.RangeCheck(ArrayList.java:507)[ojbdoclet]  at
> >java.util.ArrayList.get(ArrayList.java:324)[ojbdoclet]  at
>
>xdoclet.modules.ojb.model.TorqueModelDef.addIndirectionTable(TorqueModelDef
.
> >java:334)[ojbdoclet]  at
>
>xdoclet.modules.ojb.model.TorqueModelDef.addTableFor(TorqueModelDef.java:13
9
> >)[ojbdoclet]  at
>
>xdoclet.modules.ojb.model.TorqueModelDef.<init>(TorqueModelDef.java:58)[ojb
d
> >oclet]  at
>
>xdoclet.modules.ojb.OjbTagsHandler.createTorqueSchema(OjbTagsHandler.java:1
3
> >
> >
> Are you sure that you used the latest version ? The line numbers given
> in the above stack trace part are different from the current source.
>
> Tom


---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org


Re: (xdoclet -> torque) with reference to interface

Posted by Thomas Dudziak <to...@first.fhg.de>.
David Zejda wrote:

>Remains roughly the same.
>
>David
>
>Caused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0[ojbdoclet]
>at java.util.ArrayList.RangeCheck(ArrayList.java:507)[ojbdoclet]  at
>java.util.ArrayList.get(ArrayList.java:324)[ojbdoclet]  at
>xdoclet.modules.ojb.model.TorqueModelDef.addIndirectionTable(TorqueModelDef.
>java:334)[ojbdoclet]  at
>xdoclet.modules.ojb.model.TorqueModelDef.addTableFor(TorqueModelDef.java:139
>)[ojbdoclet]  at
>xdoclet.modules.ojb.model.TorqueModelDef.<init>(TorqueModelDef.java:58)[ojbd
>oclet]  at
>xdoclet.modules.ojb.OjbTagsHandler.createTorqueSchema(OjbTagsHandler.java:13
>  
>
Are you sure that you used the latest version ? The line numbers given 
in the above stack trace part are different from the current source.

Tom


---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org


Re: (xdoclet -> torque) with reference to interface

Posted by David Zejda <dv...@atlas.cz>.
Remains roughly the same.

David

[ojbdoclet] (XDocletMain.start                   47  ) Running
<torqueschema/>[ojbdoclet] Generating torque schema
(project-schema.xml)[ojbdoclet] Processed 57 types[ojbdoclet]
(TemplateEngine.invokeMethod         573 ) Invoking method failed:
xdoclet.modules.ojb.OjbTagsHandler.createTorqueSchema, line=6 of template
file: jar:file:C:\Documents and
Settings\David\Dokumenty\pgm\zabaz\lib\xdoclet-ojb-module-1.2.1.jar!/xdoclet
/modules/ojb/resources/torque_xml.xdt[ojbdoclet]
java.lang.reflect.InvocationTargetException[ojbdoclet]  at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[ojbdoclet]  at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)[ojbdoclet]  at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)[ojbdoclet]  at
java.lang.reflect.Method.invoke(Method.java:324)[ojbdoclet]  at
xdoclet.template.TemplateEngine.invoke(TemplateEngine.java:635)[ojbdoclet]
at
xdoclet.template.TemplateEngine.invokeMethod(TemplateEngine.java:561)[ojbdoc
let]  at
xdoclet.template.TemplateEngine.invokeContentMethod(TemplateEngine.java:614)
[ojbdoclet]  at
xdoclet.template.TemplateEngine.handleTag(TemplateEngine.java:469)[ojbdoclet
]  at
xdoclet.template.TemplateEngine.generate(TemplateEngine.java:347)[ojbdoclet]
at xdoclet.template.TemplateEngine.start(TemplateEngine.java:414)[ojbdoclet]
at xdoclet.TemplateSubTask.startEngine(TemplateSubTask.java:560)[ojbdoclet]
at
xdoclet.TemplateSubTask.startProcessForAll(TemplateSubTask.java:616)[ojbdocl
et]  at
xdoclet.modules.ojb.TorqueSubTask.startProcess(TorqueSubTask.java:184)[ojbdo
clet]  at
xdoclet.modules.ojb.TorqueSubTask.execute(TorqueSubTask.java:168)[ojbdoclet]
at xdoclet.XDocletMain.start(XDocletMain.java:48)[ojbdoclet]  at
xdoclet.DocletTask.start(DocletTask.java:462)[ojbdoclet]  at
xjavadoc.ant.XJavadocTask.execute(XJavadocTask.java:110)[ojbdoclet]  at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)[ojbdocl
et]  at org.apache.tools.ant.Task.perform(Task.java:364)[ojbdoclet]  at
org.apache.tools.ant.Target.execute(Target.java:301)[ojbdoclet]  at
org.apache.tools.ant.Target.performTasks(Target.java:328)[ojbdoclet]  at
org.apache.tools.ant.Project.executeTarget(Project.java:1215)[ojbdoclet]  at
org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:383)[ojbdoclet]  at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)[ojbdocl
et]  at org.apache.tools.ant.Task.perform(Task.java:364)[ojbdoclet]  at
org.apache.tools.ant.Target.execute(Target.java:301)[ojbdoclet]  at
org.apache.tools.ant.Target.performTasks(Target.java:328)[ojbdoclet]  at
org.apache.tools.ant.Project.executeTarget(Project.java:1215)[ojbdoclet]  at
org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:383)[ojbdoclet]  at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)[ojbdocl
et]  at org.apache.tools.ant.Task.perform(Task.java:364)[ojbdoclet]  at
org.apache.tools.ant.Target.execute(Target.java:301)[ojbdoclet]  at
org.apache.tools.ant.Target.performTasks(Target.java:328)[ojbdoclet]  at
org.apache.tools.ant.Project.executeTarget(Project.java:1215)[ojbdoclet]  at
org.apache.tools.ant.Project.executeTargets(Project.java:1063)[ojbdoclet]
at org.apache.tools.ant.Main.runBuild(Main.java:632)[ojbdoclet]  at
org.apache.tools.ant.Main.startAnt(Main.java:183)[ojbdoclet]  at
org.apache.tools.ant.launch.Launcher.run(Launcher.java:197)[ojbdoclet]  at
org.apache.tools.ant.launch.Launcher.main(Launcher.java:56)[ojbdoclet]
Caused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0[ojbdoclet]
at java.util.ArrayList.RangeCheck(ArrayList.java:507)[ojbdoclet]  at
java.util.ArrayList.get(ArrayList.java:324)[ojbdoclet]  at
xdoclet.modules.ojb.model.TorqueModelDef.addIndirectionTable(TorqueModelDef.
java:334)[ojbdoclet]  at
xdoclet.modules.ojb.model.TorqueModelDef.addTableFor(TorqueModelDef.java:139
)[ojbdoclet]  at
xdoclet.modules.ojb.model.TorqueModelDef.<init>(TorqueModelDef.java:58)[ojbd
oclet]  at
xdoclet.modules.ojb.OjbTagsHandler.createTorqueSchema(OjbTagsHandler.java:13
32)[ojbdoclet]  ... 39 more[ojbdoclet] (XDocletMain.start
53  ) Running XDoclet failed.[ojbdoclet] (XDocletMain.start
54  ) <<Running XDoclet failed.>>[ojbdoclet]
xdoclet.template.TemplateException: Invoking method in class
xdoclet.modules.ojb.OjbTagsHandler failed: createTorqueSchema, line=6 of
template file: jar:file:C:\Documents and
Settings\David\Dokumenty\pgm\zabaz\lib\xdoclet-ojb-module-1.2.1.jar!/xdoclet
/modules/ojb/resources/torque_xml.xdt, exception: null[ojbdoclet]  at
xdoclet.template.TemplateEngine.invokeMethod(TemplateEngine.java:574)[ojbdoc
let]  at
xdoclet.template.TemplateEngine.invokeContentMethod(TemplateEngine.java:614)
[ojbdoclet]  at
xdoclet.template.TemplateEngine.handleTag(TemplateEngine.java:469)[ojbdoclet
]  at
xdoclet.template.TemplateEngine.generate(TemplateEngine.java:347)[ojbdoclet]
at xdoclet.template.TemplateEngine.start(TemplateEngine.java:414)[ojbdoclet]
at xdoclet.TemplateSubTask.startEngine(TemplateSubTask.java:560)[ojbdoclet]
at
xdoclet.TemplateSubTask.startProcessForAll(TemplateSubTask.java:616)[ojbdocl
et]  at
xdoclet.modules.ojb.TorqueSubTask.startProcess(TorqueSubTask.java:184)[ojbdo
clet]  at
xdoclet.modules.ojb.TorqueSubTask.execute(TorqueSubTask.java:168)[ojbdoclet]
at xdoclet.XDocletMain.start(XDocletMain.java:48)[ojbdoclet]  at
xdoclet.DocletTask.start(DocletTask.java:462)[ojbdoclet]  at
xjavadoc.ant.XJavadocTask.execute(XJavadocTask.java:110)[ojbdoclet]  at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)[ojbdocl
et]  at org.apache.tools.ant.Task.perform(Task.java:364)[ojbdoclet]  at
org.apache.tools.ant.Target.execute(Target.java:301)[ojbdoclet]  at
org.apache.tools.ant.Target.performTasks(Target.java:328)[ojbdoclet]  at
org.apache.tools.ant.Project.executeTarget(Project.java:1215)[ojbdoclet]  at
org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:383)[ojbdoclet]  at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)[ojbdocl
et]  at org.apache.tools.ant.Task.perform(Task.java:364)[ojbdoclet]  at
org.apache.tools.ant.Target.execute(Target.java:301)[ojbdoclet]  at
org.apache.tools.ant.Target.performTasks(Target.java:328)[ojbdoclet]  at
org.apache.tools.ant.Project.executeTarget(Project.java:1215)[ojbdoclet]  at
org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:383)[ojbdoclet]  at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)[ojbdocl
et]  at org.apache.tools.ant.Task.perform(Task.java:364)[ojbdoclet]  at
org.apache.tools.ant.Target.execute(Target.java:301)[ojbdoclet]  at
org.apache.tools.ant.Target.performTasks(Target.java:328)[ojbdoclet]  at
org.apache.tools.ant.Project.executeTarget(Project.java:1215)[ojbdoclet]  at
org.apache.tools.ant.Project.executeTargets(Project.java:1063)[ojbdoclet]
at org.apache.tools.ant.Main.runBuild(Main.java:632)[ojbdoclet]  at
org.apache.tools.ant.Main.startAnt(Main.java:183)[ojbdoclet]  at
org.apache.tools.ant.launch.Launcher.run(Launcher.java:197)[ojbdoclet]  at
org.apache.tools.ant.launch.Launcher.main(Launcher.java:56)[ojbdoclet]
C:\Documents and Settings\David\Dokumenty\pgm\zabaz\build.xml:58: XDoclet
failed.[ojbdoclet]  at
xdoclet.DocletTask.start(DocletTask.java:465)[ojbdoclet]  at
xjavadoc.ant.XJavadocTask.execute(XJavadocTask.java:110)[ojbdoclet]  at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)[ojbdocl
et]  at org.apache.tools.ant.Task.perform(Task.java:364)[ojbdoclet]  at
org.apache.tools.ant.Target.execute(Target.java:301)[ojbdoclet]  at
org.apache.tools.ant.Target.performTasks(Target.java:328)[ojbdoclet]  at
org.apache.tools.ant.Project.executeTarget(Project.java:1215)[ojbdoclet]  at
org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:383)[ojbdoclet]  at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)[ojbdocl
et]  at org.apache.tools.ant.Task.perform(Task.java:364)[ojbdoclet]  at
org.apache.tools.ant.Target.execute(Target.java:301)[ojbdoclet]  at
org.apache.tools.ant.Target.performTasks(Target.java:328)[ojbdoclet]  at
org.apache.tools.ant.Project.executeTarget(Project.java:1215)[ojbdoclet]  at
org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:383)[ojbdoclet]  at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)[ojbdocl
et]  at org.apache.tools.ant.Task.perform(Task.java:364)[ojbdoclet]  at
org.apache.tools.ant.Target.execute(Target.java:301)[ojbdoclet]  at
org.apache.tools.ant.Target.performTasks(Target.java:328)[ojbdoclet]  at
org.apache.tools.ant.Project.executeTarget(Project.java:1215)[ojbdoclet]  at
org.apache.tools.ant.Project.executeTargets(Project.java:1063)[ojbdoclet]
at org.apache.tools.ant.Main.runBuild(Main.java:632)[ojbdoclet]  at
org.apache.tools.ant.Main.startAnt(Main.java:183)[ojbdoclet]  at
org.apache.tools.ant.launch.Launcher.run(Launcher.java:197)[ojbdoclet]  at
org.apache.tools.ant.launch.Launcher.main(Launcher.java:56)[ojbdoclet]
Caused by: xdoclet.XDocletException: Running XDoclet failed.[ojbdoclet]  at
xdoclet.TemplateSubTask.startProcessForAll(TemplateSubTask.java:627)[ojbdocl
et]  at
xdoclet.modules.ojb.TorqueSubTask.startProcess(TorqueSubTask.java:184)[ojbdo
clet]  at
xdoclet.modules.ojb.TorqueSubTask.execute(TorqueSubTask.java:168)[ojbdoclet]
at xdoclet.XDocletMain.start(XDocletMain.java:48)[ojbdoclet]  at
xdoclet.DocletTask.start(DocletTask.java:462)[ojbdoclet]  ... 23
more[ojbdoclet] --- Nested Exception ---[ojbdoclet]
xdoclet.XDocletException: Running XDoclet failed.[ojbdoclet]  at
xdoclet.TemplateSubTask.startProcessForAll(TemplateSubTask.java:627)[ojbdocl
et]  at
xdoclet.modules.ojb.TorqueSubTask.startProcess(TorqueSubTask.java:184)[ojbdo
clet]  at
xdoclet.modules.ojb.TorqueSubTask.execute(TorqueSubTask.java:168)[ojbdoclet]
at xdoclet.XDocletMain.start(XDocletMain.java:48)[ojbdoclet]  at
xdoclet.DocletTask.start(DocletTask.java:462)[ojbdoclet]  at
xjavadoc.ant.XJavadocTask.execute(XJavadocTask.java:110)[ojbdoclet]  at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)[ojbdocl
et]  at org.apache.tools.ant.Task.perform(Task.java:364)[ojbdoclet]  at
org.apache.tools.ant.Target.execute(Target.java:301)[ojbdoclet]  at
org.apache.tools.ant.Target.performTasks(Target.java:328)[ojbdoclet]  at
org.apache.tools.ant.Project.executeTarget(Project.java:1215)[ojbdoclet]  at
org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:383)[ojbdoclet]  at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)[ojbdocl
et]  at org.apache.tools.ant.Task.perform(Task.java:364)[ojbdoclet]  at
org.apache.tools.ant.Target.execute(Target.java:301)[ojbdoclet]  at
org.apache.tools.ant.Target.performTasks(Target.java:328)[ojbdoclet]  at
org.apache.tools.ant.Project.executeTarget(Project.java:1215)[ojbdoclet]  at
org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:383)[ojbdoclet]  at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)[ojbdocl
et]  at org.apache.tools.ant.Task.perform(Task.java:364)[ojbdoclet]  at
org.apache.tools.ant.Target.execute(Target.java:301)[ojbdoclet]  at
org.apache.tools.ant.Target.performTasks(Target.java:328)[ojbdoclet]  at
org.apache.tools.ant.Project.executeTarget(Project.java:1215)[ojbdoclet]  at
org.apache.tools.ant.Project.executeTargets(Project.java:1063)[ojbdoclet]
at org.apache.tools.ant.Main.runBuild(Main.java:632)[ojbdoclet]  at
org.apache.tools.ant.Main.startAnt(Main.java:183)[ojbdoclet]  at
org.apache.tools.ant.launch.Launcher.run(Launcher.java:197)[ojbdoclet]  at
org.apache.tools.ant.launch.Launcher.main(Launcher.java:56)
----- Puvodní zpráva ----- 
Od: "Thomas Dudziak" <to...@first.fhg.de>
Komu: "OJB Users List" <oj...@db.apache.org>
Odesláno: 28. cervna 2004 11:06
Predmet: Re: (xdoclet -> torque) with reference to interface


> David Zejda wrote:
>
> >I provided several (cca 20) more xdoclet ojb.class tags and appropriate
> >ojb.fields, ojb.collections, ojb.references... Repository is being
created
> >OK, but the torque schema fails. I'm not sure, whether there is the
problem
> >with interface again, but the stacktrace is a bit similar to previously
> >mentioned one. I feel, it will be a bit of ant work to find the source of
> >problem out.. :-(
> >
> >Thanks for your help with decryption..
> >
> >
> Please try the newest version of the xdoclet module:
>
> http://cvs.apache.org/viewcvs.cgi/*checkout*/db-ojb/lib/xdoclet-1.2.1.jar
>
http://cvs.apache.org/viewcvs.cgi/*checkout*/db-ojb/lib/xdoclet-ojb-module-1.2.1.jar
> http://cvs.apache.org/viewcvs.cgi/*checkout*/db-ojb/lib/xjavadoc-1.0.3.jar
>
> Tom
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
> For additional commands, e-mail: ojb-user-help@db.apache.org
>
>
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org


Re: (xdoclet -> torque) with reference to interface

Posted by Thomas Dudziak <to...@first.fhg.de>.
David Zejda wrote:

>I provided several (cca 20) more xdoclet ojb.class tags and appropriate
>ojb.fields, ojb.collections, ojb.references... Repository is being created
>OK, but the torque schema fails. I'm not sure, whether there is the problem
>with interface again, but the stacktrace is a bit similar to previously
>mentioned one. I feel, it will be a bit of ant work to find the source of
>problem out.. :-(
>
>Thanks for your help with decryption..
>  
>
Please try the newest version of the xdoclet module:

http://cvs.apache.org/viewcvs.cgi/*checkout*/db-ojb/lib/xdoclet-1.2.1.jar
http://cvs.apache.org/viewcvs.cgi/*checkout*/db-ojb/lib/xdoclet-ojb-module-1.2.1.jar
http://cvs.apache.org/viewcvs.cgi/*checkout*/db-ojb/lib/xjavadoc-1.0.3.jar

Tom


---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org


Re: (xdoclet -> torque) with reference to interface

Posted by David Zejda <dv...@atlas.cz>.
I provided several (cca 20) more xdoclet ojb.class tags and appropriate
ojb.fields, ojb.collections, ojb.references... Repository is being created
OK, but the torque schema fails. I'm not sure, whether there is the problem
with interface again, but the stacktrace is a bit similar to previously
mentioned one. I feel, it will be a bit of ant work to find the source of
problem out.. :-(

Thanks for your help with decryption..

David

[ojbdoclet] 2004-06-27 22:25:45,051 [main] ERROR
xdoclet.template.TemplateEngine.invokeMethod - Invoking method failed:
xdoclet.modules.ojb.OjbTagsHandler.createTorqueSchema, line=6 of template
file: jar:file:C:\Documents and
Settings\David\Dokumenty\pgm\zabaz\lib\xdoclet-ojb-module-1.2.jar!/xdoclet/m
odules/ojb/resources/torque_xml.xdt
[ojbdoclet] java.lang.reflect.InvocationTargetException
[ojbdoclet]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
[ojbdoclet]     at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
[ojbdoclet]     at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
[ojbdoclet]     at java.lang.reflect.Method.invoke(Method.java:324)
[ojbdoclet]     at
xdoclet.template.TemplateEngine.invoke(TemplateEngine.java:635)
[ojbdoclet]     at
xdoclet.template.TemplateEngine.invokeMethod(TemplateEngine.java:561)
[ojbdoclet]     at
xdoclet.template.TemplateEngine.invokeContentMethod(TemplateEngine.java:614)
[ojbdoclet]     at
xdoclet.template.TemplateEngine.handleTag(TemplateEngine.java:469)
[ojbdoclet]     at
xdoclet.template.TemplateEngine.generate(TemplateEngine.java:347)
[ojbdoclet]     at
xdoclet.template.TemplateEngine.start(TemplateEngine.java:414)
[ojbdoclet]     at
xdoclet.TemplateSubTask.startEngine(TemplateSubTask.java:560)

[ojbdoclet]     at
xdoclet.TemplateSubTask.startProcessForAll(TemplateSubTask.java:616)
[ojbdoclet]     at
xdoclet.modules.ojb.TorqueSubTask.startProcess(TorqueSubTask.java:222)
[ojbdoclet]     at
xdoclet.modules.ojb.TorqueSubTask.execute(TorqueSubTask.java:206)
[ojbdoclet]     at xdoclet.XDocletMain.start(XDocletMain.java:48)
[ojbdoclet]     at xdoclet.DocletTask.start(DocletTask.java:462)
[ojbdoclet]     at xjavadoc.ant.XJavadocTask.execute(XJavadocTask.java:110)
[ojbdoclet]     at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)
[ojbdoclet]     at org.apache.tools.ant.Task.perform(Task.java:364)
[ojbdoclet]     at org.apache.tools.ant.Target.execute(Target.java:301)
[ojbdoclet]     at org.apache.tools.ant.Target.performTasks(Target.java:328)
[ojbdoclet]     at
org.apache.tools.ant.Project.executeTarget(Project.java:1215)

[ojbdoclet]     at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:383)
[ojbdoclet]     at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)
[ojbdoclet]     at org.apache.tools.ant.Task.perform(Task.java:364)
[ojbdoclet]     at org.apache.tools.ant.Target.execute(Target.java:301)
[ojbdoclet]     at org.apache.tools.ant.Target.performTasks(Target.java:328)
[ojbdoclet]     at
org.apache.tools.ant.Project.executeTarget(Project.java:1215)

[ojbdoclet]     at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:383)
[ojbdoclet]     at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)
[ojbdoclet]     at org.apache.tools.ant.Task.perform(Task.java:364)
[ojbdoclet]     at org.apache.tools.ant.Target.execute(Target.java:301)
[ojbdoclet]     at org.apache.tools.ant.Target.performTasks(Target.java:328)
[ojbdoclet]     at
org.apache.tools.ant.Project.executeTarget(Project.java:1215)

[ojbdoclet]     at
org.apache.tools.ant.Project.executeTargets(Project.java:1063)
[ojbdoclet]     at org.apache.tools.ant.Main.runBuild(Main.java:632)
[ojbdoclet]     at org.apache.tools.ant.Main.startAnt(Main.java:183)
[ojbdoclet]     at
org.apache.tools.ant.launch.Launcher.run(Launcher.java:197)
[ojbdoclet]     at
org.apache.tools.ant.launch.Launcher.main(Launcher.java:56)
[ojbdoclet] Caused by: java.lang.IndexOutOfBoundsException: Index: 0, Size:
0
[ojbdoclet]     at java.util.ArrayList.RangeCheck(ArrayList.java:507)
[ojbdoclet]     at java.util.ArrayList.get(ArrayList.java:324)
[ojbdoclet]     at
xdoclet.modules.ojb.model.TorqueModelDef.addIndirectionTable(TorqueModelDef.
java:365)
[ojbdoclet]     at
xdoclet.modules.ojb.model.TorqueModelDef.addTableFor(TorqueModelDef.java:174
)
[ojbdoclet]     at
xdoclet.modules.ojb.model.TorqueModelDef.<init>(TorqueModelDef.java:97)
[ojbdoclet]     at
xdoclet.modules.ojb.OjbTagsHandler.createTorqueSchema(OjbTagsHandler.java:13
69)
[ojbdoclet]     ... 39 more
[ojbdoclet] 2004-06-27 22:25:45,111 [main] ERROR xdoclet.XDocletMain.start -
Running XDoclet failed.
[ojbdoclet] 2004-06-27 22:25:45,111 [main] ERROR xdoclet.XDocletMain.start -
<<Running XDoclet failed.>>
[ojbdoclet] xdoclet.template.TemplateException: Invoking method in class
xdoclet
.modules.ojb.OjbTagsHandler failed: createTorqueSchema, line=6 of template
file:
 jar:file:C:\Documents and
Settings\David\Dokumenty\pgm\zabaz\lib\xdoclet-ojb-module-1.2.jar!/xdoclet/m
odules/ojb/resources/torque_xml.xdt, exception: null
[ojbdoclet]     at
xdoclet.template.TemplateEngine.invokeMethod(TemplateEngine.java:574)
[ojbdoclet]     at
xdoclet.template.TemplateEngine.invokeContentMethod(TemplateEngine.java:614)
[ojbdoclet]     at
xdoclet.template.TemplateEngine.handleTag(TemplateEngine.java:469)
[ojbdoclet]     at
xdoclet.template.TemplateEngine.generate(TemplateEngine.java:347)
[ojbdoclet]     at
xdoclet.template.TemplateEngine.start(TemplateEngine.java:414)
[ojbdoclet]     at
xdoclet.TemplateSubTask.startEngine(TemplateSubTask.java:560)

[ojbdoclet]     at
xdoclet.TemplateSubTask.startProcessForAll(TemplateSubTask.java:616)
[ojbdoclet]     at
xdoclet.modules.ojb.TorqueSubTask.startProcess(TorqueSubTask.java:222)
[ojbdoclet]     at
xdoclet.modules.ojb.TorqueSubTask.execute(TorqueSubTask.java:206)
[ojbdoclet]     at xdoclet.XDocletMain.start(XDocletMain.java:48)
[ojbdoclet]     at xdoclet.DocletTask.start(DocletTask.java:462)
[ojbdoclet]     at xjavadoc.ant.XJavadocTask.execute(XJavadocTask.java:110)
[ojbdoclet]     at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)
[ojbdoclet]     at org.apache.tools.ant.Task.perform(Task.java:364)
[ojbdoclet]     at org.apache.tools.ant.Target.execute(Target.java:301)
[ojbdoclet]     at org.apache.tools.ant.Target.performTasks(Target.java:328)
[ojbdoclet]     at
org.apache.tools.ant.Project.executeTarget(Project.java:1215)

[ojbdoclet]     at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:383)
[ojbdoclet]     at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)
[ojbdoclet]     at org.apache.tools.ant.Task.perform(Task.java:364)
[ojbdoclet]     at org.apache.tools.ant.Target.execute(Target.java:301)
[ojbdoclet]     at org.apache.tools.ant.Target.performTasks(Target.java:328)
[ojbdoclet]     at
org.apache.tools.ant.Project.executeTarget(Project.java:1215)

[ojbdoclet]     at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:383)
[ojbdoclet]     at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)
[ojbdoclet]     at org.apache.tools.ant.Task.perform(Task.java:364)
[ojbdoclet]     at org.apache.tools.ant.Target.execute(Target.java:301)
[ojbdoclet]     at org.apache.tools.ant.Target.performTasks(Target.java:328)
[ojbdoclet]     at
org.apache.tools.ant.Project.executeTarget(Project.java:1215)

[ojbdoclet]     at
org.apache.tools.ant.Project.executeTargets(Project.java:1063)
[ojbdoclet]     at org.apache.tools.ant.Main.runBuild(Main.java:632)
[ojbdoclet]     at org.apache.tools.ant.Main.startAnt(Main.java:183)
[ojbdoclet]     at
org.apache.tools.ant.launch.Launcher.run(Launcher.java:197)
[ojbdoclet]     at
org.apache.tools.ant.launch.Launcher.main(Launcher.java:56)
[ojbdoclet] C:\Documents and
Settings\David\Dokumenty\pgm\zabaz\build.xml:58: XDoclet failed.
[ojbdoclet]     at xdoclet.DocletTask.start(DocletTask.java:465)
[ojbdoclet]     at xjavadoc.ant.XJavadocTask.execute(XJavadocTask.java:110)
[ojbdoclet]     at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)
[ojbdoclet]     at org.apache.tools.ant.Task.perform(Task.java:364)
[ojbdoclet]     at org.apache.tools.ant.Target.execute(Target.java:301)
[ojbdoclet]     at org.apache.tools.ant.Target.performTasks(Target.java:328)
[ojbdoclet]     at
org.apache.tools.ant.Project.executeTarget(Project.java:1215)

[ojbdoclet]     at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:383)
[ojbdoclet]     at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)
[ojbdoclet]     at org.apache.tools.ant.Task.perform(Task.java:364)
[ojbdoclet]     at org.apache.tools.ant.Target.execute(Target.java:301)
[ojbdoclet]     at org.apache.tools.ant.Target.performTasks(Target.java:328)
[ojbdoclet]     at
org.apache.tools.ant.Project.executeTarget(Project.java:1215)

[ojbdoclet]     at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:383)
[ojbdoclet]     at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)
[ojbdoclet]     at org.apache.tools.ant.Task.perform(Task.java:364)
[ojbdoclet]     at org.apache.tools.ant.Target.execute(Target.java:301)
[ojbdoclet]     at org.apache.tools.ant.Target.performTasks(Target.java:328)
[ojbdoclet]     at
org.apache.tools.ant.Project.executeTarget(Project.java:1215)

[ojbdoclet]     at
org.apache.tools.ant.Project.executeTargets(Project.java:1063)
[ojbdoclet]     at org.apache.tools.ant.Main.runBuild(Main.java:632)
[ojbdoclet]     at org.apache.tools.ant.Main.startAnt(Main.java:183)
[ojbdoclet]     at
org.apache.tools.ant.launch.Launcher.run(Launcher.java:197)
[ojbdoclet]     at
org.apache.tools.ant.launch.Launcher.main(Launcher.java:56)
[ojbdoclet] Caused by: xdoclet.XDocletException: Running XDoclet failed.
[ojbdoclet]     at
xdoclet.TemplateSubTask.startProcessForAll(TemplateSubTask.java:627)
[ojbdoclet]     at
xdoclet.modules.ojb.TorqueSubTask.startProcess(TorqueSubTask.java:222)
[ojbdoclet]     at
xdoclet.modules.ojb.TorqueSubTask.execute(TorqueSubTask.java:206)
[ojbdoclet]     at xdoclet.XDocletMain.start(XDocletMain.java:48)
[ojbdoclet]     at xdoclet.DocletTask.start(DocletTask.java:462)
[ojbdoclet]     ... 23 more
[ojbdoclet] --- Nested Exception ---
[ojbdoclet] xdoclet.XDocletException: Running XDoclet failed.
[ojbdoclet]     at
xdoclet.TemplateSubTask.startProcessForAll(TemplateSubTask.java:627)
[ojbdoclet]     at
xdoclet.modules.ojb.TorqueSubTask.startProcess(TorqueSubTask.java:222)
[ojbdoclet]     at
xdoclet.modules.ojb.TorqueSubTask.execute(TorqueSubTask.java:206)
[ojbdoclet]     at xdoclet.XDocletMain.start(XDocletMain.java:48)
[ojbdoclet]     at xdoclet.DocletTask.start(DocletTask.java:462)
[ojbdoclet]     at xjavadoc.ant.XJavadocTask.execute(XJavadocTask.java:110)
[ojbdoclet]     at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)
[ojbdoclet]     at org.apache.tools.ant.Task.perform(Task.java:364)
[ojbdoclet]     at org.apache.tools.ant.Target.execute(Target.java:301)
[ojbdoclet]     at org.apache.tools.ant.Target.performTasks(Target.java:328)
[ojbdoclet]     at
org.apache.tools.ant.Project.executeTarget(Project.java:1215)

[ojbdoclet]     at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:383)
[ojbdoclet]     at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)
[ojbdoclet]     at org.apache.tools.ant.Task.perform(Task.java:364)
[ojbdoclet]     at org.apache.tools.ant.Target.execute(Target.java:301)
[ojbdoclet]     at org.apache.tools.ant.Target.performTasks(Target.java:328)
[ojbdoclet]     at
org.apache.tools.ant.Project.executeTarget(Project.java:1215)

[ojbdoclet]     at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:383)
[ojbdoclet]     at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)
[ojbdoclet]     at org.apache.tools.ant.Task.perform(Task.java:364)
[ojbdoclet]     at org.apache.tools.ant.Target.execute(Target.java:301)
[ojbdoclet]     at org.apache.tools.ant.Target.performTasks(Target.java:328)
[ojbdoclet]     at
org.apache.tools.ant.Project.executeTarget(Project.java:1215)

[ojbdoclet]     at
org.apache.tools.ant.Project.executeTargets(Project.java:1063)
[ojbdoclet]     at org.apache.tools.ant.Main.runBuild(Main.java:632)
[ojbdoclet]     at org.apache.tools.ant.Main.startAnt(Main.java:183)
[ojbdoclet]     at
org.apache.tools.ant.launch.Launcher.run(Launcher.java:197)
[ojbdoclet]     at
org.apache.tools.ant.launch.Launcher.main(Launcher.java:56)

BUILD FAILED

----- Puvodní zpráva ----- 
Od: "Thomas Dudziak" <to...@first.fhg.de>
Komu: "OJB Users List" <oj...@db.apache.org>
Odesláno: 26. cervna 2004 20:20
Predmet: Re: (xdoclet -> torque) with reference to interface


> David Zejda wrote:
>
> > I had a class with reference:
> >
> >      * @ojb.reference class-ref="oit.agree.Agreement"
> >      *                foreignkey="agreement_id"
> >      *                auto-retrieve="true"
> >      *                auto-update="false"
> >      *                auto-delete="false"
> >
> > and referenced interface (with no ojb fields, defined only for extent)
> >
> > /**
> >  * @ojb.class include-inherited="true"
> >  */
> > public interface Agreement ...
> >
> > XDoclet created repository, but refused to generate torque schema
> > (invocation exception, caused by null pointer exc. (and something about
> > array size 0) has been thrown instead)...
> >
> > The problem disappeared, as soon as I had shifted reference to
implementing
> > class instead of interface:
> >
> >      * @ojb.reference class-ref="oit.agree.AbstractAgreement"
> >      *                foreignkey="agreement_id"
> >      *                auto-retrieve="true"
> >      *                auto-update="false"
> >      *                auto-delete="false"
> >
> > Is it OK?
>
> Generating repository descriptors for interfaces works without problems,
> but you should be aware of some things when using this at runtime. E.g.
> you probably need factory-class/factory-method and perhaps
ojbConcreteClass.
> Also, please post the exact stacktrace.
>
> Tom
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
> For additional commands, e-mail: ojb-user-help@db.apache.org
>
>
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org


Re: (xdoclet -> torque) with reference to interface

Posted by Thomas Dudziak <to...@first.fhg.de>.
>Maybe it's the problem - I declared them (pk, ojbConcreteClass) in the
>abstract class and referenced the interface.
>  
>
This could also explain the error about the different number of PKs vs. FKs.
As a general rule, every class that is referenced by a persistent 
reference must have a pk declared in the repository metadata (bean 
properties if you're using interfaces), and ojbConcreteClass if you're 
mapping to the same table. And for collections, you also need the 
inverse-foreignkey field.

I'll debug the xdoclet module with your code later today to see whether 
there are problems in it.

Btw, I did not say that you have to update to 1.0 in order to make your 
program work. In fact, the xdoclet module is not really dependant upon 
the OJB core, or vice versa. I only suggested that if you want to update 
you should wait until the 1.0 final is out, though in your case the rc6 
should also work.

Tom


---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org


Re: (xdoclet -> torque) with reference to interface

Posted by David Zejda <dv...@atlas.cz>.
> >My scenario is simple:
> >
> >MyInterface
> >MyAbstractClass implements MyInterface
> >MyClass extends MyAbstractClass
> >(and a few more subclasses)
> >
> >where
> >
> >-all of them are provided with ojb.class, mapped to the same table
> >-MyAbstractClass contains artificial primary key and ojbConcreteClass
field
> >and several ojb.xxx (fields, refs., collections, nested..)
> >-MyClass contains MyClass() constructor and another ojb.xxx
> >
> >I assume, this is not the special case, where the factory would be
> >necessary, is it?
> >
> >
> I don't think so, no. Though if you're using the interface in a
> persistent relationship (e.g. as the referenced object in a persistent
> reference), then you have to declare in the interface getter/setter
> methods in the interface for at least the primary key and ojbConcreteClass
> Also, the abstract class probably doesn't require the ojb.class tag
> unless you're referencing it somewhere else in the repository metadata.

Maybe it's the problem - I declared them (pk, ojbConcreteClass) in the
abstract class and referenced the interface.
David

> Tom


---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org


Re: (xdoclet -> torque) with reference to interface

Posted by Thomas Dudziak <to...@first.fhg.de>.
David Zejda wrote:

>My scenario is simple:
>
>MyInterface
>MyAbstractClass implements MyInterface
>MyClass extends MyAbstractClass
>(and a few more subclasses)
>
>where
>
>-all of them are provided with ojb.class, mapped to the same table
>-MyAbstractClass contains artificial primary key and ojbConcreteClass field
>and several ojb.xxx (fields, refs., collections, nested..)
>-MyClass contains MyClass() constructor and another ojb.xxx
>
>I assume, this is not the special case, where the factory would be
>necessary, is it?
>  
>
I don't think so, no. Though if you're using the interface in a 
persistent relationship (e.g. as the referenced object in a persistent 
reference), then you have to declare in the interface getter/setter 
methods in the interface for at least the primary key and ojbConcreteClass
Also, the abstract class probably doesn't require the ojb.class tag 
unless you're referencing it somewhere else in the repository metadata.

Tom


---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org


Re: (xdoclet -> torque) with reference to interface

Posted by David Zejda <dv...@atlas.cz>.
My scenario is simple:

MyInterface
MyAbstractClass implements MyInterface
MyClass extends MyAbstractClass
(and a few more subclasses)

where

-all of them are provided with ojb.class, mapped to the same table
-MyAbstractClass contains artificial primary key and ojbConcreteClass field
and several ojb.xxx (fields, refs., collections, nested..)
-MyClass contains MyClass() constructor and another ojb.xxx

I assume, this is not the special case, where the factory would be
necessary, is it?

David

----- Puvodní zpráva ----- 
Od: "Thomas Dudziak" <to...@first.fhg.de>
Komu: "OJB Users List" <oj...@db.apache.org>
Odesláno: 28. cervna 2004 12:07
Predmet: Re: (xdoclet -> torque) with reference to interface


> David Zejda wrote:
>
> >Do I need factory-class/factory-method if I have ojbConcreteClass?
> >I thougt, if the ojbConcreteClass is provided, objects will be
instantiated
> >by Class.forName(ojbConcreteClass).newInstance(), so the zero-argument
> >constructor would be sufficient..
> >But I may be wrong...
> >
> >
> You need ojbConcreteClass if you map multiple classes onto the same
> database table. You may need factory-class/factory-method when working
> with interfaces, but only in special cases.
>
> Tom
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
> For additional commands, e-mail: ojb-user-help@db.apache.org
>
>
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org


Re: (xdoclet -> torque) with reference to interface

Posted by Thomas Dudziak <to...@first.fhg.de>.
David Zejda wrote:

>Do I need factory-class/factory-method if I have ojbConcreteClass?
>I thougt, if the ojbConcreteClass is provided, objects will be instantiated
>by Class.forName(ojbConcreteClass).newInstance(), so the zero-argument
>constructor would be sufficient..
>But I may be wrong...
>  
>
You need ojbConcreteClass if you map multiple classes onto the same 
database table. You may need factory-class/factory-method when working 
with interfaces, but only in special cases.

Tom


---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org


Re: (xdoclet -> torque) with reference to interface

Posted by David Zejda <dv...@atlas.cz>.
> Generating repository descriptors for interfaces works without problems,
> but you should be aware of some things when using this at runtime. E.g.
> you probably need factory-class/factory-method and perhaps
ojbConcreteClass.

Do I need factory-class/factory-method if I have ojbConcreteClass?
I thougt, if the ojbConcreteClass is provided, objects will be instantiated
by Class.forName(ojbConcreteClass).newInstance(), so the zero-argument
constructor would be sufficient..
But I may be wrong...

David

> Also, please post the exact stacktrace.
>
> Tom


---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org


Re: (xdoclet -> torque) with reference to interface

Posted by Thomas Dudziak <to...@first.fhg.de>.
David Zejda wrote:

> I had a class with reference:
> 
>      * @ojb.reference class-ref="oit.agree.Agreement"
>      *                foreignkey="agreement_id"
>      *                auto-retrieve="true"
>      *                auto-update="false"
>      *                auto-delete="false"
> 
> and referenced interface (with no ojb fields, defined only for extent)
> 
> /**
>  * @ojb.class include-inherited="true"
>  */
> public interface Agreement ...
> 
> XDoclet created repository, but refused to generate torque schema
> (invocation exception, caused by null pointer exc. (and something about
> array size 0) has been thrown instead)...
> 
> The problem disappeared, as soon as I had shifted reference to implementing
> class instead of interface:
> 
>      * @ojb.reference class-ref="oit.agree.AbstractAgreement"
>      *                foreignkey="agreement_id"
>      *                auto-retrieve="true"
>      *                auto-update="false"
>      *                auto-delete="false"
> 
> Is it OK?

Generating repository descriptors for interfaces works without problems, 
but you should be aware of some things when using this at runtime. E.g. 
you probably need factory-class/factory-method and perhaps ojbConcreteClass.
Also, please post the exact stacktrace.

Tom

---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org