[jboss-user] [JBoss jBPM] - Re: Exception on Timer-Execution under Weblogic
syngolis
do-not-reply at jboss.com
Fri Jun 29 07:38:50 EDT 2007
No ActionDelegation. Just plain JPDL:
<state name="State1: Wait 1 minute">
| <timer name='waitstate' duedate='1 minute' transition='to_task1' />
| <transition name="to_task1" to="Task1: WaitState is over"></transition>
| </state>
(Working under JBoss)
I did a little mor research. The timer becomes executed. The problem appears at the cancelling of the timer:
| 13:35:13,406 [[ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'] DEBUG TimerServiceBean : ejb timer [
| EJB Timer] id: 2 pk: 1 info: org.jbpm.scheduler.ejbtimer.TimerInfo at 41fef timer: 1183116913406.195(0) state: 2 ejb: TimerServiceBea
| n(Application: ISOWorkflow, EJBComponent: jbpm-enterprise.jar) Thread: Thread[[ACTIVE] ExecuteThread: '4' for queue: 'weblogic.ker
| nel.Default (self-tuning)',5,Pooled Threads] fires
| 13:35:22,078 [[ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'] DEBUG TimerServiceBean : looking up
| local command service
| Context initial = new InitialContext();
| Context environment = (Context) initial.lookup('java:comp/env');
| LocalCommandServiceHome localCommandServiceHome = (LocalCommandServiceHome) environment.lookup('ejb/LocalCommandServiceBean');
| LocalCommandService localCommandService = localCommandServiceHome.create();
| Serializable info = ejbTimer.getInfo();
| TimerInfo timerInfo = (TimerInfo) info;
| TimerID: 19
| Timer timer = (Timer) localCommandService.execute(new ExecuteTimerCommand(timerInfo.getTimerId()));
| 13:35:22,093 [[ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'] DEBUG CommandServiceBean : getting j
| bpm configuration resource from the environment properties
| 13:35:22,093 [[ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'] DEBUG CommandServiceBean : couldn't
| find configuration property JbpmCfgResource through JNDI
| 13:35:22,093 [[ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'] DEBUG CommandServiceBean : getting d
| efault jbpm configuration resource (jbpm.cfg.xml)
| 13:35:22,093 [[ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'] DEBUG CommandServiceBean : handing o
| ver the command execution to the command service
| 13:35:22,093 [[ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'] DEBUG JbpmContextInfo : creating jbp
| m context with service factories '[tx, message, scheduler, logging, persistence, authentication]'
| 13:35:22,093 [[ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'] DEBUG JbpmContext : creating org.jbp
| m.JbpmContext at 11b138a
| 13:35:22,093 [[ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'] DEBUG CommandServiceBean : executing
| org.jbpm.scheduler.ejbtimer.ExecuteTimerCommand at 9ff7c0
| 13:35:22,093 [[ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'] DEBUG DbPersistenceServiceFactory :
| creating persistence service
| 13:35:22,093 [[ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'] DEBUG DbPersistenceService : using c
| urrent hibernate session SessionImpl(PersistenceContext[entityKeys=[],collectionKeys=[]];ActionQueue[insertions=[] updates=[] dele
| tions=[] collectionCreations=[] collectionRemovals=[] collectionUpdates=[]])
| 13:35:22,140 [[ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'] DEBUG ExecuteTimerCommand : executin
| g timer 19
| 13:35:22,156 [[ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'] DEBUG GraphElement : event 'before-s
| ignal' on 'State(State1: Wait 1 minute)' for 'Token(/)'
| 13:35:22,156 [[ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'] DEBUG GraphElement : event 'node-lea
| ve' on 'State(State1: Wait 1 minute)' for 'Token(/)'
| 13:35:22,156 [[ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'] DEBUG GraphElement : executing actio
| n 'CancelTimerAction(1249338)'
| 13:35:22,156 [[ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'] DEBUG Token : token[181] is locked b
| y token[181]
| 13:35:22,171 [[ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'] DEBUG EjbSchedulerService : deleting
| timers by name waitstate
| 13:35:22,171 [[ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'] DEBUG JobSession : deleting timer ti
| mer(waitstate,13:15:06,000) by name waitstate
| 13:35:22,171 [[ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'] DEBUG TimerServiceBean : cancelling
| timers with name waitstate from the ejb timer service
| 13:35:22,171 [[ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'] DEBUG Token : token[181] is unlocked
| by token[181]
| 13:35:22,187 [[ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'] ERROR GraphElement : action threw ex
| ception: EJB Exception: ; nested exception is: java.lang.IllegalStateException: Single expiration timers cannot be cancelled from
| within ejbTimeout
| javax.ejb.TransactionRolledbackLocalException: EJB Exception: ; nested exception is: java.lang.IllegalStateException: Single expir
| ation timers cannot be cancelled from within ejbTimeout
| java.lang.IllegalStateException: Single expiration timers cannot be cancelled from within ejbTimeout
| at weblogic.ejb.container.timer.TimerImpl.cancel(TimerImpl.java:618)
| at org.jbpm.scheduler.ejbtimer.TimerServiceBean.cancelTimersByName(TimerServiceBean.java:53)
| at org.jbpm.scheduler.ejbtimer.TimerServiceBean_p7ac74_ELOImpl.cancelTimersByName(TimerServiceBean_p7ac74_ELOImpl.java:63)
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4059128#4059128
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4059128
More information about the jboss-user
mailing list