For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub
- This topic has 5 replies, 4 voices, and was last updated 19 years, 9 months ago by
snpriya.
-
AuthorPosts
-
xlhybMembereclipse3.2+myeclipse4.1
problem:
Generating Artifacts
log:
!ENTRY org.eclipse.core.runtime 4 2 2006-04-27 19:45:29.559
!MESSAGE An internal error occurred during: “Generating Artifacts”.
!STACK 0
org.hibernate.exception.GenericJDBCException: Could not get list of tables from database. Probably a JDBC driver problem.
Configured schema:STRUTS
Configured catalog:null
Available schemas:
DBSNMP
OUTLN
STRUTS
SYS
SYSTEM
Available catalogs:at org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:91)
at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:79)
at org.hibernate.cfg.reveng.dialect.JDBCMetaDataDialect$1.handleSQLException(JDBCMetaDataDialect.java:86)
at org.hibernate.cfg.reveng.dialect.ResultSetIterator.next(ResultSetIterator.java:50)
at org.hibernate.cfg.reveng.JDBCReader.processTables(JDBCReader.java:400)
at org.hibernate.cfg.reveng.JDBCReader.readDatabaseSchema(JDBCReader.java:65)
at com.genuitec.eclipse.hibernate.wizards.MEJDBCMetaDataConfiguration$1.readDatabaseSchema(MEJDBCMetaDataConfiguration.java:102)
at org.hibernate.cfg.JDBCBinder.readFromDatabase(JDBCBinder.java:87)
at com.genuitec.eclipse.hibernate.wizards.MEJDBCMetaDataConfiguration.readFromJDBC(MEJDBCMetaDataConfiguration.java:129)
at com.genuitec.eclipse.hibernate.wizards.GenerateArtifactsJob$5.execute(GenerateArtifactsJob.java:405)
at org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:35)
at org.hibernate.console.ConsoleConfiguration.execute(ConsoleConfiguration.java:68)
at com.genuitec.eclipse.hibernate.wizards.GenerateArtifactsJob.buildConfiguration(GenerateArtifactsJob.java:400)
at com.genuitec.eclipse.hibernate.wizards.GenerateArtifactsJob.run(GenerateArtifactsJob.java:266)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:76)
Caused by: java.sql.SQLException: 无效的列名
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:168)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:210)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:273)
at oracle.jdbc.driver.OracleStatement.get_column_index(OracleStatement.java:4383)
at oracle.jdbc.driver.OracleResultSetImpl.findColumn(OracleResultSetImpl.java:667)
at oracle.jdbc.driver.OracleResultSet.getString(OracleResultSet.java:1374)
at org.hibernate.cfg.reveng.dialect.JDBCMetaDataDialect$1.convertRow(JDBCMetaDataDialect.java:79)
at org.hibernate.cfg.reveng.dialect.ResultSetIterator.next(ResultSetIterator.java:47)
… 11 moreApril 27, 2006 at 6:51 am #251233
xlhybMemberoracle 8.1.7
class12.zip
win xpApril 27, 2006 at 7:43 am #251236
Haris PecoMemberxlhyb ,
Please, use eclipse 3.1.x (3.1.2 is best), myEclipse 4.1.1 and newer jdbc driver for oracle (ojdbc14.jar)
You can download jdbc from otn.oracle.comDo you use own language (NLS_LANG) ?
Thanks
April 27, 2006 at 1:46 pm #251268
Brian FernandesModeratorJust reiterating what snpe said, it is paramount that you start using ojdbc14.jar as the classes12.jar driver will no longer work with our latest tools (that is usually meant to be used with a 1.3 series JDK)
Best,
Brian.August 11, 2006 at 12:27 am #256550
snpriyaMemberHi, continuing with what you had said to use ojdbc.jar instead of classes12, we are using oracle 9.0.1.1 in this case, we tried using the classes12.zip it worked separately with all the hibernte jars in our class paths, but when we tried using myeclipse with the same driver we get the artifact error, when it can work in previous case without any IDE, why is it not working with myeclipse… is there any settings that is missed out from my side. Thanks in advance
August 11, 2006 at 1:30 am #256551
snpriyaMemberthanks its working when i use ojdbc.jar…
-
AuthorPosts
