Advertisement
Guest User

Untitled

a guest
May 9th, 2011
404
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 6.86 KB | None | 0 0
  1.  
  2. javax.persistence.PersistenceException: org.hibernate.exception.ConstraintViolationException: could not execute update query
  3.     at org.hibernate.ejb.AbstractEntityManagerImpl.throwPersistenceException(AbstractEntityManagerImpl.java:614)
  4.     at org.hibernate.ejb.QueryImpl.executeUpdate(QueryImpl.java:60)
  5.     at com.lequa.core.repository.impl.AbstractRepository.removeById(AbstractRepository.java:79)
  6.     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  7.     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  8.     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  9.     at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
  10.     at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
  11.     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
  12.     at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
  13.     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
  14.     at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
  15.     at $Proxy34.removeById(Unknown Source)
  16.     at com.lequa.dts.corporate.test.ApplicationManagerIntegrationTest.clearApplications(ApplicationManagerIntegrationTest.java:331)
  17.     at com.lequa.dts.corporate.test.ApplicationManagerIntegrationTest.getCategoriesCountTest(ApplicationManagerIntegrationTest.java:317)
  18.     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  19.     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  20.     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  21.     at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
  22.     at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
  23.     at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
  24.     at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
  25.     at org.springframework.test.context.junit4.statements.RunBeforeTestMethodCallbacks.evaluate(RunBeforeTestMethodCallbacks.java:74)
  26.     at org.springframework.test.context.junit4.statements.RunAfterTestMethodCallbacks.evaluate(RunAfterTestMethodCallbacks.java:82)
  27.     at org.springframework.test.context.junit4.statements.SpringRepeat.evaluate(SpringRepeat.java:72)
  28.     at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:240)
  29.     at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
  30.     at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
  31.     at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
  32.     at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
  33.     at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
  34.     at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
  35.     at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)
  36.     at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70)
  37.     at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
  38.     at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:180)
  39.     at org.junit.runner.JUnitCore.run(JUnitCore.java:157)
  40.     at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:97)
  41.     at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:192)
  42.     at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:60)
  43.     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  44.     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  45.     at com.intellij.rt.execution.application.AppMain.main(AppMain.java:115)
  46. Caused by: org.hibernate.exception.ConstraintViolationException: could not execute update query
  47.     at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:94)
  48.     at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:66)
  49.     at org.hibernate.hql.ast.exec.BasicExecutor.execute(BasicExecutor.java:110)
  50.     at org.hibernate.hql.ast.QueryTranslatorImpl.executeUpdate(QueryTranslatorImpl.java:421)
  51.     at org.hibernate.engine.query.HQLQueryPlan.performExecuteUpdate(HQLQueryPlan.java:283)
  52.     at org.hibernate.impl.SessionImpl.executeUpdate(SessionImpl.java:1169)
  53.     at org.hibernate.impl.QueryImpl.executeUpdate(QueryImpl.java:117)
  54.     at org.hibernate.ejb.QueryImpl.executeUpdate(QueryImpl.java:51)
  55.     ... 45 more
  56. Caused by: java.sql.SQLIntegrityConstraintViolationException: DELETE on table 'APPLICATIONENTITY' caused a violation of foreign key constraint 'FK109DF15D362F642' for key (32779).  The statement has been rolled back.
  57.     at org.apache.derby.impl.jdbc.SQLExceptionFactory40.getSQLException(Unknown Source)
  58.     at org.apache.derby.impl.jdbc.Util.generateCsSQLException(Unknown Source)
  59.     at org.apache.derby.impl.jdbc.TransactionResourceImpl.wrapInSQLException(Unknown Source)
  60.     at org.apache.derby.impl.jdbc.TransactionResourceImpl.handleException(Unknown Source)
  61.     at org.apache.derby.impl.jdbc.EmbedConnection.handleException(Unknown Source)
  62.     at org.apache.derby.impl.jdbc.ConnectionChild.handleException(Unknown Source)
  63.     at org.apache.derby.impl.jdbc.EmbedStatement.executeStatement(Unknown Source)
  64.     at org.apache.derby.impl.jdbc.EmbedPreparedStatement.executeStatement(Unknown Source)
  65.     at org.apache.derby.impl.jdbc.EmbedPreparedStatement.executeUpdate(Unknown Source)
  66.     at org.hibernate.hql.ast.exec.BasicExecutor.execute(BasicExecutor.java:101)
  67.     ... 50 more
  68. Caused by: java.sql.SQLException: DELETE on table 'APPLICATIONENTITY' caused a violation of foreign key constraint 'FK109DF15D362F642' for key (32779).  The statement has been rolled back.
  69.     at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown Source)
  70.     at org.apache.derby.impl.jdbc.SQLExceptionFactory40.wrapArgsForTransportAcrossDRDA(Unknown Source)
  71.     ... 60 more
  72. Caused by: ERROR 23503: DELETE on table 'APPLICATIONENTITY' caused a violation of foreign key constraint 'FK109DF15D362F642' for key (32779).  The statement has been rolled back.
  73.     at org.apache.derby.iapi.error.StandardException.newException(Unknown Source)
  74.     at org.apache.derby.impl.sql.execute.ReferencedKeyRIChecker.doCheck(Unknown Source)
  75.     at org.apache.derby.impl.sql.execute.RISetChecker.doPKCheck(Unknown Source)
  76.     at org.apache.derby.impl.sql.execute.DeleteResultSet.collectAffectedRows(Unknown Source)
  77.     at org.apache.derby.impl.sql.execute.DeleteResultSet.open(Unknown Source)
  78.     at org.apache.derby.impl.sql.GenericPreparedStatement.executeStmt(Unknown Source)
  79.     at org.apache.derby.impl.sql.GenericPreparedStatement.execute(Unknown Source)
  80.     ... 54 more
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement