Hello All,
Why don't we have an community forum website like JBoss Drools forum where
we can post questions/answers unlike this mailing list and if someone has
to
go back to old posts, how tough it gets to go thru email archives.
No offence here.
Thanks
-----Original Message-----
From: rules-users-bounces(a)lists.jboss.org
[mailto:rules-users-bounces@lists.jboss.org] On Behalf Of Gustavo
Tenrreiro
Sent: Saturday, September 18, 2010 5:37 PM
To: Rules Users List
Subject: [rules-users] Flow Timer causes exception: Caused by:
java.util.concurrent.RejectedExecutionException
Hi,
I have a flow and a set of rules.
In the flow I have a wait state. If the wait state has a timer, when
the flow reaches the node it blows up with the following exception (
See Below ), if I remove the timer everything works.
INFO 2010-09-18 16:26:28 [ERROR]
com.kgcontrols.services.raytheon.standardsRequests.workflow.managers.DroolsE
ventsManager
Could not commit session
java.lang.RuntimeException: Could not commit session
at
org.drools.persistence.session.SingleSessionCommandService.execute(SingleSes
sionCommandService.java:292)
at
org.drools.command.impl.CommandBasedStatefulKnowledgeSession.execute(Command
BasedStatefulKnowledgeSession.java:434)
at
com.kgcontrols.services.raytheon.standardsRequests.workflow.managers.DroolsE
ventsManager.sendEvent(DroolsEventsManager.java:43)
at
com.kgcontrols.services.raytheon.standardsRequests.workflow.Rule_domainLeadR
eject_0.defaultConsequence(Rule_domainLeadReject_0.java:10)
at
com.kgcontrols.services.raytheon.standardsRequests.workflow.Rule_domainLeadR
eject_0DefaultConsequenceInvoker.evaluate(Rule_domainLeadReject_0DefaultCons
equenceInvoker.java:34)
at
org.drools.common.DefaultAgenda.fireActivation(DefaultAgenda.java:917)
at
org.drools.common.DefaultAgenda.fireNextItem(DefaultAgenda.java:856)
at
org.drools.common.DefaultAgenda.fireAllRules(DefaultAgenda.java:1071)
at
org.drools.common.AbstractWorkingMemory.fireAllRules(AbstractWorkingMemory.j
ava:785)
at
org.drools.common.AbstractWorkingMemory.fireAllRules(AbstractWorkingMemory.j
ava:751)
at
org.drools.impl.StatefulKnowledgeSessionImpl.fireAllRules(StatefulKnowledgeS
essionImpl.java:218)
at
org.drools.command.runtime.rule.FireAllRulesCommand.execute(FireAllRulesComm
and.java:99)
at
org.drools.command.runtime.rule.FireAllRulesCommand.execute(FireAllRulesComm
and.java:33)
at
org.drools.persistence.session.SingleSessionCommandService.execute(SingleSes
sionCommandService.java:279)
at
org.drools.command.impl.CommandBasedStatefulKnowledgeSession.fireAllRules(Co
mmandBasedStatefulKnowledgeSession.java:201)
at
com.kgcontrols.services.raytheon.standardsRequests.workflow.listeners.VoteCr
eatedEventListener.onMessage(VoteCreatedEventListener.java:78)
at
org.apache.activemq.ActiveMQMessageConsumer.dispatch(ActiveMQMessageConsumer
.java:854)
at
org.apache.activemq.ActiveMQSessionExecutor.dispatch(ActiveMQSessionExecutor
.java:99)
at
org.apache.activemq.ActiveMQSessionExecutor.iterate(ActiveMQSessionExecutor.
java:166)
at
org.apache.activemq.thread.PooledTaskRunner.runTask(PooledTaskRunner.java:11
7)
at
org.apache.activemq.thread.PooledTaskRunner.access$100(PooledTaskRunner.java
:26)
at
org.apache.activemq.thread.PooledTaskRunner$1.run(PooledTaskRunner.java:44)
at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run
Task(ThreadPoolExecutor.java:650)
at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run
(ThreadPoolExecutor.java:675)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.util.concurrent.RejectedExecutionException
at
java.util.concurrent.ThreadPoolExecutor$AbortPolicy.rejectedExecution(Thread
PoolExecutor.java:1768)
at
java.util.concurrent.ThreadPoolExecutor.reject(ThreadPoolExecutor.java:767)
at
java.util.concurrent.ScheduledThreadPoolExecutor.delayedExecute(ScheduledThr
eadPoolExecutor.java:216)
at
java.util.concurrent.ScheduledThreadPoolExecutor.schedule(ScheduledThreadPoo
lExecutor.java:379)
at
org.drools.time.impl.JDKTimerService.schedule(JDKTimerService.java:102)
at
org.drools.time.impl.JDKTimerService.scheduleJob(JDKTimerService.java:80)
at
org.drools.process.instance.timer.TimerManager.registerTimer(TimerManager.ja
va:60)
at
org.drools.workflow.instance.node.StateBasedNodeInstance.internalTrigger(Sta
teBasedNodeInstance.java:56)
at
org.drools.workflow.instance.node.CompositeNodeInstance.internalTrigger(Comp
ositeNodeInstance.java:86)
at
org.drools.workflow.instance.node.StateNodeInstance.internalTrigger(StateNod
eInstance.java:48)
at
org.drools.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.
java:117)
at
org.drools.workflow.instance.impl.NodeInstanceImpl.triggerConnection(NodeIns
tanceImpl.java:178)
at
org.drools.workflow.instance.impl.NodeInstanceImpl.triggerCompleted(NodeInst
anceImpl.java:144)
at
org.drools.workflow.instance.impl.ExtendedNodeInstanceImpl.triggerCompleted(
ExtendedNodeInstanceImpl.java:53)
at
org.drools.workflow.instance.node.StateBasedNodeInstance.triggerCompleted(St
ateBasedNodeInstance.java:117)
at
org.drools.workflow.instance.node.StateBasedNodeInstance.triggerCompleted(St
ateBasedNodeInstance.java:98)
at
org.drools.workflow.instance.node.WorkItemNodeInstance.triggerCompleted(Work
ItemNodeInstance.java:201)
at
org.drools.workflow.instance.node.WorkItemNodeInstance.workItemCompleted(Wor
kItemNodeInstance.java:258)
at
org.drools.workflow.instance.node.WorkItemNodeInstance.signalEvent(WorkItemN
odeInstance.java:234)
at
org.drools.workflow.instance.impl.WorkflowProcessInstanceImpl.signalEvent(Wo
rkflowProcessInstanceImpl.java:337)
at
org.drools.persistence.processinstance.JPAWorkItemManager.completeWorkItem(J
PAWorkItemManager.java:99)
at
org.drools.process.workitem.email.EmailWorkItemHandler.executeWorkItem(Email
WorkItemHandler.java:104)
at
org.drools.persistence.processinstance.JPAWorkItemManager.internalExecuteWor
kItem(JPAWorkItemManager.java:45)
at
org.drools.workflow.instance.node.WorkItemNodeInstance.internalTrigger(WorkI
temNodeInstance.java:101)
at
org.drools.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.
java:117)
at
org.drools.workflow.instance.impl.NodeInstanceImpl.triggerConnection(NodeIns
tanceImpl.java:178)
at
org.drools.workflow.instance.node.SplitInstance.internalTrigger(SplitInstanc
e.java:94)
at
org.drools.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.
java:117)
at
org.drools.workflow.instance.impl.NodeInstanceImpl.triggerConnection(NodeIns
tanceImpl.java:178)
at
org.drools.workflow.instance.impl.NodeInstanceImpl.triggerCompleted(NodeInst
anceImpl.java:144)
at
org.drools.workflow.instance.node.JoinInstance.triggerCompleted(JoinInstance
.java:152)
at
org.drools.workflow.instance.node.JoinInstance.internalTrigger(JoinInstance.
java:52)
at
org.drools.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.
java:117)
at
org.drools.workflow.instance.impl.NodeInstanceImpl.triggerConnection(NodeIns
tanceImpl.java:178)
at
org.drools.workflow.instance.impl.NodeInstanceImpl.triggerCompleted(NodeInst
anceImpl.java:144)
at
org.drools.workflow.instance.node.EventNodeInstance.triggerCompleted(EventNo
deInstance.java:66)
at
org.drools.workflow.instance.node.EventNodeInstance.signalEvent(EventNodeIns
tance.java:50)
at
org.drools.workflow.instance.impl.WorkflowProcessInstanceImpl.signalEvent(Wo
rkflowProcessInstanceImpl.java:351)
at
org.drools.command.runtime.process.SignalEventCommand.execute(SignalEventCom
mand.java:95)
at
org.drools.impl.StatefulKnowledgeSessionImpl.execute(StatefulKnowledgeSessio
nImpl.java:879)
at
org.drools.impl.StatefulKnowledgeSessionImpl.execute(StatefulKnowledgeSessio
nImpl.java:862)
at org.drools.command.ExecuteCommand.execute(ExecuteCommand.java:50)
at org.drools.command.ExecuteCommand.execute(ExecuteCommand.java:31)
at
org.drools.persistence.session.SingleSessionCommandService.execute(SingleSes
sionCommandService.java:279)
... 24 more
INFO 2010-09-18 16:26:28 [ERROR]
com.kgcontrols.services.raytheon.standardsRequests.workflow.listeners.VoteCr
eatedEventListener
Unable to consume Vote created event: Could not commit session or
rollback
java.lang.RuntimeException: Could not commit session or rollback
at
org.drools.persistence.session.SingleSessionCommandService.execute(SingleSes
sionCommandService.java:289)
at
org.drools.command.impl.CommandBasedStatefulKnowledgeSession.fireAllRules(Co
mmandBasedStatefulKnowledgeSession.java:201)
at
com.kgcontrols.services.raytheon.standardsRequests.workflow.listeners.VoteCr
eatedEventListener.onMessage(VoteCreatedEventListener.java:78)
at
org.apache.activemq.ActiveMQMessageConsumer.dispatch(ActiveMQMessageConsumer
.java:854)
at
org.apache.activemq.ActiveMQSessionExecutor.dispatch(ActiveMQSessionExecutor
.java:99)
at
org.apache.activemq.ActiveMQSessionExecutor.iterate(ActiveMQSessionExecutor.
java:166)
at
org.apache.activemq.thread.PooledTaskRunner.runTask(PooledTaskRunner.java:11
7)
at
org.apache.activemq.thread.PooledTaskRunner.access$100(PooledTaskRunner.java
:26)
at
org.apache.activemq.thread.PooledTaskRunner$1.run(PooledTaskRunner.java:44)
at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run
Task(ThreadPoolExecutor.java:650)
at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run
(ThreadPoolExecutor.java:675)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.RuntimeException: Unable to rollback transaction
at
org.drools.persistence.session.JtaTransactionManager.rollback(JtaTransaction
Manager.java:181)
at
org.drools.persistence.session.SingleSessionCommandService.execute(SingleSes
sionCommandService.java:287)
... 11 more
Caused by: java.lang.IllegalStateException: no transaction started on
this thread
at
bitronix.tm.BitronixTransactionManager.rollback(BitronixTransactionManager.j
ava:111)
at
org.drools.persistence.session.JtaTransactionManager.rollback(JtaTransaction
Manager.java:178)
... 12 more
Can someone point me in the right direction.
Thanks
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users