Advertisement
geraldovictor

Untitled

Jan 12th, 2021
553
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.93 KB | None | 0 0
  1. javax.persistence.PersistenceException: org.hibernate.exception.ConstraintViolationException: could not execute statement
  2. at org.hibernate.jpa.spi.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1692)
  3. at org.hibernate.jpa.spi.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1602)
  4. at org.hibernate.jpa.spi.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1608)
  5. at org.hibernate.jpa.spi.AbstractEntityManagerImpl.flush(AbstractEntityManagerImpl.java:1303)
  6. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  7. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  8. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  9. at java.lang.reflect.Method.invoke(Method.java:498)
  10. at org.springframework.orm.jpa.SharedEntityManagerCreator$SharedEntityManagerInvocationHandler.invoke(SharedEntityManagerCreator.java:301)
  11. at com.sun.proxy.$Proxy156.flush(Unknown Source)
  12. at br.leg.senado.administrativo.gestaoorcamentaria.web.rest.ObrigacaoResourceIntTest.createEntity(ObrigacaoResourceIntTest.java:170)
  13. at br.leg.senado.administrativo.gestaoorcamentaria.web.rest.PeriodoResourceIntTest.createEntity(PeriodoResourceIntTest.java:115)
  14. at br.leg.senado.administrativo.gestaoorcamentaria.web.rest.AgrupadorPeriodoResourceIntTest.createEntity(AgrupadorPeriodoResourceIntTest.java:99)
  15. at br.leg.senado.administrativo.gestaoorcamentaria.web.rest.AgrupadorPeriodoResourceIntTest.initTest(AgrupadorPeriodoResourceIntTest.java:109)
  16. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  17. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  18. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  19. at java.lang.reflect.Method.invoke(Method.java:498)
  20. at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
  21. at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
  22. at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
  23. at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:24)
  24. at org.springframework.test.context.junit4.statements.RunBeforeTestMethodCallbacks.evaluate(RunBeforeTestMethodCallbacks.java:75)
  25. at org.springframework.test.context.junit4.statements.RunAfterTestMethodCallbacks.evaluate(RunAfterTestMethodCallbacks.java:86)
  26. at org.springframework.test.context.junit4.statements.SpringRepeat.evaluate(SpringRepeat.java:84)
  27. at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
  28. at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:252)
  29. at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:94)
  30. at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
  31. at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
  32. at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
  33. at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
  34. at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
  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:363)
  38. at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:191)
  39. at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:89)
  40. at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:41)
  41. at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:541)
  42. at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:763)
  43. at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:463)
  44. at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:209)
  45. Caused by: org.hibernate.exception.ConstraintViolationException: could not execute statement
  46. at org.hibernate.exception.internal.SQLStateConversionDelegate.convert(SQLStateConversionDelegate.java:112)
  47. at org.hibernate.exception.internal.StandardSQLExceptionConverter.convert(StandardSQLExceptionConverter.java:42)
  48. at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:109)
  49. at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:95)
  50. at org.hibernate.engine.jdbc.internal.ResultSetReturnImpl.executeUpdate(ResultSetReturnImpl.java:207)
  51. at org.hibernate.engine.jdbc.batch.internal.NonBatchingBatch.addToBatch(NonBatchingBatch.java:45)
  52. at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2949)
  53. at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:3449)
  54. at org.hibernate.action.internal.EntityInsertAction.execute(EntityInsertAction.java:89)
  55. at org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:582)
  56. at org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:456)
  57. at org.hibernate.event.internal.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:337)
  58. at org.hibernate.event.internal.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:39)
  59. at org.hibernate.internal.SessionImpl.flush(SessionImpl.java:1282)
  60. at org.hibernate.jpa.spi.AbstractEntityManagerImpl.flush(AbstractEntityManagerImpl.java:1300)
  61. ... 39 more
  62. Caused by: org.h2.jdbc.JdbcSQLException: Unique index or primary key violation: "UNQ_CODIGO_GESTAO_INDEX_3 ON PUBLIC.FAVORECIDO(CODIGO, GESTAO) VALUES ('AAAAAAAAAA', 'AAAAAAAAAB', 100101)"; SQL statement:
  63. insert into favorecido (bloqueio_id, codigo, gestao, nome, revisao_id, tipo_favorecido_id, id) values (?, ?, ?, ?, ?, ?, ?) [23505-196]
  64. at org.h2.message.DbException.getJdbcSQLException(DbException.java:345)
  65. at org.h2.message.DbException.get(DbException.java:179)
  66. at org.h2.message.DbException.get(DbException.java:155)
  67. at org.h2.index.BaseIndex.getDuplicateKeyException(BaseIndex.java:103)
  68. at org.h2.mvstore.db.MVSecondaryIndex.checkUnique(MVSecondaryIndex.java:231)
  69. at org.h2.mvstore.db.MVSecondaryIndex.add(MVSecondaryIndex.java:190)
  70. at org.h2.mvstore.db.MVTable.addRow(MVTable.java:705)
  71. at org.h2.command.dml.Insert.insertRows(Insert.java:156)
  72. at org.h2.command.dml.Insert.update(Insert.java:114)
  73. at org.h2.command.CommandContainer.update(CommandContainer.java:101)
  74. at org.h2.command.Command.executeUpdate(Command.java:260)
  75. at org.h2.jdbc.JdbcPreparedStatement.executeUpdateInternal(JdbcPreparedStatement.java:164)
  76. at org.h2.jdbc.JdbcPreparedStatement.executeUpdate(JdbcPreparedStatement.java:150)
  77. at org.hibernate.engine.jdbc.internal.ResultSetReturnImpl.executeUpdate(ResultSetReturnImpl.java:204)
  78. ... 49 more
  79.  
  80.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement