The error "generating artifacts" is thrown when hibernate3.2 is used to map pojo,
Note: I use Oracle. If MySQL is used, no error occurs.
Open the workspace/. Metadata/. Log File and find the exception log information thrown By eclipse as follows:
! Entry org.eclipse.core.jobs 4 2 2008-04-02 15:22:23. 031
! Message An internal error occurred :"Generating artifacts".
! Stack 0
Org. hibernate. Exception. genericjdbcexception: cocould not get List of tables from database. Probably a JDBC driver problem.
Configured Schema: bst114
Configured catalog: NULL
Available schemas:
Anonymous
Bst114
Ctxsys
D114
Dbsnmp
Develop
Dg114
Dgbst
Dgtest
Gamedb
HR
Loushang
MDSYS
ODM
Odm_mtr
OE
Olapsys
Ordplugins
Ordsys
Outln
PM
Qs
Qs_adm
Qs_cb
Qs_cbadm
Qs_cs
Qs_es
Qs_ OS
Qs_ws
Scott
Sh
Sys
System
Testztc
Wkproxy
Wksys
Wmsys
XDB
Available catalogs:
At org. hibernate. Exception. sqlstateconverter. handlednonspecificexception (sqlstateconverter. Java: 103)
At org. hibernate. Exception. sqlstateconverter. Convert (sqlstateconverter. Java: 91)
At org. hibernate. cfg. reveng. dialect. jdbcmetadatadialect $1. handlesqlexception (jdbcmetadatadialect. Java: 40)
At org. hibernate. cfg. reveng. dialect. resultsetiterator. Next (resultsetiterator. Java: 62)
At org. hibernate. cfg. reveng. jdbcreader. processtables (jdbcreader. Java: 433)
At org. hibernate. cfg. reveng. jdbcreader. readdatabaseschema (jdbcreader. Java: 67)
At com. genuitec. Eclipse. hibernate. Wizards. mejdbcmetadataconfiguration $1. readdatabaseschema (mejdbcmetadataconfiguration. Java: 104)
At org. hibernate. cfg. jdbcbinder. readfromdatabase (jdbcbinder. Java: 89)
At com. genuitec. Eclipse. hibernate. Wizards. mejdbcmetadataconfiguration. readfromjdbc (mejdbcmetadataconfiguration. Java: 137)
At com.genuitec.eclipse.hibernate.wizards.generateartifactsjob%9.exe cute (generateartifactsjob. Java: 819)
At org.hibernate.lele.execution.defaultexecutioncontext.exe cute (defaultexecutioncontext. Java: 56)
At org.hibernate.lele.consoleconfiguration.exe cute (consoleconfiguration. Java: 89)
At com. genuitec. Eclipse. hibernate. Wizards. generateartifactsjob. buildconfiguration (generateartifactsjob. Java: 803)
At com. genuitec. Eclipse. hibernate. Wizards. generateartifactsjob. Run (generateartifactsjob. Java: 381)
At org.eclipse.core.internal.jobs. Worker. Run (worker. Java: 58)
Caused by: Java. SQL. sqlexception:Invalid column name
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: 33)
At org. hibernate. cfg. reveng. dialect. resultsetiterator. Next (resultsetiterator. Java: 59)
... 11 more
After going online for a while, I found a netizen saying :"If you are using an Oracle database, if your hibernate version is relatively new, you need to find an oracle10i JDBC driver."
So I found an Oracle 10 Gb classes12.jar on the Internet and remapped it to pojo. OK, it's successful ,,,
Share your feelings. We hope you can solve the same problem as soon as possible and avoid detours.