AbstractEntityPersister.delete() has thrown a ConstraintViolationException

We found this prefix in 4 webpages.
MapChildren (2)Typical messages (2)TraceDetailed Map
  1. com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException
    1.   at sun.reflect.NativeConstructorAccessorImpl.newInstance0()
    2.   at sun.reflect.NativeConstructorAccessorImpl.newInstance()
    3.   at sun.reflect.DelegatingConstructorAccessorImpl.newInstance()
    4.   at java.lang.reflect.Constructor.newInstance()
    5.   at com.mysql.jdbc.Util.handleNewInstance()
    6.   at com.mysql.jdbc.Util.getInstance()
    7.   at com.mysql.jdbc.SQLError.createSQLException()
    8.   at com.mysql.jdbc.MysqlIO.checkErrorPacket()
    9.   at com.mysql.jdbc.MysqlIO.checkErrorPacket()
    10.   at com.mysql.jdbc.MysqlIO.sendCommand()
    11.   at com.mysql.jdbc.MysqlIO.sqlQueryDirect()
    12.   at com.mysql.jdbc.ConnectionImpl.execSQL()
    13.   at com.mysql.jdbc.PreparedStatement.executeInternal()
    14.   at com.mysql.jdbc.PreparedStatement.executeUpdate()
    15.   at com.mysql.jdbc.PreparedStatement.executeUpdate()
    16.   at com.mysql.jdbc.PreparedStatement.executeUpdate()
    17.   at org.hibernate.persister.entity.AbstractEntityPersister.delete()
  2. org.hibernate.exception.ConstraintViolationException
    1.   at org.hibernate.exception.SQLStateConverter.convert()
    2.   at org.hibernate.exception.JDBCExceptionHelper.convert()
    3.   at org.hibernate.persister.entity.AbstractEntityPersister.delete()
  1. RollbackException

    RemoteTestRunner.main()
    Crashes:3
    Projects:0
    Web Pages:3
    Error Reports:0
    First:2 weeks ago
    Last:2 weeks ago
    preview
  2. GitHub iconError when deleting a resource that is linked to a patron visit

    First:7 years ago
    Last:3 years ago
    Author:StevensBrian
MessageNumber of crashes
org.hibernate.exception.ConstraintViolationException: could not delete: [tr.com.stigma.mobilhm.db.entity.Doctor#10]3
Cannot delete or update a parent row: a foreign key constraint fails (`atreference2_5_3`.`patronvisitsresources`, CONSTRAINT `FKAAE25A2F53ACD5C3` FOREIGN KEY (`resourceId`) REFERENCES `resources` (`resourceId`))1
  1. com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException
    1.   at sun.reflect.NativeConstructorAccessorImpl.newInstance0()
    2.   at sun.reflect.NativeConstructorAccessorImpl.newInstance()
    3.   at sun.reflect.DelegatingConstructorAccessorImpl.newInstance()
    4.   at java.lang.reflect.Constructor.newInstance()
    5.   at com.mysql.jdbc.Util.handleNewInstance()
    6.   at com.mysql.jdbc.Util.getInstance()
    7.   at com.mysql.jdbc.SQLError.createSQLException()
    8.   at com.mysql.jdbc.MysqlIO.checkErrorPacket()
    9.   at com.mysql.jdbc.MysqlIO.checkErrorPacket()
    10.   at com.mysql.jdbc.MysqlIO.sendCommand()
    11.   at com.mysql.jdbc.MysqlIO.sqlQueryDirect()
    12.   at com.mysql.jdbc.ConnectionImpl.execSQL()
    13.   at com.mysql.jdbc.PreparedStatement.executeInternal()
    14.   at com.mysql.jdbc.PreparedStatement.executeUpdate()
    15.   at com.mysql.jdbc.PreparedStatement.executeUpdate()
    16.   at com.mysql.jdbc.PreparedStatement.executeUpdate()
    17.   at org.hibernate.persister.entity.AbstractEntityPersister.delete()
  2. org.hibernate.exception.ConstraintViolationException
    1.   at org.hibernate.exception.SQLStateConverter.convert()
    2.   at org.hibernate.exception.JDBCExceptionHelper.convert()
    3.   at org.hibernate.persister.entity.AbstractEntityPersister.delete()