-->
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.  [ 2 posts ] 
Author Message
 Post subject: GenericJDBCException: Could not get list of tables from data
PostPosted: Tue Jun 14, 2005 11:00 am 
Newbie

Joined: Tue May 31, 2005 6:47 am
Posts: 3
Location: Germany
Hibernate version:
Version 3.0.5

Name and version of the database you are using:
Oracle 9.0.1.1.1

JDBC Driver:
Oracle JDBC Driver for Oracle 9i (9.0.1.1.0): classes12.jar

Error Summary:
I have a GenericJDBCException thrown when I try to use the Hibernate Artifact Generation wizard of the Hibernate Tools alpha4 plugin for Eclipse IDE. There's no problem connecting directly to the Oracle-DB via JDBC...

Thanks in advance!

hibernate.cfg.xml:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory>
<property name="hibernate.connection.url">jdbc:oracle:thin:@10.21.0.200:1521:ezs</property>
<property name="hibernate.cglib.use_reflection_optimizer">true</property>
<property name="hibernate.connection.password">manager</property>
<property name="hibernate.connection.username">system</property>
<property name="hibernate.connection.driver_class">oracle.jdbc.driver.OracleDriver</property>
<property name="hibernate.dialect">org.hibernate.dialect.Oracle9Dialect</property>
<property name="hibernate.default_schema">EZS</property>
<property name="hibernate.connection.isolation">2</property>
<property name="hibernate.show_sql">true</property>
</session-factory>
</hibernate-configuration>


Full stack trace of any exception that occurs:
org.hibernate.exception.GenericJDBCException: Could not get list of tables from database. Probably a JDBC driver problem.
Configured schema:EZS
Configured catalog:null
?? Couldn't get schemas ??
Available catalogs:

at org.hibernate.exception.ErrorCodeConverter.handledNonSpecificException(ErrorCodeConverter.java:92)
at org.hibernate.exception.ErrorCodeConverter.convert(ErrorCodeConverter.java:80)
at org.hibernate.cfg.JDBCBinder.readTables(JDBCBinder.java:619)
at org.hibernate.cfg.JDBCBinder.readDatabaseSchema(JDBCBinder.java:118)
at org.hibernate.cfg.JDBCBinder.readFromDatabase(JDBCBinder.java:91)
at org.hibernate.cfg.JDBCMetaDataConfiguration.readFromJDBC(JDBCMetaDataConfiguration.java:37)
at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard$3.execute(ArtifactGeneratorWizard.java:237)
at org.hibernate.console.ConsoleConfiguration.execute(ConsoleConfiguration.java:77)
at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard.buildConfiguration(ArtifactGeneratorWizard.java:234)
at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard.doFinish(ArtifactGeneratorWizard.java:164)
at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard.access$0(ArtifactGeneratorWizard.java:132)
at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard$1.run(ArtifactGeneratorWizard.java:98)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)
Caused by: java.sql.SQLException: ORA-00600: Interner Fehlercode, Argumente: [ttcgcshnd-1], [0], [], [], [], [], [], []

at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:168)
at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:208)
at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:543)
at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1405)
at oracle.jdbc.ttc7.TTC7Protocol.fetch(TTC7Protocol.java:889)
at oracle.jdbc.driver.OracleStatement.doExecuteQuery(OracleStatement.java:1681)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1870)
at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:363)
at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:314)
at oracle.jdbc.OracleDatabaseMetaData.getTables(OracleDatabaseMetaData.java:2272)
at org.hibernate.cfg.JDBCBinder.readTables(JDBCBinder.java:579)
... 10 more


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jul 24, 2005 8:35 am 
Newbie

Joined: Tue May 31, 2005 6:47 am
Posts: 3
Location: Germany
I had faced the problem while working with Weblogic 6.1/Oracle combination. It worked fine with Oracle 8i but problem surfaced when I migrated to 9i.
This problem was due to the fact that weblogic.jar (in Weblogic 6.1) contains the class oracle.jdbc.driver.OracleDriver !!! This class is compatible with Oracle 8i but not with 9i.

Once classes12.zip is placed in classpath ahead of everything, this problem will be solved...


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.