[
https://issues.jboss.org/browse/JBRULES-3093?page=com.atlassian.jira.plug...
]
Alessandro Lazarotti reopened JBRULES-3093:
-------------------------------------------
I've tested the Stock Broker example with BRMS 5.2 libs and the same issue reported
here happens.
The pattern match for "SuddenDropEvent( percent >= -0.06 )" fails quietly on
runtime and the flow is interrupted
Changing the drools libs to Drools-5.3.0.final or Drools-5.4.0 (last snapshot) the issue
does not happen in runtime, but in compile time:
"
Unable to Analyse Expression percent >= -0.08:
[Error: Comparison operation requires compatible types. Found class
org.mvel2.util.MethodStub and class java.lang.Double]
[Near : {... percent >= -0.08 ....}]
^
[Line: 54, Column: 28] : [Rule name='If the drop is between 6% and 8%, buy more
shares']
Unable to Analyse Expression percent < -0.06:
[Error: Comparison operation requires compatible types. Found class
org.mvel2.util.MethodStub and class java.lang.Double]
[Near : {... percent < -0.06 ....}]
^
[Line: 54, Column: 28] : [Rule name='If the drop is between 6% and 8%, buy more
shares']"
A MVEL issue?
Drools Fusion broker example throws stacktraces in drools 5.2.0
---------------------------------------------------------------
Key: JBRULES-3093
URL:
https://issues.jboss.org/browse/JBRULES-3093
Project: Drools
Issue Type: Bug
Security Level: Public(Everyone can see)
Reporter: Geoffrey De Smet
Assignee: Mark Proctor
Fix For: 5.2.0.Final
{code}
=============================================================
Unexpected exception caught: Unexpected exception executing action
org.jbpm.process.instance.event.DefaultSignalManager$SignalAction@1eeba19
org.drools.RuntimeDroolsException: Unexpected exception executing action
org.jbpm.process.instance.event.DefaultSignalManager$SignalAction@1eeba19
at
org.drools.common.AbstractWorkingMemory.executeQueuedActions(AbstractWorkingMemory.java:996)
at org.drools.common.DefaultAgenda.fireAllRules(DefaultAgenda.java:1059)
at
org.drools.common.AbstractWorkingMemory.fireAllRules(AbstractWorkingMemory.java:733)
at
org.drools.common.AbstractWorkingMemory.fireAllRules(AbstractWorkingMemory.java:699)
at
org.drools.impl.StatefulKnowledgeSessionImpl.fireAllRules(StatefulKnowledgeSessionImpl.java:218)
at org.drools.examples.broker.Broker.receive(Broker.java:68)
at
org.drools.examples.broker.events.EventFeeder$FeedJob.execute(EventFeeder.java:85)
at
org.drools.time.impl.JDKTimerService$JDKCallableJob.call(JDKTimerService.java:146)
at
org.drools.time.impl.JDKTimerService$JDKCallableJob.call(JDKTimerService.java:124)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:206)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.IllegalArgumentException: XOR split could not find at least one
valid outgoing connection for split Take Action
at
org.jbpm.workflow.instance.node.SplitInstance.internalTrigger(SplitInstance.java:98)
at
org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:122)
at
org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerConnection(NodeInstanceImpl.java:185)
at
org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerCompleted(NodeInstanceImpl.java:150)
at
org.jbpm.workflow.instance.impl.ExtendedNodeInstanceImpl.triggerCompleted(ExtendedNodeInstanceImpl.java:47)
at
org.jbpm.workflow.instance.node.StateBasedNodeInstance.triggerCompleted(StateBasedNodeInstance.java:162)
at
org.jbpm.workflow.instance.node.StateBasedNodeInstance.triggerCompleted(StateBasedNodeInstance.java:143)
at
org.jbpm.workflow.instance.node.RuleSetNodeInstance.signalEvent(RuleSetNodeInstance.java:73)
at
org.jbpm.workflow.instance.impl.WorkflowProcessInstanceImpl.signalEvent(WorkflowProcessInstanceImpl.java:339)
at
org.jbpm.process.instance.event.DefaultSignalManager.internalSignalEvent(DefaultSignalManager.java:80)
at
org.jbpm.process.instance.event.DefaultSignalManager$SignalAction.execute(DefaultSignalManager.java:175)
at
org.drools.common.AbstractWorkingMemory.executeQueuedActions(AbstractWorkingMemory.java:994)
... 15 more
{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira