facebook

myeclipse 4.1 Generating Artifacts

  1. MyEclipse Archived
  2.  > 
  3. Database Tools (DB Explorer, Hibernate, etc.)
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #251232 Reply

    xlhyb
    Member

    eclipse3.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 more

    #251233 Reply

    xlhyb
    Member

    oracle 8.1.7
    class12.zip
    win xp

    #251236 Reply

    Haris Peco
    Member

    xlhyb ,

    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.com

    Do you use own language (NLS_LANG) ?

    Thanks

    #251268 Reply

    Brian Fernandes
    Moderator

    Just 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.

    #256550 Reply

    snpriya
    Member

    Hi, 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

    #256551 Reply

    snpriya
    Member

    thanks its working when i use ojdbc.jar…

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: myeclipse 4.1 Generating Artifacts

You must be logged in to post in the forum log in