I don't know what your problem could be. It's most probably related to 
your JDBC driver. (maybe you're using an old driver which returns empty 
resultsets in its metadata calls?) What version of the THIN driver are 
you using? Can you confirm that its metadata implementation supports 
getTables()?

Do a search for "oracle" (upper left corner text box) in the mailing 
list archives at SF:
http://sourceforge.net/mailarchive/forum.php?forum_id=231
http://sourceforge.net/mailarchive/forum.php?forum_id=232

If this isn't fruitful, I suggest you dig into MiddlegenPopulator.java 
and add some debug statements on your own. Start with the addTables
(List method)

If you find out anything interesting, please let me know.

Good Luck!
Aslak

----- Original Message -----
From: "Joseph Parks" <[EMAIL PROTECTED]>
Date: Monday, June 24, 2002 4:22 pm
Subject: Re: RE: [Xdoclet-user] Middlegen problems

> Thanks.  I no longer get the NullPointer Exception, but middlegen 
> doesn't seem to see any of the tables: (The database server, 
> schema, login/passwd are correct).
> 
> Apache Ant version 1.5Beta1 compiled on April 30 2002
> Buildfile: scripts\build.xml
> Detected Java version: 1.4 in: c:\j2sdk1.4.0_01\jre
> Detected OS: Windows 2000
> parsing buildfile scripts\build.xml with URI = 
> file:H:/middlegen_test/scripts/build.xmlProject base dir set to: 
> H:\middlegen_testBuild sequence for target `mid' is [mid]
> Complete build sequence is [mid, compile, init]
> 
> mid:
> [middlegen] log4j:ERROR No appenders could be found for category 
> (middlegen.Middlegen).[middlegen] log4j:ERROR Please initialize 
> the log4j system properly.
> [middlegen] Database URL:jdbc:oracle:thin:@dbserver:1521:schema
> [middlegen] No <table> elements specified. Reading all tables. 
> This might take a while...
> 
> BUILD FAILED
> H:\middlegen_test\scripts\build.xml:50: 
> middlegen.MiddlegenException: Middlegen successfully connected to 
> the database, but couldn't find any tables. Perhaps the specified 
> schema or catalog is wrong? -Or maybe there isn't any tables in 
> the database at all?
> at middlegen.MiddlegenTask.execute(MiddlegenTask.java:412)
> at 
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:171) 
at org.apache.tools.ant.Task.perform(Task.java:313)
> at org.apache.tools.ant.Target.execute(Target.java:309)
> at org.apache.tools.ant.Target.performTasks(Target.java:334)
> at org.apache.tools.ant.Project.executeTarget(Project.java:1216)
> at org.apache.tools.ant.Project.executeTargets(Project.java:1160)
> at org.apache.tools.ant.Main.runBuild(Main.java:605)
> at org.apache.tools.ant.Main.start(Main.java:195)
> at org.apache.tools.ant.Main.main(Main.java:234)
> --- Nested Exception ---
> middlegen.MiddlegenException: Middlegen successfully connected to 
> the database, but couldn't find any tables. Perhaps the specified 
> schema or catalog is wrong? -Or maybe there isn't any tables in 
> the database at all?
> at 
> middlegen.MiddlegenPopulator.getRegularTableNames
(MiddlegenPopulator.java:154) at middlegen.MiddlegenTask.execute
(MiddlegenTask.java:380)
> at 
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:171) 
at org.apache.tools.ant.Task.perform(Task.java:313)
> at org.apache.tools.ant.Target.execute(Target.java:309)
> at org.apache.tools.ant.Target.performTasks(Target.java:334)
> at org.apache.tools.ant.Project.executeTarget(Project.java:1216)
> at org.apache.tools.ant.Project.executeTargets(Project.java:1160)
> at org.apache.tools.ant.Main.runBuild(Main.java:605)
> at org.apache.tools.ant.Main.start(Main.java:195)
> at org.apache.tools.ant.Main.main(Main.java:234)
> 
> Total time: 40 seconds
> 
> 
> 
> 
> 
> >>> <[EMAIL PROTECTED]> 06/24/02 09:14AM >>>
> Try this:
> 
> http://sourceforge.net/tracker/index.php?
> func=detail&aid=573098&group_id=36044&atid=415992
> 
> I don't have CVS access at the moment myself...
> 
> Aslak
> 



-------------------------------------------------------
This sf.net email is sponsored by: Jabber Inc.
Don't miss the IM event of the season | Special offer for OSDN members! 
JabConf 2002, Aug. 20-22, Keystone, CO http://www.jabberconf.com/osdn
_______________________________________________
Xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to