org.hibernate.exception.ConstraintViolationException: could not delete: [de.fittransporte.fitdb.reference.Country#10]

Spring JIRA | Alexander Heusingfeld | 8 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Using org.hibernate.dialect.MySQL5InnoDBDialect in persistence.xml and referenced entities causes integration tests to fail because of foreign key constraint violation. The following exception is an example: SQL Error: 1451, SQLState: 23000 Cannot delete or update a parent row: a foreign key constraint fails (`fit_reporting`.`abstract_person`, CONSTRAINT `FKD0E39E12586E161C` FOREIGN KEY ( `country`) REFERENCES `abstract_system_key` (`id`)) Could not synchronize database state with session org.hibernate.exception.ConstraintViolationException: could not delete: [de.fittransporte.fitdb.reference.Country#10] at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:71) at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43) at org.hibernate.persister.entity.AbstractEntityPersister.delete(AbstractEntityPersister.java:2546) at org.hibernate.persister.entity.AbstractEntityPersister.delete(AbstractEntityPersister.java:2702) at org.hibernate.action.EntityDeleteAction.execute(EntityDeleteAction.java:77) at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:279) at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:263) at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:172) at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:298) at org.hibernate.event.def.DefaultAutoFlushEventListener.onAutoFlush(DefaultAutoFlushEventListener.java:41) at org.hibernate.impl.SessionImpl.autoFlushIfRequired(SessionImpl.java:969) at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1114) at org.hibernate.impl.QueryImpl.list(QueryImpl.java:79) at org.hibernate.ejb.QueryImpl.getSingleResult(QueryImpl.java:81) at de.fittransporte.fitdb.reference.DefectCauser_Roo_Entity.ajc$interMethod$de_fittransporte_fitdb_reference_DefectCauser_Roo_Entity$de_fittransporte_fitdb_reference_DefectCauser$countDefectCausers(DefectCauser_Roo_Entity.aj:8) at de.fittransporte.fitdb.reference.DefectCauser.countDefectCausers(DefectCauser.java:1) at de.fittransporte.fitdb.reference.DefectCauser_Roo_Entity.ajc$interMethodDispatch1$de_fittransporte_fitdb_reference_DefectCauser_Roo_Entity$de_fittransporte_fitdb_reference_DefectCauser$countDefectCausers(DefectCauser_Roo_Entity.aj) at de.fittransporte.fitdb.reference.DefectCauserIntegrationTest_Roo_IntegrationTest.ajc$interMethod$de_fittransporte_fitdb_reference_DefectCauserIntegrationTest_Roo_IntegrationTest$de_fittransporte_fitdb_reference_DefectCauserIntegrationTest$testFindDefectCauserEntries(DefectCauserIntegrationTest_Roo_IntegrationTest.aj:42) at de.fittransporte.fitdb.reference.DefectCauserIntegrationTest.testFindDefectCauserEntries(DefectCauserIntegrationTest.java:1) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28) at org.springframework.test.context.junit4.statements.RunSpringTestContextBefores.evaluate(RunSpringTestContextBefores.java:74) at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31) at org.springframework.test.context.junit4.statements.RunSpringTestContextAfters.evaluate(RunSpringTestContextAfters.java:82) at org.springframework.test.context.junit4.statements.SpringRepeat.evaluate(SpringRepeat.java:72) at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:210) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:46) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:180) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:41) at org.junit.runners.ParentRunner$1.evaluate(ParentRunner.java:173) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28) at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31) at org.junit.runners.ParentRunner.run(ParentRunner.java:220) at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:191) at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127) at org.apache.maven.surefire.Surefire.run(Surefire.java:177) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345) at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009) Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Cannot delete or update a parent row: a foreign key constraint fails (`fit_reporting`.`abstract_person`, CONSTRAINT `FKD0E39E12586E161C` FOREIGN KEY (`country`) REFERENCES `abstract_system_key` (`id`)) at sun.reflect.GeneratedConstructorAccessor64.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at com.mysql.jdbc.Util.handleNewInstance(Util.java:406) at com.mysql.jdbc.Util.getInstance(Util.java:381) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1015) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:956) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3491) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3423) at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1936) at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2060) at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2542) at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1734) at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2019) at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1937) at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1922) at org.hibernate.persister.entity.AbstractEntityPersister.delete(AbstractEntityPersister.java:2528) ... 48 more Tests run: 12, Failures: 4, Errors: 7, Skipped: 0, Time elapsed: 1.625 sec <<< FAILURE! persistence.xml: <?xml version="1.0" encoding="UTF-8" standalone="no"?> <persistence xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.0" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"> <persistence-unit name="persistenceUnit" transaction-type="RESOURCE_LOCAL"> <provider>org.hibernate.ejb.HibernatePersistence</provider> <properties> <property name="hibernate.dialect" value="org.hibernate.dialect.MySQL5InnoDBDialect"/> <property name="hibernate.hbm2ddl.auto" value="update"/> <property name="hibernate.ejb.naming_strategy" value="org.hibernate.cfg.ImprovedNamingStrategy"/> <property name="hibernate.connection.url" value="jdbc:mysql://localhost:3306/fit_reporting?autoReconnect=true&amp;useUnicode=true&amp;characterEncoding=UTF-8&amp;connectionCollation=utf8_general_ci&amp;characterSetResults=utf8" /> </properties> </persistence-unit> </persistence> example_script.roo: // the following is an excerpt of the whole script I ran before the above error but it should help to reproduce the problem create project -topLevelPackage de.fittransporte.fitdb install jpa -provider HIBERNATE -database MYSQL new persistent class jpa -name ~.reference.AbstractSystemKey -abstract new persistent class jpa -name ~.reference.Country -extends ~.reference.AbstractSystemKey -testAutomatically new persistent class jpa -name ~.domain.Customer -testAutomatically add field string -class ~.reference.AbstractSystemKey -fieldName name -notNull -sizeMax 30 add field string -class ~.reference.AbstractSystemKey -fieldName tooltip -sizeMax 255 add field number -class ~.reference.AbstractSystemKey -fieldName ordering -type java.lang.Integer -min 1 add field string -class ~.domain.Customer -fieldName description -notNull -sizeMax 30 add field string -class ~.domain.Customer -fieldName street -notNull -sizeMin 2 -sizeMax 50 add field string -class ~.domain.Customer -fieldName houseNumber -notNull -sizeMin 1 -sizeMax 10 add field string -class ~.domain.Customer -fieldName postalCode -notNull -sizeMin 5 -sizeMax 10 add field string -class ~.domain.Customer -fieldName city -notNull -sizeMax 30 add field reference jpa -class ~.domain.Customer -fieldName country -type ~.reference.Country new integration test new controller automatic -name ~.web.CountryController -formBackingObject ~.reference.Country new controller automatic -name ~.web.CustomerController -formBackingObject ~.domain.Customer new selenium test -controller ~.web.CountryController new selenium test -controller ~.web.CustomerController // replace generated "persistence.xml" with the one given above // execute "mvn test" Current workaround is to run e.g. "mvn package" with the switch "-Dmaven.test.skip=true". Greets, Alex

    Spring JIRA | 8 years ago | Alexander Heusingfeld
    org.hibernate.exception.ConstraintViolationException: could not delete: [de.fittransporte.fitdb.reference.Country#10]
  2. 0

    Using org.hibernate.dialect.MySQL5InnoDBDialect in persistence.xml and referenced entities causes integration tests to fail because of foreign key constraint violation. The following exception is an example: SQL Error: 1451, SQLState: 23000 Cannot delete or update a parent row: a foreign key constraint fails (`fit_reporting`.`abstract_person`, CONSTRAINT `FKD0E39E12586E161C` FOREIGN KEY ( `country`) REFERENCES `abstract_system_key` (`id`)) Could not synchronize database state with session org.hibernate.exception.ConstraintViolationException: could not delete: [de.fittransporte.fitdb.reference.Country#10] at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:71) at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43) at org.hibernate.persister.entity.AbstractEntityPersister.delete(AbstractEntityPersister.java:2546) at org.hibernate.persister.entity.AbstractEntityPersister.delete(AbstractEntityPersister.java:2702) at org.hibernate.action.EntityDeleteAction.execute(EntityDeleteAction.java:77) at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:279) at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:263) at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:172) at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:298) at org.hibernate.event.def.DefaultAutoFlushEventListener.onAutoFlush(DefaultAutoFlushEventListener.java:41) at org.hibernate.impl.SessionImpl.autoFlushIfRequired(SessionImpl.java:969) at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1114) at org.hibernate.impl.QueryImpl.list(QueryImpl.java:79) at org.hibernate.ejb.QueryImpl.getSingleResult(QueryImpl.java:81) at de.fittransporte.fitdb.reference.DefectCauser_Roo_Entity.ajc$interMethod$de_fittransporte_fitdb_reference_DefectCauser_Roo_Entity$de_fittransporte_fitdb_reference_DefectCauser$countDefectCausers(DefectCauser_Roo_Entity.aj:8) at de.fittransporte.fitdb.reference.DefectCauser.countDefectCausers(DefectCauser.java:1) at de.fittransporte.fitdb.reference.DefectCauser_Roo_Entity.ajc$interMethodDispatch1$de_fittransporte_fitdb_reference_DefectCauser_Roo_Entity$de_fittransporte_fitdb_reference_DefectCauser$countDefectCausers(DefectCauser_Roo_Entity.aj) at de.fittransporte.fitdb.reference.DefectCauserIntegrationTest_Roo_IntegrationTest.ajc$interMethod$de_fittransporte_fitdb_reference_DefectCauserIntegrationTest_Roo_IntegrationTest$de_fittransporte_fitdb_reference_DefectCauserIntegrationTest$testFindDefectCauserEntries(DefectCauserIntegrationTest_Roo_IntegrationTest.aj:42) at de.fittransporte.fitdb.reference.DefectCauserIntegrationTest.testFindDefectCauserEntries(DefectCauserIntegrationTest.java:1) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28) at org.springframework.test.context.junit4.statements.RunSpringTestContextBefores.evaluate(RunSpringTestContextBefores.java:74) at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31) at org.springframework.test.context.junit4.statements.RunSpringTestContextAfters.evaluate(RunSpringTestContextAfters.java:82) at org.springframework.test.context.junit4.statements.SpringRepeat.evaluate(SpringRepeat.java:72) at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:210) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:46) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:180) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:41) at org.junit.runners.ParentRunner$1.evaluate(ParentRunner.java:173) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28) at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31) at org.junit.runners.ParentRunner.run(ParentRunner.java:220) at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:191) at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127) at org.apache.maven.surefire.Surefire.run(Surefire.java:177) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345) at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009) Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Cannot delete or update a parent row: a foreign key constraint fails (`fit_reporting`.`abstract_person`, CONSTRAINT `FKD0E39E12586E161C` FOREIGN KEY (`country`) REFERENCES `abstract_system_key` (`id`)) at sun.reflect.GeneratedConstructorAccessor64.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at com.mysql.jdbc.Util.handleNewInstance(Util.java:406) at com.mysql.jdbc.Util.getInstance(Util.java:381) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1015) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:956) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3491) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3423) at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1936) at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2060) at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2542) at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1734) at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2019) at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1937) at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1922) at org.hibernate.persister.entity.AbstractEntityPersister.delete(AbstractEntityPersister.java:2528) ... 48 more Tests run: 12, Failures: 4, Errors: 7, Skipped: 0, Time elapsed: 1.625 sec <<< FAILURE! persistence.xml: <?xml version="1.0" encoding="UTF-8" standalone="no"?> <persistence xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.0" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"> <persistence-unit name="persistenceUnit" transaction-type="RESOURCE_LOCAL"> <provider>org.hibernate.ejb.HibernatePersistence</provider> <properties> <property name="hibernate.dialect" value="org.hibernate.dialect.MySQL5InnoDBDialect"/> <property name="hibernate.hbm2ddl.auto" value="update"/> <property name="hibernate.ejb.naming_strategy" value="org.hibernate.cfg.ImprovedNamingStrategy"/> <property name="hibernate.connection.url" value="jdbc:mysql://localhost:3306/fit_reporting?autoReconnect=true&amp;useUnicode=true&amp;characterEncoding=UTF-8&amp;connectionCollation=utf8_general_ci&amp;characterSetResults=utf8" /> </properties> </persistence-unit> </persistence> example_script.roo: // the following is an excerpt of the whole script I ran before the above error but it should help to reproduce the problem create project -topLevelPackage de.fittransporte.fitdb install jpa -provider HIBERNATE -database MYSQL new persistent class jpa -name ~.reference.AbstractSystemKey -abstract new persistent class jpa -name ~.reference.Country -extends ~.reference.AbstractSystemKey -testAutomatically new persistent class jpa -name ~.domain.Customer -testAutomatically add field string -class ~.reference.AbstractSystemKey -fieldName name -notNull -sizeMax 30 add field string -class ~.reference.AbstractSystemKey -fieldName tooltip -sizeMax 255 add field number -class ~.reference.AbstractSystemKey -fieldName ordering -type java.lang.Integer -min 1 add field string -class ~.domain.Customer -fieldName description -notNull -sizeMax 30 add field string -class ~.domain.Customer -fieldName street -notNull -sizeMin 2 -sizeMax 50 add field string -class ~.domain.Customer -fieldName houseNumber -notNull -sizeMin 1 -sizeMax 10 add field string -class ~.domain.Customer -fieldName postalCode -notNull -sizeMin 5 -sizeMax 10 add field string -class ~.domain.Customer -fieldName city -notNull -sizeMax 30 add field reference jpa -class ~.domain.Customer -fieldName country -type ~.reference.Country new integration test new controller automatic -name ~.web.CountryController -formBackingObject ~.reference.Country new controller automatic -name ~.web.CustomerController -formBackingObject ~.domain.Customer new selenium test -controller ~.web.CountryController new selenium test -controller ~.web.CustomerController // replace generated "persistence.xml" with the one given above // execute "mvn test" Current workaround is to run e.g. "mvn package" with the switch "-Dmaven.test.skip=true". Greets, Alex

    Spring JIRA | 8 years ago | Alexander Heusingfeld
    org.hibernate.exception.ConstraintViolationException: could not delete: [de.fittransporte.fitdb.reference.Country#10]
  3. 0

    Error when deleting a resource that is linked to a patron visit

    GitHub | 5 years ago | StevensBrian
    org.hibernate.exception.ConstraintViolationException: could not delete: [org.archiviststoolkit.model.Resources#2]
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Hibernate Community • View topic - Simple But Crazy Cascade Problem

    hibernate.org | 2 years ago
    javax.persistence.RollbackException: Error while committing the transaction
  6. 0

    Simple But Crazy Cascade Problem (Object Relational Mapping forum at Coderanch)

    coderanch.com | 8 months ago
    javax.persistence.RollbackException: Error while committing the transaction

  1. DoktorDoener666 7 times, last 3 weeks ago
  2. mauritius 1 times, last 2 months ago
  3. dafman 6 times, last 5 months ago
  4. davidvanlaatum 6 times, last 5 months ago
  5. kuldeep 8 times, last 5 months ago
9 more registered users
45 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException

    Cannot delete or update a parent row: a foreign key constraint fails (`fit_reporting`.`abstract_person`, CONSTRAINT `FKD0E39E12586E161C` FOREIGN KEY (`country`) REFERENCES `abstract_system_key` (`id`))

    at sun.reflect.GeneratedConstructorAccessor64.newInstance()
  2. Java RT
    Constructor.newInstance
    1. sun.reflect.GeneratedConstructorAccessor64.newInstance(Unknown Source)
    2. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    3. java.lang.reflect.Constructor.newInstance(Constructor.java:513)
    3 frames
  3. MySQL jdbc
    PreparedStatement.executeUpdate
    1. com.mysql.jdbc.Util.handleNewInstance(Util.java:406)
    2. com.mysql.jdbc.Util.getInstance(Util.java:381)
    3. com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1015)
    4. com.mysql.jdbc.SQLError.createSQLException(SQLError.java:956)
    5. com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3491)
    6. com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3423)
    7. com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1936)
    8. com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2060)
    9. com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2542)
    10. com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1734)
    11. com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2019)
    12. com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1937)
    13. com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1922)
    13 frames
  4. Hibernate
    AbstractEntityPersister.delete
    1. org.hibernate.persister.entity.AbstractEntityPersister.delete(AbstractEntityPersister.java:2528)
    2. org.hibernate.persister.entity.AbstractEntityPersister.delete(AbstractEntityPersister.java:2702)
    2 frames
  5. Hibernate
    EntityDeleteAction.execute
    1. org.hibernate.action.EntityDeleteAction.execute(EntityDeleteAction.java:77)
    1 frame
  6. Hibernate
    ActionQueue.executeActions
    1. org.hibernate.engine.ActionQueue.execute(ActionQueue.java:279)
    2. org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:263)
    3. org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:172)
    3 frames
  7. Hibernate
    QueryImpl.list
    1. org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:298)
    2. org.hibernate.event.def.DefaultAutoFlushEventListener.onAutoFlush(DefaultAutoFlushEventListener.java:41)
    3. org.hibernate.impl.SessionImpl.autoFlushIfRequired(SessionImpl.java:969)
    4. org.hibernate.impl.SessionImpl.list(SessionImpl.java:1114)
    5. org.hibernate.impl.QueryImpl.list(QueryImpl.java:79)
    5 frames
  8. Hibernate EJB
    QueryImpl.getSingleResult
    1. org.hibernate.ejb.QueryImpl.getSingleResult(QueryImpl.java:81)
    1 frame
  9. de.fittransporte.fitdb
    DefectCauserIntegrationTest.testFindDefectCauserEntries
    1. de.fittransporte.fitdb.reference.DefectCauser_Roo_Entity.ajc$interMethod$de_fittransporte_fitdb_reference_DefectCauser_Roo_Entity$de_fittransporte_fitdb_reference_DefectCauser$countDefectCausers(DefectCauser_Roo_Entity.aj:8)
    2. de.fittransporte.fitdb.reference.DefectCauser.countDefectCausers(DefectCauser.java:1)
    3. de.fittransporte.fitdb.reference.DefectCauser_Roo_Entity.ajc$interMethodDispatch1$de_fittransporte_fitdb_reference_DefectCauser_Roo_Entity$de_fittransporte_fitdb_reference_DefectCauser$countDefectCausers(DefectCauser_Roo_Entity.aj)
    4. de.fittransporte.fitdb.reference.DefectCauserIntegrationTest_Roo_IntegrationTest.ajc$interMethod$de_fittransporte_fitdb_reference_DefectCauserIntegrationTest_Roo_IntegrationTest$de_fittransporte_fitdb_reference_DefectCauserIntegrationTest$testFindDefectCauserEntries(DefectCauserIntegrationTest_Roo_IntegrationTest.aj:42)
    5. de.fittransporte.fitdb.reference.DefectCauserIntegrationTest.testFindDefectCauserEntries(DefectCauserIntegrationTest.java:1)
    5 frames
  10. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    4. java.lang.reflect.Method.invoke(Method.java:597)
    4 frames
  11. JUnit
    RunBefores.evaluate
    1. org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
    2. org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
    3. org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
    4. org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
    5. org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
    5 frames
  12. Spring TestContext
    RunSpringTestContextBefores.evaluate
    1. org.springframework.test.context.junit4.statements.RunSpringTestContextBefores.evaluate(RunSpringTestContextBefores.java:74)
    1 frame
  13. JUnit
    RunAfters.evaluate
    1. org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
    1 frame
  14. Spring TestContext
    SpringJUnit4ClassRunner.runChild
    1. org.springframework.test.context.junit4.statements.RunSpringTestContextAfters.evaluate(RunSpringTestContextAfters.java:82)
    2. org.springframework.test.context.junit4.statements.SpringRepeat.evaluate(SpringRepeat.java:72)
    3. org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:210)
    3 frames
  15. JUnit
    ParentRunner.run
    1. org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:46)
    2. org.junit.runners.ParentRunner.runChildren(ParentRunner.java:180)
    3. org.junit.runners.ParentRunner.access$000(ParentRunner.java:41)
    4. org.junit.runners.ParentRunner$1.evaluate(ParentRunner.java:173)
    5. org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
    6. org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
    7. org.junit.runners.ParentRunner.run(ParentRunner.java:220)
    7 frames
  16. Spring TestContext
    SpringJUnit4ClassRunner.run
    1. org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:191)
    1 frame
  17. JUnit4 Provider
    JUnit4TestSet.execute
    1. org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
    1 frame
  18. SureFire
    Surefire.run
    1. org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
    2. org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
    3. org.apache.maven.surefire.Surefire.run(Surefire.java:177)
    3 frames
  19. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    4. java.lang.reflect.Method.invoke(Method.java:597)
    4 frames
  20. SureFire
    SurefireBooter.main
    1. org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345)
    2. org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)
    2 frames