[jboss-user] [jBPM] - JBPM 4.3: Is it possible to leave current state on timer listener?
Nugroho Saputro
do-not-reply at jboss.com
Tue Apr 13 12:34:34 EDT 2010
Nugroho Saputro [http://community.jboss.org/people/nsaputro] replied to the discussion
"JBPM 4.3: Is it possible to leave current state on timer listener?"
To view the discussion, visit: http://community.jboss.org/message/537232#537232
--------------------------------------------------------------
Hi Maciej,
Thank you for your suggestion.Unfortunately I get another exception when timer on re-check transition is executed by jobexecutor:
http://community.jboss.org/servlet/JiveServlet/showImage/2543/simple_java.png http://community.jboss.org/servlet/JiveServlet/downloadImage/2543/450-293/simple_java.png
23:22:03,041 SEV | [JobParcel] exception in job block
org.springframework.dao.DataIntegrityViolationException: could not update:
[org.jbpm.pvm.internal.model.ExecutionImpl#17]; nested exception is org.hibernate.exception.ConstraintViolationException:
could not update: [org.jbpm.pvm.internal.model.ExecutionImpl#17]
at org.springframework.orm.hibernate3.SessionFactoryUtils.convertHibernateAccessException(SessionFactoryUtils.java:636)
at org.springframework.orm.hibernate3.HibernateTransactionManager.convertHibernateAccessException(HibernateTransactionManager.java:789)
at org.springframework.orm.hibernate3.HibernateTransactionManager.doCommit(HibernateTransactionManager.java:663)
at org.springframework.transaction.support.AbstractPlatformTransactionManager.processCommit(AbstractPlatformTransactionManager.java:732)
at org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:701)
at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:140)
at org.jbpm.pvm.internal.tx.SpringTransactionInterceptor.execute(SpringTransactionInterceptor.java:55)
at org.jbpm.pvm.internal.svc.EnvironmentInterceptor.executeInNewEnvironment(EnvironmentInterceptor.java:53)
at org.jbpm.pvm.internal.svc.EnvironmentInterceptor.execute(EnvironmentInterceptor.java:40)
at org.jbpm.pvm.internal.svc.RetryInterceptor.execute(RetryInterceptor.java:55)
at org.jbpm.pvm.internal.jobexecutor.JobParcel.run(JobParcel.java:48)
...
Caused by: org.hibernate.exception.ConstraintViolationException: could not update: [org.jbpm.pvm.internal.model.ExecutionImpl#17]
at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:94)
at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:66)
at org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2453)
at org.hibernate.persister.entity.AbstractEntityPersister.updateOrInsert(AbstractEntityPersister.java:2335)
at org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2635)
at org.hibernate.action.EntityUpdateAction.execute(EntityUpdateAction.java:115)
at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:279)
....
Caused by: java.sql.SQLException: Violation of unique constraint $: duplicate value(s) for column(s) $: SYS_CT_50 in statement
[update JBPM4_EXECUTION set DBVERSION_=?, ACTIVITYNAME_=?, PROCDEFID_=?, HASVARS_=?, NAME_=?, KEY_=?, ID_=?,
STATE_=?, SUSPHISTSTATE_=?, PRIORITY_=?, HISACTINST_=?, PARENT_=?, INSTANCE_=?, SUPEREXEC_=?, SUBPROCINST_=?
where DBID_=? and DBVERSION_=?]
at org.hsqldb.jdbc.Util.throwError(Unknown Source)
at org.hsqldb.jdbc.jdbcPreparedStatement.executeUpdate(Unknown Source)
at org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2435)
... 26 more
Do you have any idea why I get this exception?
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/537232#537232]
Start a new discussion in jBPM at Community
[http://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/20100413/33878eea/attachment.html
More information about the jboss-user
mailing list