Aslak Hellesøy
2002-04-10 20:42:54 UTC
If you're dumb, it would be because you're using an immature tool. Your
feedback is invaluable both for bug fixing and for building an FAQ ;-)
Middlegen only generates one file (the XXXBean file with @tags in it) per
table. All the rest is generated by XDoclet. -So I need to know whether it's
XDoclet or Middlegen that doesn't generate enough files...
works. It's easier to debug on small things. If it works, increase the
number of tables and see if the problem persists. Tell me how it's going.
You can also try to insert the following line in
xdoclet.template.TemplateEngine line 598 (where the
InvocationTargetException is caught):
e.getTargetException().printStackTrace();
That will give you (and me) a more informative stack trace - a stack trace
from Middlegen in stead of XDoclet!
Let me know how it goes...
Aslak
pl.java:42
cessorImpl
.java:689)
pl.java:42
cessorImpl
ava:1037)
feedback is invaluable both for bug fixing and for building an FAQ ;-)
-----Original Message-----
Sent: 10. april 2002 23:27
To: Aslak Hellesøy
Subject: Fw: just a dumb user
It, midgen, also only creates 5 out of about 200 files that it
created when
it worked. is ther another place besides .middlegen or registry
that could
be doing it? I mean the db cant cause a problem can it?
Hmmm. Do you have 200 tables in your database? That's a lot! You know,Sent: 10. april 2002 23:27
To: Aslak Hellesøy
Subject: Fw: just a dumb user
It, midgen, also only creates 5 out of about 200 files that it
created when
it worked. is ther another place besides .middlegen or registry
that could
be doing it? I mean the db cant cause a problem can it?
Middlegen only generates one file (the XXXBean file with @tags in it) per
table. All the rest is generated by XDoclet. -So I need to know whether it's
XDoclet or Middlegen that doesn't generate enough files...
Thanks,
Grant
Try to specify only a few <table>s in your <middlegen> task and see if itGrant
so i have looked again to try to find my error and i cant....
I have gone to the registry and deleted the javasoft stuff... then i re
runI have gone to the registry and deleted the javasoft stuff... then i re
midgen and it crashes here... now i am 99% sure its my error because it
worked for once then died, and i dont remember what i changed.... any
clues.. sorry...
worked for once then died, and i dont remember what i changed.... any
clues.. sorry...
works. It's easier to debug on small things. If it works, increase the
number of tables and see if the problem persists. Tell me how it's going.
You can also try to insert the following line in
xdoclet.template.TemplateEngine line 598 (where the
InvocationTargetException is caught):
e.getTargetException().printStackTrace();
That will give you (and me) a more informative stack trace - a stack trace
from Middlegen in stead of XDoclet!
Let me know how it goes...
Aslak
grant
[middlegen] (TemplateEngine.invokeMethod 604 ) Invoking method
failed: middlegen.EntityCMPTagsHandler.primkeyField, line=1
of template file: jar:file:/C:/lib/middlegen.jar!/entity-cmp.j
[middlegen] java.lang.reflect.InvocationTargetException
[middlegen] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
[middlegen] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorIm[middlegen] (TemplateEngine.invokeMethod 604 ) Invoking method
failed: middlegen.EntityCMPTagsHandler.primkeyField, line=1
of template file: jar:file:/C:/lib/middlegen.jar!/entity-cmp.j
[middlegen] java.lang.reflect.InvocationTargetException
[middlegen] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
[middlegen] at
pl.java:42
)
[middlegen] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAc[middlegen] at
cessorImpl
.java:28)
[middlegen] at java.lang.reflect.Method.invoke(Method.java:313)
[middlegen] at
xdoclet.template.TemplateEngine.invoke(TemplateEngine.java:719)
[middlegen] at
xdoclet.template.TemplateEngine.invokeMethod(TemplateEngine.java:594)
[middlegen] at
xdoclet.template.TemplateEngine.invokeContentMethod(TemplateEngine[middlegen] at java.lang.reflect.Method.invoke(Method.java:313)
[middlegen] at
xdoclet.template.TemplateEngine.invoke(TemplateEngine.java:719)
[middlegen] at
xdoclet.template.TemplateEngine.invokeMethod(TemplateEngine.java:594)
[middlegen] at
.java:689)
[middlegen] at
xdoclet.template.TemplateEngine.handleTag(TemplateEngine.java:543)
[middlegen] at
xdoclet.template.TemplateEngine.generate(TemplateEngine.java:427)
[middlegen] at
xdoclet.template.TemplateTagHandler.generate(TemplateTagHandler.java:76)
[middlegen] at
middlegen.EntityCMPTagsHandler.ifHasPrimkeyField(Unknownxdoclet.template.TemplateEngine.handleTag(TemplateEngine.java:543)
[middlegen] at
xdoclet.template.TemplateEngine.generate(TemplateEngine.java:427)
[middlegen] at
xdoclet.template.TemplateTagHandler.generate(TemplateTagHandler.java:76)
[middlegen] at
Source)
[middlegen] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
[middlegen] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorIm[middlegen] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
[middlegen] at
pl.java:42
)
[middlegen] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAc[middlegen] at
cessorImpl
.java:28)
[middlegen] at java.lang.reflect.Method.invoke(Method.java:313)
[middlegen] at
xdoclet.template.TemplateEngine.invoke(TemplateEngine.java:719)
[middlegen] at
xdoclet.template.TemplateEngine.invokeMethod(TemplateEngine.java:594)
[middlegen] at
xdoclet.template.TemplateEngine.invokeBlockMethod(TemplateEngine.j[middlegen] at java.lang.reflect.Method.invoke(Method.java:313)
[middlegen] at
xdoclet.template.TemplateEngine.invoke(TemplateEngine.java:719)
[middlegen] at
xdoclet.template.TemplateEngine.invokeMethod(TemplateEngine.java:594)
[middlegen] at
ava:1037)
[middlegen] at
xdoclet.template.TemplateEngine.handleBlockTag(TemplateEngine.java:1001)
[middlegen] at
xdoclet.template.TemplateEngine.handleTag(TemplateEngine.java:539)
[middlegen] at
xdoclet.template.TemplateEngine.generate(TemplateEngine.java:427)
[middlegen] at
xdoclet.template.TemplateEngine.start(TemplateEngine.java:483)
[middlegen] at middlegen.Middlegen.writeSource(Unknown Source)
[middlegen] at middlegen.MiddlegenTask.execute(Unknown Source)
[middlegen] at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:104)
[middlegen] at org.apache.tools.ant.Task.perform(Task.java:217)
[middlegen] at org.apache.tools.ant.Target.execute(Target.java:184)
[middlegen] at
org.apache.tools.ant.Target.performTasks(Target.java:202)xdoclet.template.TemplateEngine.handleBlockTag(TemplateEngine.java:1001)
[middlegen] at
xdoclet.template.TemplateEngine.handleTag(TemplateEngine.java:539)
[middlegen] at
xdoclet.template.TemplateEngine.generate(TemplateEngine.java:427)
[middlegen] at
xdoclet.template.TemplateEngine.start(TemplateEngine.java:483)
[middlegen] at middlegen.Middlegen.writeSource(Unknown Source)
[middlegen] at middlegen.MiddlegenTask.execute(Unknown Source)
[middlegen] at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:104)
[middlegen] at org.apache.tools.ant.Task.perform(Task.java:217)
[middlegen] at org.apache.tools.ant.Target.execute(Target.java:184)
[middlegen] at
[middlegen] at
org.apache.tools.ant.Project.executeTarget(Project.java:601)
[middlegen] at
org.apache.tools.ant.Project.executeTargets(Project.java:560)
[middlegen] at org.apache.tools.ant.Main.runBuild(Main.java:454)
[middlegen] at org.apache.tools.ant.Main.start(Main.java:153)
[middlegen] at org.apache.tools.ant.Main.main(Main.java:176)
[middlegen] Caused by: java.lang.NullPointerException
[middlegen] at middlegen.EntityCMPTagsHandler.primkeyField(Unknown
Source)
[middlegen] ... 33 more
BUILD FAILED
org.apache.tools.ant.Project.executeTarget(Project.java:601)
[middlegen] at
org.apache.tools.ant.Project.executeTargets(Project.java:560)
[middlegen] at org.apache.tools.ant.Main.runBuild(Main.java:454)
[middlegen] at org.apache.tools.ant.Main.start(Main.java:153)
[middlegen] at org.apache.tools.ant.Main.main(Main.java:176)
[middlegen] Caused by: java.lang.NullPointerException
[middlegen] at middlegen.EntityCMPTagsHandler.primkeyField(Unknown
Source)
[middlegen] ... 33 more
BUILD FAILED