ERROR [org.hibernate.engine.jdbc.spi.SqlExceptionHelper] (http-thread/192.168.1.1:8080-3) Foreign key constraint violation occurred, dbname = 'db-name', table name = 'tbl-name', constraint name = 'foreing_key_FK'.

Solution Verified - Updated -

Issue

  • The following exceptions can be seen in the server log file:
08:31:26,773 WARN  [org.hibernate.engine.jdbc.spi.SqlExceptionHelper] (http-thread/192.168.1.1:8080-3) SQL Error: 546, SQLState: 23000
08:31:26,774 ERROR [org.hibernate.engine.jdbc.spi.SqlExceptionHelper] (http-thread/192.168.1.1:8080-3) Foreign key constraint violation occurred, dbname =  'db-name', table name = 'tbl-name', constraint name = 'foreing_key_FK'

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 7

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In