»»

org.hibernate.exception errorsHibernate Core

Top patterns

  1. Constraint violation

    Many situations lead to constraint violation:

    • duplicate insert
    • foreign key checks failing
    • invalid value in a column
  2. Violating data type constraint

    Your SQL statement and Hibernate mapping is correct, but the server still fails to execute the insert/update. The most likely cause of this is a value that violates the column's constraints, e.g. inserting a 200 characters long String to a column of type VARCHAR(40).

  3. SQLStateConverter.convert() has thrown a LockAcquisitionException
    No solution
Error patternsClassesMethodsExceptions
DescriptionException TypeEntry MethodWeb pages

Constraint violation

org.hibernate.exception.ConstraintViolationException
org.hibernate.exception.SQLStateConverter.convert
113Web pages
1Solution
ConstraintViolationExceptionSQLStateConverter.convert113

Violating data type constraint

org.hibernate.exception.DataException
org.hibernate.exception.SQLStateConverter.convert
26Web pages
1Solution
DataExceptionSQLStateConverter.convert26

SQLStateConverter.convert() has thrown a LockAcquisitionException

org.hibernate.exception.LockAcquisitionException
org.hibernate.exception.SQLStateConverter.convert
20Web pages
LockAcquisitionExceptionSQLStateConverter.convert20

JDBCExceptionHelper.convert() has thrown a ConstraintViolationException

org.hibernate.exception.ConstraintViolationException
1 frames hidden
org.hibernate.exception.JDBCExceptionHelper.convert
12Web pages
ConstraintViolationExceptionJDBCExceptionHelper.convert12

SQLStateConverter.convert() has thrown a GenericJDBCException

org.hibernate.exception.GenericJDBCException
org.hibernate.exception.SQLStateConverter.convert
4Web pages
GenericJDBCExceptionSQLStateConverter.convert4

JDBCExceptionHelper.convert() has thrown a ConstraintViolationException

org.hibernate.exception.ConstraintViolationException
org.hibernate.exception.JDBCExceptionHelper.convert
2Web pages
ConstraintViolationExceptionJDBCExceptionHelper.convert2
Nothing to list here.
Nothing to list here.
Nothing to list here.