-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 
Author Message
 Post subject: Could not find any tables
PostPosted: Mon Aug 16, 2004 3:39 pm 
Newbie

Joined: Mon Aug 16, 2004 3:36 pm
Posts: 5
Hi All,

I am new to Middlegen and Hibernate. When I run Middlegen, I am getting the following error. I could run the target createdb, but not middlegen. Please help.

[b]Full stack trace of any exception that occurs:[/b]
middlegen.MiddlegenEx
ception: Middlegen successfully connected to the database, but couldn't find any
tables. Perhaps the specified schema or catalog is wrong? -Or maybe there aren'
t any tables in the database at all?

[b]Name and version of the database you are using:[/b]
Oracle 9i

Thanks in advance
Renga.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 17, 2004 4:04 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
It is likely to be either the setup for the JDBC driver or maybe the driver itself.
Things to try:
1) Recheck your configuration.
2) Remove entry configuration paramaters for the driver, eg, Catelog (if your not using it).
3) Check that the driver can get the database Meta data, try another application, write a small program etc.
4) Check the bugs list for the driver.
5) Check the class path to make sure you don't have multiple drivers on the path.

etc..

It is a hard one to remotely solve.


Top
 Profile  
 
 Post subject: Re: couldn't find any tables
PostPosted: Wed Aug 18, 2004 5:25 pm 
Newbie

Joined: Mon Aug 16, 2004 3:36 pm
Posts: 5
David,

Thanks for your reply.
I am using the following parameters. I don't have any problem when I connect to this DB from my java application. Is there any way we can see the exception trace. This will atleast give me an idea of what is causing the exception.

Thanks in advance
Booshan.


<middlegen
appname="airline"
prefsdir="${src.dir}"
gui="false"
databaseurl="jdbc:oracle:thin:@aotsditaticketdb.bcs.abc.com:1521:ARSyst
em"
driver="oracle.jdbc.driver.OracleDriver"
username="ts"
password="ts123"
schema="ARSystem"
>


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 19, 2004 7:15 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
Its a ghost exception in that Middlegen cannot get the Meta data about the tables so its stating there is a problem. Likely a JDBC setup issue.

Write a small program using direct JDBC and query the table meta data. See which JDBC configuration it works on. Then use that same setup when running Middlegen.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.