[jboss-user] [JBoss jBPM] - bpel wait for

pkovgan do-not-reply at jboss.com
Thu Jan 25 01:46:05 EST 2007


  I try to use <wait for="'PT15S'"/>, but it does not work!

  i have following steps:
   
  wait
  invoke
  wait
  invoke

  I also determined scheduler in web-xml file for 5000msc

  and It(a process) worked once, then repeatedly with interval of 5 sec produces exception:

  | 06:44:13,270 ERROR [STDERR] org.jbpm.persistence.JbpmPersistenceException: couldn't commit hibernate session
  | 06:44:13,270 ERROR [STDERR]     at org.jbpm.persistence.db.DbPersistenceService.close(DbPersistenceService.java:172)
  | 06:44:13,270 ERROR [STDERR]     at org.jbpm.svc.Services.close(Services.java:211)
  | 06:44:13,270 ERROR [STDERR]     at org.jbpm.JbpmContext.close(JbpmContext.java:139)
  | 06:44:13,270 ERROR [STDERR]     at org.jbpm.scheduler.impl.SchedulerThread.executeTimers(SchedulerThread.java:161)
  | 06:44:13,270 ERROR [STDERR]     at org.jbpm.scheduler.impl.SchedulerThread.run(SchedulerThread.java:70)
  | 06:44:13,270 ERROR [STDERR] Caused by: org.hibernate.StaleStateException: Batch update returned unexpected row count from update: 0 actual row count: 0 expected: 1
  | 06:44:13,270 ERROR [STDERR]     at org.hibernate.jdbc.BatchingBatcher.checkRowCount(BatchingBatcher.java:93)
  | 06:44:13,270 ERROR [STDERR]     at org.hibernate.jdbc.BatchingBatcher.checkRowCounts(BatchingBatcher.java:79)
  | 06:44:13,270 ERROR [STDERR]     at org.hibernate.jdbc.BatchingBatcher.doExecuteBatch(BatchingBatcher.java:58)
  | 06:44:13,310 ERROR [STDERR]     at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:242)
  | 06:44:13,310 ERROR [STDERR]     at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:235)
  | 06:44:13,310 ERROR [STDERR]     at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:144)
  | 06:44:13,310 ERROR [STDERR]     at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:297)
  | 06:44:13,310 ERROR [STDERR]     at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27)
  | 06:44:13,310 ERROR [STDERR]     at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:993)
  | 06:44:13,310 ERROR [STDERR]     at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:340)
  | 06:44:13,310 ERROR [STDERR]     at org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:106)
  | 06:44:13,310 ERROR [STDERR]     at org.jbpm.persistence.db.DbPersistenceService.close(DbPersistenceService.java:162)
  | 06:44:13,310 ERROR [STDERR]     ... 4 more
  | 06:44:13,350 ERROR [Services] problem closing service 'persistence'
  | org.jbpm.persistence.JbpmPersistenceException: couldn't commit hibernate session
  |         at org.jbpm.persistence.db.DbPersistenceService.close(DbPersistenceService.java:172)
  |         at org.jbpm.svc.Services.close(Services.java:211)
  |         at org.jbpm.JbpmContext.close(JbpmContext.java:139)
  |         at org.jbpm.scheduler.impl.SchedulerThread.executeTimers(SchedulerThread.java:161)
  |         at org.jbpm.scheduler.impl.SchedulerThread.run(SchedulerThread.java:70)
  | Caused by: org.hibernate.StaleStateException: Batch update returned unexpected row count from update: 0 actual row count: 0 expected: 1
  |         at org.hibernate.jdbc.BatchingBatcher.checkRowCount(BatchingBatcher.java:93)
  |         at org.hibernate.jdbc.BatchingBatcher.checkRowCounts(BatchingBatcher.java:79)
  |         at org.hibernate.jdbc.BatchingBatcher.doExecuteBatch(BatchingBatcher.java:58)
  |         at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:242)
  |         at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:235)
  |         at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:144)
  |         at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:297)
  |         at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27)
  |         at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:993)
  |         at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:340)
  |         at org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:106)
  |         at org.jbpm.persistence.db.DbPersistenceService.close(DbPersistenceService.java:162)
  |         ... 4 more
  | 06:44:13,420 INFO  [SchedulerThread] runtime exception while executing timers
  | org.jbpm.JbpmException: problem closing services {persistence=org.jbpm.persistence.JbpmPersistenceException: couldn't commit hibernate session}
  |         at org.jbpm.svc.Services.close(Services.java:223)
  |         at org.jbpm.JbpmContext.close(JbpmContext.java:139)
  |         at org.jbpm.scheduler.impl.SchedulerThread.executeTimers(SchedulerThread.java:161)
  |         at org.jbpm.scheduler.impl.SchedulerThread.run(SchedulerThread.java:70)
  | Caused by: org.jbpm.persistence.JbpmPersistenceException: couldn't commit hibernate session
  |         at org.jbpm.persistence.db.DbPersistenceService.close(DbPersistenceService.java:172)
  |         at org.jbpm.svc.Services.close(Services.java:211)
  |         ... 3 more
  | Caused by: org.hibernate.StaleStateException: Batch update returned unexpected row count from update: 0 actual row count: 0 expected: 1
  |         at org.hibernate.jdbc.BatchingBatcher.checkRowCount(BatchingBatcher.java:93)
  |         at org.hibernate.jdbc.BatchingBatcher.checkRowCounts(BatchingBatcher.java:79)
  |         at org.hibernate.jdbc.BatchingBatcher.doExecuteBatch(BatchingBatcher.java:58)
  |         at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:242)
  |         at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:235)
  |         at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:144)
  |         at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:297)
  |         at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27)
  |         at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:993)
  |         at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:340)
  |         at org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:106)
  |         at org.jbpm.persistence.db.DbPersistenceService.close(DbPersistenceService.java:162)
  |         ... 4 more

  Why? 

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4006205#4006205

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4006205



More information about the jboss-user mailing list