I changed the code to make a signal, but the problem persists:

it leaves the node but the error is still here:

13:41:05,209 DEBUG [GraphElement] event 'node-leave' on 'Node(pedido recibido au
  | to)' for 'Token(/)'
  | 13:41:05,219 DEBUG [GraphElement] event 'transition' on 
'Transition(Terminar)' f
  | or 'Token(/)'
  | 13:41:05,229 DEBUG [GraphElement] event 'node-enter' on 'EndState(fin del 
proces
  | o)' for 'Token(/)'
  | 13:41:05,239 DEBUG [GraphElement] event 'process-end' on 
'ProcessDefinition(exam
  | ple)' for 'Token(/)'
  | 13:41:05,259 DEBUG [GraphElement] event 'after-signal' on 'TaskNode(cursar 
pedid
  | o)' for 'Token(/)'
  | 13:41:05,269 DEBUG [Services] executing default save operations
  | 13:41:08,433 DEBUG [StaticNotifier] woke up
  | 13:41:50,324 DEBUG [JbpmContextInfo] creating jbpm context with service 
factorie
  | s '[message, scheduler, logging, persistence, authentication]'
  | 13:41:50,324 DEBUG [HibernateSaveOperation] saving process instance
  | 13:41:50,334 DEBUG [SaveLogsOperation] flushing logs to logging service.
  | 13:41:50,354 DEBUG [CascadeSaveOperation] cascading save of 
'org.jbpm.graph.exe.
  | [EMAIL PROTECTED]'
  | 13:41:50,354 DEBUG [SchedulerThread] deleting timer 'timer(autoconf,org.j
  | bpm.example.timeout,13:41:04,978)'
  | 13:41:50,374 DEBUG [JbpmContext] closing JbpmContext
  | 13:41:50,374 DEBUG [Services] closing service 'persistence': 
org.jbpm.persistenc
  | [EMAIL PROTECTED]
  | 13:41:50,384 DEBUG [DbPersistenceService] committing hibernate transaction
  | 13:41:50,394 DEBUG [JbpmContext] creating JbpmContext
  | 13:41:50,394 DEBUG [DbPersistenceServiceFactory] creating persistence 
service
  | 13:41:50,394 DEBUG [DbPersistenceService] creating hibernate session
  | 13:41:50,404 DEBUG [DbPersistenceService] beginning hibernate transaction
  | 13:41:50,404 DEBUG [JbpmContext] closing JbpmContext
  | 13:41:50,414 DEBUG [Services] closing service 'persistence': 
org.jbpm.persistenc
  | [EMAIL PROTECTED]
  | 13:41:50,414 DEBUG [DbPersistenceService] committing hibernate transaction
  | 13:41:50,414 DEBUG [DbPersistenceService] closing hibernate session
  | 13:41:50,424 DEBUG [Services] closing service 'message': 
org.jbpm.msg.db.DbMessa
  | [EMAIL PROTECTED]
  | 13:41:50,424 DEBUG [CommandExecutorThread] waiting for more messages
  | 13:41:50,434 DEBUG [StaticNotifier] going to wait for (CMD_EXECUTOR, 
java.lang.O
  | [EMAIL PROTECTED])
  | 13:41:50,454 ERROR [AbstractBatcher] Exception executing batch:
  | org.hibernate.StaleStateException: Batch update returned unexpected row 
count fr
  | om update: 0 actual row count: 0 expected: 1
  |         at 
org.hibernate.jdbc.BatchingBatcher.checkRowCount(BatchingBatcher.java
  | :93)
  |         at 
org.hibernate.jdbc.BatchingBatcher.checkRowCounts(BatchingBatcher.jav
  | a:79)
  |         at 
org.hibernate.jdbc.BatchingBatcher.doExecuteBatch(BatchingBatcher.jav
  | a:58)
  |         at 
org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:
  | 193)
  |         at 
org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:230)
  | 
  |         at 
org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:145)
  | 
  |         at 
org.hibernate.event.def.AbstractFlushingEventListener.performExecutio
  | ns(AbstractFlushingEventListener.java:296)
  |         at 
org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlus
  | hEventListener.java:27)
  |         at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:905)
  |         at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:345)
  |         at 
org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java
  | :106)
  |         at 
org.jbpm.persistence.db.DbPersistenceService.close(DbPersistenceServi
  | ce.java:161)
  |         at org.jbpm.svc.Services.close(Services.java:211)
  |         at org.jbpm.JbpmContext.close(JbpmContext.java:138)
  |         at 
org.jbpm.scheduler.impl.SchedulerThread.executeTimers(SchedulerThread
  | .java:161)
  |         at 
org.jbpm.scheduler.impl.SchedulerThread.run(SchedulerThread.java:70)
  | 13:41:50,554 ERROR [AbstractFlushingEventListener] Could not synchronize 
databas
  | e state with session
  | org.hibernate.StaleStateException: Batch update returned unexpected row 
count fr
  | om update: 0 actual row count: 0 expected: 1
  |         at 
org.hibernate.jdbc.BatchingBatcher.checkRowCount(BatchingBatcher.java
  | :93)
  |         at 
org.hibernate.jdbc.BatchingBatcher.checkRowCounts(BatchingBatcher.jav
  | a:79)
  |         at 
org.hibernate.jdbc.BatchingBatcher.doExecuteBatch(BatchingBatcher.jav
  | a:58)
  |         at 
org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:
  | 193)
  |         at 
org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:230)
  | 
  |         at 
org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:145)
  | 
  |         at 
org.hibernate.event.def.AbstractFlushingEventListener.performExecutio
  | ns(AbstractFlushingEventListener.java:296)
  |         at 
org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlus
  | hEventListener.java:27)
  |         at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:905)
  |         at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:345)
  |         at 
org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java
  | :106)
  |         at 
org.jbpm.persistence.db.DbPersistenceService.close(DbPersistenceServi
  | ce.java:161)
  |         at org.jbpm.svc.Services.close(Services.java:211)
  |         at org.jbpm.JbpmContext.close(JbpmContext.java:138)
  |         at 
org.jbpm.scheduler.impl.SchedulerThread.executeTimers(SchedulerThread
  | .java:161)
  |         at 
org.jbpm.scheduler.impl.SchedulerThread.run(SchedulerThread.java:70)
  | 13:41:55,441 DEBUG [StaticNotifier] woke up
  | 13:42:30,341 DEBUG [JbpmContextInfo] creating jbpm context with service 
factorie
  | s '[message, scheduler, logging, persistence, authentication]'
  | 13:42:30,351 DEBUG [JbpmContext] creating JbpmContext
  | 13:42:30,351 DEBUG [DbPersistenceServiceFactory] creating persistence 
service
  | 13:42:30,361 DEBUG [DbPersistenceService] creating hibernate session
  | 13:42:30,361 INFO  [STDOUT] org.jbpm.persistence.JbpmPersistenceException: 
could
  | n't commit hibernate session
  | 13:42:30,371 INFO  [STDOUT]     at 
org.jbpm.persistence.db.DbPersistenceService.
  | close(DbPersistenceService.java:171)
  | 13:42:30,381 INFO  [STDOUT]     at 
org.jbpm.svc.Services.close(Services.java:211
  | )
  | 13:42:30,381 INFO  [STDOUT]     at 
org.jbpm.JbpmContext.close(JbpmContext.java:1
  | 38)
  | 13:42:30,391 INFO  [STDOUT]     at 
org.jbpm.scheduler.impl.SchedulerThread.execu
  | teTimers(SchedulerThread.java:161)
  | 13:42:30,391 INFO  [STDOUT]     at 
org.jbpm.scheduler.impl.SchedulerThread.run(S
  | chedulerThread.java:70)
  | 13:42:30,401 INFO  [STDOUT] Caused by: org.hibernate.StaleStateException: 
Batch
  | update returned unexpected row count from update: 0 actual row count: 0 
expected
  | : 1
  | 13:42:30,411 INFO  [STDOUT]     at 
org.hibernate.jdbc.BatchingBatcher.checkRowCo
  | unt(BatchingBatcher.java:93)
  | 13:42:30,411 INFO  [STDOUT]     at 
org.hibernate.jdbc.BatchingBatcher.checkRowCo

my new action is:

import org.apache.commons.logging.Log;
  | import org.apache.commons.logging.LogFactory;
  | import org.jbpm.graph.def.ActionHandler;
  | import org.jbpm.graph.exe.ExecutionContext;
  | import org.jbpm.graph.exe.Token;
  | 
  | public class timeout implements ActionHandler {
  | 
  |   private static final long serialVersionUID = 1L;
  |   
  |   String swimlaneName;
  | 
  |   public void execute(ExecutionContext executionContext) throws Exception {
  |     
  |     String actorId = "1";//executionContext.getTaskMgmtInstance()
  |                                                     //         
.getSwimlaneInstance(swimlaneName)
  |                               //       .getActorId();
  |     
  |     String taskName = executionContext.getTaskInstance().getName();
  |     
  |     log.info    //executionContext.leaveNode();
  | 
  |     //ProcessInstance processInstance = new ProcessInstance();        
  |         
  |     Token token = executionContext.getToken(); 
  |    
  |     token.signal();
  |   }
  | 
  |   private static final Log log = LogFactory.getLog(timeout.class);
  | 
  | }

any idea? Thanks...

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

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


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to