[jboss-user] [JBoss Seam] - Seam throws exception after timer has finished execution

asachde do-not-reply at jboss.com
Thu Aug 31 07:46:41 EDT 2006


I get the following exception once a timer has finished execution. It's not hindering what I do but wanted to know is this something due to my timer.

Thanks.
JPDL Excerpt:
   
   		
   	  	
   	  		System.out.println("In state wait!!!");
   	  	
   	  	      
	   
			
				System.out.println("Did the timer fire???");
			
  	      	  	
      
   		
   	  	
   	  		System.out.println("Leaving wait state!!!");
   	  	
   	  	        
   


Exception Stack:
org.hibernate.StaleStateException: Batch update returned unexpected row count from update: 0 actual row count: 0 expecte
d: 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:29
7)
        at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27)
        at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:993)
        at org.jbpm.persistence.db.DbPersistenceService.close(DbPersistenceService.java:179)
        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)
07:32:01,157 ERROR [AbstractFlushingEventListener] Could not synchronize database state with session
org.hibernate.StaleStateException: Batch update returned unexpected row count from update: 0 actual row count: 0 expecte
d: 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:29
7)
        at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27)
        at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:993)
        at org.jbpm.persistence.db.DbPersistenceService.close(DbPersistenceService.java:179)
        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)
07:32:01,208 ERROR [STDERR] org.jbpm.persistence.JbpmPersistenceException: couldn't flush hibernate session
07:32:01,208 ERROR [STDERR]     at org.jbpm.persistence.db.DbPersistenceService.close(DbPersistenceService.java:181)
07:32:01,208 ERROR [STDERR]     at org.jbpm.svc.Services.close(Services.java:211)
07:32:01,218 ERROR [STDERR]     at org.jbpm.JbpmContext.close(JbpmContext.java:139)
07:32:01,218 ERROR [STDERR]     at org.jbpm.scheduler.impl.SchedulerThread.executeTimers(SchedulerThread.java:161)
07:32:01,218 ERROR [STDERR]     at org.jbpm.scheduler.impl.SchedulerThread.run(SchedulerThread.java:70)
07:32:01,218 ERROR [STDERR] Caused by: org.hibernate.StaleStateException: Batch update returned unexpected row count fro
m update: 0 actual row count: 0 expected: 1
07:32:01,228 ERROR [STDERR]     at org.hibernate.jdbc.BatchingBatcher.checkRowCount(BatchingBatcher.java:93)
07:32:01,228 ERROR [STDERR]     at org.hibernate.jdbc.BatchingBatcher.checkRowCounts(BatchingBatcher.java:79)
07:32:01,228 ERROR [STDERR]     at org.hibernate.jdbc.BatchingBatcher.doExecuteBatch(BatchingBatcher.java:58)
07:32:01,228 ERROR [STDERR]     at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:242)
07:32:01,238 ERROR [STDERR]     at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:235)
07:32:01,238 ERROR [STDERR]     at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:144)
07:32:01,238 ERROR [STDERR]     at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlush
ingEventListener.java:297)
07:32:01,248 ERROR [STDERR]     at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.j
ava:27)
07:32:01,248 ERROR [STDERR]     at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:993)
07:32:01,248 ERROR [STDERR]     at org.jbpm.persistence.db.DbPersistenceService.close(DbPersistenceService.java:179)
07:32:01,258 ERROR [STDERR]     ... 4 more
07:32:01,258 ERROR [Services] problem closing service 'persistence'
org.jbpm.persistence.JbpmPersistenceException: couldn't flush hibernate session
        at org.jbpm.persistence.db.DbPersistenceService.close(DbPersistenceService.java:181)
        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:29
7)
        at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27)
        at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:993)
        at org.jbpm.persistence.db.DbPersistenceService.close(DbPersistenceService.java:179)
        ... 4 more
07:32:01,318 INFO  [SchedulerThread] runtime exception while executing timers
org.jbpm.JbpmException: problem closing services {persistence=org.jbpm.persistence.JbpmPersistenceException: couldn't fl
ush 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 flush hibernate session
        at org.jbpm.persistence.db.DbPersistenceService.close(DbPersistenceService.java:181)
        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:29
7)
        at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27)
        at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:993)
        at org.jbpm.persistence.db.DbPersistenceService.close(DbPersistenceService.java:179)
        ... 4 more


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

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



More information about the jboss-user mailing list