[jboss-user] [jBPM] - Re: java.sql.BatchUpdateException: ORA-00001: unique constraint (DB007.SYS_C0044325) violated

Mahi M do-not-reply at jboss.com
Thu Mar 1 01:13:11 EST 2012


Mahi M [https://community.jboss.org/people/jbpm_new] created the discussion

"Re: java.sql.BatchUpdateException: ORA-00001: unique constraint (DB007.SYS_C0044325) violated"

To view the discussion, visit: https://community.jboss.org/message/720774#720774

--------------------------------------------------------------
Hi Prashanth,

Please find the exact exception.  I confirmed  your reply. Actully I am getting this exception very rarely. I mean 1 in 10 process launchs.

I am able to launch the process successfully 9 times but one time i am getting the following exception. So i am forced to mark this exception as a high threat for my overall application.

If you have any idea on this Please do tell.




I am getting the below exception whenever i proceed with my application in JBPM 5.2.

Please do share some information to get out of it.







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

    at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:71)

    at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)

    at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:253)

    at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:266)

    at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:167)

    at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:298)

    at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27)

    at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1000)

    at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:338)

    at org.hibernate.ejb.AbstractEntityManagerImpl$1.beforeCompletion(AbstractEntityManagerImpl.java:504)

    at bitronix.tm.BitronixTransaction.fireBeforeCompletionEvent(BitronixTransaction.java:478)

    at bitronix.tm.BitronixTransaction.commit(BitronixTransaction.java:193)

    at bitronix.tm.BitronixTransactionManager.commit(BitronixTransactionManager.java:120)

    at org.drools.persistence.jta.JtaTransactionManager.commit(JtaTransactionManager.java:179)

    at org.drools.persistence.SingleSessionCommandService.execute(SingleSessionCommandService.java:348)

    at org.drools.command.impl.CommandBasedStatefulKnowledgeSession$1.completeWorkItem(CommandBasedStatefulKnowledgeSession.java:150)

    at com.jpmorgan.tss.dm.service.scheduler.common.UpdateIRCatgoryJob.completeWorkItem(UpdateIRCatgoryJob.java:155)

    at com.jpmorgan.tss.dm.service.scheduler.common.UpdateIRCatgoryJob.execute(UpdateIRCatgoryJob.java:78)

    at org.quartz.core.JobRunShell.run(JobRunShell.java:202)

    at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:525)

Caused by: java.sql.BatchUpdateException: ORA-00001: unique constraint (DM154.SYS_C0044325) violated



    at oracle.jdbc.driver.DatabaseError.throwBatchUpdateException(DatabaseError.java:498)

    at oracle.jdbc.driver.OraclePreparedStatement.executeBatch(OraclePreparedStatement.java:12432)

    at org.apache.tomcat.dbcp.dbcp.DelegatingStatement.executeBatch(DelegatingStatement.java:297)

    at org.apache.tomcat.dbcp.dbcp.DelegatingStatement.executeBatch(DelegatingStatement.java:297)

    at org.hibernate.jdbc.BatchingBatcher.doExecuteBatch(BatchingBatcher.java:48)

    at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:246)

    ... 17 more

Feb 23, 2012 6:42:21 PM org.drools.persistence.jta.JtaTransactionManager commit

WARNING: Unable to commit transaction

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

    at org.hibernate.ejb.AbstractEntityManagerImpl.throwPersistenceException(AbstractEntityManagerImpl.java:614)

    at org.hibernate.ejb.AbstractEntityManagerImpl$1.beforeCompletion(AbstractEntityManagerImpl.java:513)

    at bitronix.tm.BitronixTransaction.fireBeforeCompletionEvent(BitronixTransaction.java:478)

    at bitronix.tm.BitronixTransaction.commit(BitronixTransaction.java:193)

    at bitronix.tm.BitronixTransactionManager.commit(BitronixTransactionManager.java:120)

    at org.drools.persistence.jta.JtaTransactionManager.commit(JtaTransactionManager.java:179)

    at org.drools.persistence.SingleSessionCommandService.execute(SingleSessionCommandService.java:348)

    at org.drools.command.impl.CommandBasedStatefulKnowledgeSession$1.completeWorkItem(CommandBasedStatefulKnowledgeSession.java:150)

    at com.jpmorgan.tss.dm.service.scheduler.common.UpdateIRCatgoryJob.completeWorkItem(UpdateIRCatgoryJob.java:155)

    at com.jpmorgan.tss.dm.service.scheduler.common.UpdateIRCatgoryJob.execute(UpdateIRCatgoryJob.java:78)

    at org.quartz.core.JobRunShell.run(JobRunShell.java:202)

    at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:525)

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

    at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:71)

    at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)

    at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:253)

    at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:266)

    at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:167)

    at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:298)

    at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27)

    at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1000)

    at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:338)

    at org.hibernate.ejb.AbstractEntityManagerImpl$1.beforeCompletion(AbstractEntityManagerImpl.java:504)

    ... 10 more

Caused by: java.sql.BatchUpdateException: ORA-00001: unique constraint (DM154.SYS_C0044325) violated



    at oracle.jdbc.driver.DatabaseError.throwBatchUpdateException(DatabaseError.java:498)

    at oracle.jdbc.driver.OraclePreparedStatement.executeBatch(OraclePreparedStatement.java:12432)

    at org.apache.tomcat.dbcp.dbcp.DelegatingStatement.executeBatch(DelegatingStatement.java:297)

    at org.apache.tomcat.dbcp.dbcp.DelegatingStatement.executeBatch(DelegatingStatement.java:297)

    at org.hibernate.jdbc.BatchingBatcher.doExecuteBatch(BatchingBatcher.java:48)

    at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:246)

    ... 17 more

Feb 23, 2012 6:42:21 PM org.drools.persistence.SingleSessionCommandService rollbackTransaction

SEVERE: Could not commit session

java.lang.RuntimeException: Unable to commit transaction

    at org.drools.persistence.jta.JtaTransactionManager.commit(JtaTransactionManager.java:182)

    at org.drools.persistence.SingleSessionCommandService.execute(SingleSessionCommandService.java:348)

    at org.drools.command.impl.CommandBasedStatefulKnowledgeSession$1.completeWorkItem(CommandBasedStatefulKnowledgeSession.java:150)

    at com.jpmorgan.tss.dm.service.scheduler.common.UpdateIRCatgoryJob.completeWorkItem(UpdateIRCatgoryJob.java:155)

    at com.jpmorgan.tss.dm.service.scheduler.common.UpdateIRCatgoryJob.execute(UpdateIRCatgoryJob.java:78)

    at org.quartz.core.JobRunShell.run(JobRunShell.java:202)

    at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:525)

Caused by: javax.persistence.PersistenceException: org.hibernate.exception.ConstraintViolationException: Could not execute JDBC batch update

    at org.hibernate.ejb.AbstractEntityManagerImpl.throwPersistenceException(AbstractEntityManagerImpl.java:614)

    at org.hibernate.ejb.AbstractEntityManagerImpl$1.beforeCompletion(AbstractEntityManagerImpl.java:513)

    at bitronix.tm.BitronixTransaction.fireBeforeCompletionEvent(BitronixTransaction.java:478)

    at bitronix.tm.BitronixTransaction.commit(BitronixTransaction.java:193)

    at bitronix.tm.BitronixTransactionManager.commit(BitronixTransactionManager.java:120)

    at org.drools.persistence.jta.JtaTransactionManager.commit(JtaTransactionManager.java:179)

    ... 6 more

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

    at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:71)

    at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)

    at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:253)

    at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:266)

    at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:167)

    at org.hiber





Thanks
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/720774#720774]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120301/69bf4c93/attachment-0001.html 


More information about the jboss-user mailing list