Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
iamdancer
Post subject: MyEclipse 4.1.0 GA: can't genernate Hibernate Mapping  PostPosted: Feb 28, 2006 - 12:37 PM



Joined: Feb 28, 2006
Posts: 3

This MyEclipse 4.1.0 GA is running on Eclipse 3.1.2. When I tried to genernate a hibernate Mapping,I got a message
==========
An internal error occurred during: "Generating Artifacts".


org.hibernate.exception.GenericJDBCException: Could not get list of tables from database. Probably a JDBC driver problem.
Configured schema:NEWSJJC
Configured catalog:null
Available schemas:
DBMM_JC
DBSJ_JC
DBSNMP
HNNEWSJJC
JC_OUT
JIANCHA
JY
LIZE
MDSYS
NEWSJJC
ORDPLUGINS
ORDSYS
OUTJC
OUTLN
RMAN
SHOUTJC
SHTZJC
SYS
SYSTEM
TEMP
TEST_JC
TRACESVR
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:382)
at org.hibernate.cfg.reveng.JDBCReader.readDatabaseSchema(JDBCReader.java:62)
at com.genuitec.eclipse.hibernate.wizards.MEJDBCMetaDataConfiguration$1.readDatabaseSchema(MEJDBCMetaDataConfiguration.java:82)
at org.hibernate.cfg.JDBCBinder.readFromDatabase(JDBCBinder.java:85)
at com.genuitec.eclipse.hibernate.wizards.MEJDBCMetaDataConfiguration.readFromJDBC(MEJDBCMetaDataConfiguration.java:109)
at com.genuitec.eclipse.hibernate.wizards.GenerateArtifactsJob$5.execute(GenerateArtifactsJob.java:393)
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:388)
at com.genuitec.eclipse.hibernate.wizards.GenerateArtifactsJob.run(GenerateArtifactsJob.java:255)
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 more

==========================

I think that is not a JDBC driver problem.Because I could genernate hibernate Mapping in MyEclipse 4.0.3 . The problem only appear in the 4.1.0 GA
 
 View user's profile Send private message  
Reply with quote Back to top
Support-Brian
Post subject:   PostPosted: Feb 28, 2006 - 04:43 PM
Moderator
Moderator


Joined: Aug 21, 2004
Posts: 2281

You are probably using an older JDBC driver which isn't supported by our new tools (probably classes12.jar). Could you tell me what driver and driver class you're using?
If you download the latest ojdbc14.jar file from Oracle, the reverse engineering should work fine. The drivers are backward compatibile, so you should not have a problem.

Best,
Brian.

_________________
Brian
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
nfiedel
Post subject:   PostPosted: Feb 28, 2006 - 08:50 PM
Registered Member
Registered Member


Joined: Feb 28, 2006
Posts: 2

Hi,
I'm getting the exact same problem here... I'm using the jtds 1.2 driver with MS SQL Server, and just downloaded / purchased MyEclipseIDE today.
 
 View user's profile Send private message  
Reply with quote Back to top
nfiedel
Post subject:   PostPosted: Feb 28, 2006 - 08:51 PM
Registered Member
Registered Member


Joined: Feb 28, 2006
Posts: 2

Sorry for the 2nd post - where / how did you see the exception / stack trace? I get the popup error message but not the full exception to help debug this and future issues...

Thanks,
Noah
 
 View user's profile Send private message  
Reply with quote Back to top
Support-Brian
Post subject:   PostPosted: Feb 28, 2006 - 08:57 PM
Moderator
Moderator


Joined: Aug 21, 2004
Posts: 2281

Noah,

A detailed series of instructions are present here: Posting Guidelines

Your stack trace is cruicial to finding out what is going wrong.

Best,
Brian.
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
iamdancer
Post subject:   PostPosted: Mar 01, 2006 - 01:28 AM



Joined: Feb 28, 2006
Posts: 3

I use the ojdbc14.jar and it work right now!
Think you very much.
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits