org.hibernate.exception.GenericJDBCException

Exception while reading foreign key meta data

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web17

  • via Hibernate JIRA by Jose, 1 year ago
    Exception while reading foreign key meta data
  • via Hibernate JIRA by Jose, 1 year ago
    Exception while reading foreign key meta data
  • SR306: INSERT statement conflicted with FOREIGN KEY constraint referencing table "DB.INTLIB.DPU_INSTANCE"
  • Stack trace

    • org.hibernate.exception.GenericJDBCException: Exception while reading foreign key meta data at org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:82) at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:70) at org.hibernate.cfg.reveng.JDBCReader.processForeignKeys(JDBCReader.java:152) at org.hibernate.cfg.reveng.JDBCReader.readDatabaseSchema(JDBCReader.java:65) at org.hibernate.cfg.reveng.JDBCReader.readDatabaseSchema(JDBCReader.java:688) at org.hibernate.cfg.JDBCBinder.readDatabaseSchema(JDBCBinder.java:122) at org.hibernate.cfg.JDBCBinder.readFromDatabase(JDBCBinder.java:89) at org.hibernate.cfg.JDBCMetaDataConfiguration.readFromJDBC(JDBCMetaDataConfiguration.java:40) at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard$3.execute(ArtifactGeneratorWizard.java:249) at org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:35) at org.hibernate.console.ConsoleConfiguration.execute(ConsoleConfiguration.java:71) at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard.buildConfiguration(ArtifactGeneratorWizard.java:246) at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard.doFinish(ArtifactGeneratorWizard.java:165) at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard.access$0(ArtifactGeneratorWizard.java:133) at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard$1.run(ArtifactGeneratorWizard.java:99) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113) Caused by: com.sybase.jdbc2.jdbc.SybSQLException: No such object or user exists in the database. at com.sybase.jdbc2.tds.Tds.processEed(Tds.java:3069) at com.sybase.jdbc2.tds.Tds.nextResult(Tds.java:2373) at com.sybase.jdbc2.jdbc.ResultGetter.nextResult(ResultGetter.java:69) at com.sybase.jdbc2.jdbc.SybStatement.nextResult(SybStatement.java:220) at com.sybase.jdbc2.jdbc.SybStatement.nextResult(SybStatement.java:203) at com.sybase.jdbc2.jdbc.SybStatement.queryLoop(SybStatement.java:1705) at com.sybase.jdbc2.jdbc.SybCallableStatement.executeQuery(SybCallableStatement.java:103) at com.sybase.jdbc2.jdbc.SybDatabaseMetaData.returnResults(SybDatabaseMetaData.java:2541) at com.sybase.jdbc2.jdbc.SybDatabaseMetaData.getExportedKeys(SybDatabaseMetaData.java:2091) at com.mchange.v2.c3p0.impl.NewProxyDatabaseMetaData.getExportedKeys(NewProxyDatabaseMetaData.java:3088) at org.hibernate.cfg.reveng.JDBCReader.processForeignKeys(JDBCReader.java:90) ... 13 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown user
    Once, 10 months ago
    Unknown user
    Once, 1 year ago