org.hibernate.exception.ConstraintViolationException: Could not execute JDBC batch update

redhat.com | 6 months 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

    Hibernate throwing unique constriant exception

    Stack Overflow | 2 years ago | Amit
    org.hibernate.exception.ConstraintViolationException: could not insert: [com.bu.app.bha.dataaccess.dataobject.managereference.OccupationClassificationDO]
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    remembrants: Hibernate: ERROR [org.hibernate.event.def.AbstractFlushingEventListener] Could not synchronize database state with session

    blogspot.com | 2 years ago
    javax.persistence.PersistenceException: org.hibernate.exception.ConstraintViolationException: Could not execute JDBC batch update
  4. 0

    Hibernate: Could not execute Batch Update

    Stack Overflow | 2 years ago
    java.sql.BatchUpdateException: ORA-01747: invalid user.table.column, table.column, or column specification
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. java.sql.BatchUpdateException

    ORA-02292: integrity constraint (RHQ.SYS_C0018352) violated - child record found

    at oracle.jdbc.driver.OraclePreparedStatement.executeBatch()
  2. Oracle jdbc
    OracleStatementWrapper.executeBatch
    1. oracle.jdbc.driver.OraclePreparedStatement.executeBatch(OraclePreparedStatement.java:10055)
    2. oracle.jdbc.driver.OracleStatementWrapper.executeBatch(OracleStatementWrapper.java:213)
    2 frames
  3. JBoss Application Server Connector
    WrappedStatement.executeBatch
    1. org.jboss.resource.adapter.jdbc.CachedPreparedStatement.executeBatch(CachedPreparedStatement.java:476)
    2. org.jboss.resource.adapter.jdbc.WrappedStatement.executeBatch(WrappedStatement.java:774)
    2 frames
  4. Hibernate
    AbstractEntityPersister.delete
    1. org.hibernate.jdbc.BatchingBatcher.doExecuteBatch(BatchingBatcher.java:48)
    2. org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:247)
    3. org.hibernate.jdbc.AbstractBatcher.prepareStatement(AbstractBatcher.java:93)
    4. org.hibernate.jdbc.AbstractBatcher.prepareStatement(AbstractBatcher.java:88)
    5. org.hibernate.jdbc.AbstractBatcher.prepareBatchStatement(AbstractBatcher.java:223)
    6. org.hibernate.persister.entity.AbstractEntityPersister.delete(AbstractEntityPersister.java:2484)
    7. org.hibernate.persister.entity.AbstractEntityPersister.delete(AbstractEntityPersister.java:2702)
    7 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:250)
    2. org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:234)
    3. org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:146)
    3 frames
  7. Hibernate
    SessionImpl.managedFlush
    1. org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:298)
    2. org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27)
    3. org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1000)
    4. org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:338)
    4 frames
  8. Hibernate EJB
    AbstractEntityManagerImpl$1.beforeCompletion
    1. org.hibernate.ejb.AbstractEntityManagerImpl$1.beforeCompletion(AbstractEntityManagerImpl.java:515)
    1 frame
  9. JBossTS jbossjta
    BaseTransaction.commit
    1. com.arjuna.ats.internal.jta.resources.arjunacore.SynchronizationImple.beforeCompletion(SynchronizationImple.java:114)
    2. com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.beforeCompletion(TwoPhaseCoordinator.java:247)
    3. com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.end(TwoPhaseCoordinator.java:86)
    4. com.arjuna.ats.arjuna.AtomicAction.commit(AtomicAction.java:177)
    5. com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.commitAndDisassociate(TransactionImple.java:1389)
    6. com.arjuna.ats.internal.jta.transaction.arjunacore.BaseTransaction.commit(BaseTransaction.java:135)
    6 frames
  10. Narayana: ArjunaJTS integration
    BaseTransactionManagerDelegate.commit
    1. com.arjuna.ats.jbossatx.BaseTransactionManagerDelegate.commit(BaseTransactionManagerDelegate.java:87)
    1 frame
  11. org.jboss.aspects
    TxInterceptor$RequiresNew.invoke
    1. org.jboss.aspects.tx.TxPolicy.endTransaction(TxPolicy.java:175)
    2. org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:87)
    3. org.jboss.aspects.tx.TxInterceptor$RequiresNew.invoke(TxInterceptor.java:262)
    3 frames
  12. org.jboss.aop
    MethodInvocation.invokeNext
    1. org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
    1 frame
  13. org.jboss.aspects
    TxPropagationInterceptor.invoke
    1. org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:95)
    1 frame
  14. org.jboss.aop
    MethodInvocation.invokeNext
    1. org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
    1 frame
  15. org.jboss.ejb3
    StatelessInstanceInterceptor.invoke
    1. org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:62)
    1 frame
  16. org.jboss.aop
    MethodInvocation.invokeNext
    1. org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
    1 frame
  17. org.jboss.aspects
    AuthenticationInterceptor.invoke
    1. org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:77)
    1 frame
  18. org.jboss.ejb3
    Ejb3AuthenticationInterceptor.invoke
    1. org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:110)
    1 frame
  19. org.jboss.aop
    MethodInvocation.invokeNext
    1. org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
    1 frame
  20. org.jboss.ejb3
    ENCPropagationInterceptor.invoke
    1. org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:46)
    1 frame
  21. org.jboss.aop
    MethodInvocation.invokeNext
    1. org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
    1 frame
  22. org.jboss.ejb3
    AsynchronousInterceptor.invoke
    1. org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
    1 frame
  23. org.jboss.aop
    MethodInvocation.invokeNext
    1. org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
    1 frame
  24. org.jboss.ejb3
    StatelessLocalProxy.invoke
    1. org.jboss.ejb3.stateless.StatelessContainer.localInvoke(StatelessContainer.java:240)
    2. org.jboss.ejb3.stateless.StatelessContainer.localInvoke(StatelessContainer.java:210)
    3. org.jboss.ejb3.stateless.StatelessLocalProxy.invoke(StatelessLocalProxy.java:84)
    3 frames
  25. Unknown
    $Proxy319.uninventoryResourceAsyncWork
    1. $Proxy319.uninventoryResourceAsyncWork(Unknown Source)
    1 frame
  26. org.rhq.enterprise
    AbstractStatefulJob.execute
    1. org.rhq.enterprise.server.scheduler.jobs.AsyncResourceDeleteJob.uninventoryResource(AsyncResourceDeleteJob.java:96)
    2. org.rhq.enterprise.server.scheduler.jobs.AsyncResourceDeleteJob.executeJobCode(AsyncResourceDeleteJob.java:62)
    3. org.rhq.enterprise.server.scheduler.jobs.AbstractStatefulJob.execute(AbstractStatefulJob.java:48)
    3 frames
  27. quartz
    SimpleThreadPool$WorkerThread.run
    1. org.quartz.core.JobRunShell.run(JobRunShell.java:202)
    2. org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:525)
    2 frames