当前位置: 代码迷 >> Java Web开发 >> 高分求一有关问题解决答案-hibernate在myecplise下生成maping出现异常
  详细解决方案

高分求一有关问题解决答案-hibernate在myecplise下生成maping出现异常

热度:90   发布时间:2016-04-17 13:18:09.0
高分求一问题解决答案---hibernate在myecplise下生成maping出现错误
用ecplise中的myeclise的DB   Browser   中建立sql   server数据库的连接,之后点表生成create   hibernate   maping的时候,出现

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:TEST
Configured   catalog:null
Available   schemas:
    AURORA$JIS$UTILITY$
    AURORA$ORB$UNAUTHENTICATED
    BING
    CTXSYS
    DBSNMP
    HR
    MDSYS
    OE
    OLAPDBA
    OLAPSVR
    OLAPSYS
    ORDPLUGINS
    ORDSYS
    OSE$HTTP$ADMIN
    OUTLN
    PM
    QS
    QS_ADM
    QS_CB
    QS_CBADM
    QS_CS
    QS_ES
    QS_OS
    QS_WS
    RMAN
    SCOTT
    SH
    SYS
    SYSTEM
    TEST
    WKSYS
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:134)
at   com.genuitec.eclipse.hibernate.wizards.GenerateArtifactsJob$6.execute(GenerateArtifactsJob.java:514)
at   org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:35)
at   org.hibernate.console.ConsoleConfiguration.execute(ConsoleConfiguration.java:70)
at   com.genuitec.eclipse.hibernate.wizards.GenerateArtifactsJob.buildConfiguration(GenerateArtifactsJob.java:509)
at   com.genuitec.eclipse.hibernate.wizards.GenerateArtifactsJob.run(GenerateArtifactsJob.java:293)
at   org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)
Caused   by:   java.sql.SQLException:   列名无效
at   oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:180)
at   oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:222)
at   oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:285)
at   oracle.jdbc.driver.OracleStatement.get_column_index(OracleStatement.java:5278)
at   oracle.jdbc.driver.OracleResultSetImpl.findColumn(OracleResultSetImpl.java:698)
at   oracle.jdbc.driver.OracleResultSet.getString(OracleResultSet.java:1505)
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
  相关解决方案