[JBoss JIRA] (DROOLS-1568) Improve error messages when using boxed java functions
by Kris Verlaenen (JIRA)
[ https://issues.jboss.org/browse/DROOLS-1568?page=com.atlassian.jira.plugi... ]
Kris Verlaenen updated DROOLS-1568:
-----------------------------------
Sprint: 2017 Week 22-23 (was: 2017 Week 22-23 - remove)
> Improve error messages when using boxed java functions
> ------------------------------------------------------
>
> Key: DROOLS-1568
> URL: https://issues.jboss.org/browse/DROOLS-1568
> Project: Drools
> Issue Type: Bug
> Components: dmn engine
> Affects Versions: 7.0.0.CR3
> Reporter: Edson Tirelli
> Assignee: Matteo Mortari
> Fix For: 7.1.0.Final
>
>
> Currently, when the engine does not find the mapped java function (if the user uses an unknown java class or makes a typo in the method signature), it raises an ArrayIndexOutOfBoundsException.
> Fix it to properly return a meaningful message to the user, stating the java function was not found.
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
9 years, 1 month
[JBoss JIRA] (DROOLS-1596) Error checking allowed values for input nodes of duration and date and time types
by Kris Verlaenen (JIRA)
[ https://issues.jboss.org/browse/DROOLS-1596?page=com.atlassian.jira.plugi... ]
Kris Verlaenen updated DROOLS-1596:
-----------------------------------
Sprint: 2017 Week 22-23 (was: 2017 Week 22-23 - remove)
> Error checking allowed values for input nodes of duration and date and time types
> ---------------------------------------------------------------------------------
>
> Key: DROOLS-1596
> URL: https://issues.jboss.org/browse/DROOLS-1596
> Project: Drools
> Issue Type: Bug
> Components: dmn engine
> Affects Versions: 7.1.0.Beta2
> Reporter: Edson Tirelli
> Assignee: Edson Tirelli
> Fix For: 7.1.0.Final
>
> Attachments: date_allowed_values.dmn
>
>
> From Melanie:
> --------
> Maybe something is off in our serialization, but when I try to execute the attached file it always tell me my values are incorrect event when they are within the allowed range. That file is a really dumb decision that just create a boxed context with the two inputs it gets. Those inputs are one yearMonthDuration and one date time. Both are defined with Item definition and have a constraints on them. Setting constraints on all the other types works fine.
> --------
> Here are the messages:
> I send P20Y and 2017-05-16T17:58:00.000Z to the back end. Then I use (BuiltInType) BuiltInType.determineTypeFromName(type) in the back end to have the proper feel type and feelType.fromString(value) to get the proper object.
>
> The returned type for yearMonthDuration is duration and a Period with the proper value is create for it. For date time it is a DATE_TIME and a ZonedDateTime is create for it.
>
> All of that seem fine.
> ----------
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
9 years, 1 month
[JBoss JIRA] (DROOLS-1593) Ruleflow Split (XOR) can't find valid outgoing connection
by Kris Verlaenen (JIRA)
[ https://issues.jboss.org/browse/DROOLS-1593?page=com.atlassian.jira.plugi... ]
Kris Verlaenen updated DROOLS-1593:
-----------------------------------
Sprint: 2017 Week 22-23 (was: 2017 Week 22-23)
> Ruleflow Split (XOR) can't find valid outgoing connection
> ---------------------------------------------------------
>
> Key: DROOLS-1593
> URL: https://issues.jboss.org/browse/DROOLS-1593
> Project: Drools
> Issue Type: Bug
> Components: core engine
> Affects Versions: 6.5.0.Final, 7.0.0.CR3
> Environment: Drools 7.0.0-SNAPSHOT, Oracle Hotspot 1.8.0_112, KIE-Server, OpenShift DecisionServer
> Reporter: Duncan Doyle
> Assignee: Mario Fusco
> Fix For: 7.1.0.Beta3
>
>
> This seems like a regression, as this used to work in 6.4.0.Final, but broke somewhere before 6.5.0.Final. Still broken in 7.0.0-SNAPSHOT. (I actually found it in the OpenShift DecisionServer/KIE-Server image).
> See this reproducer: https://github.com/DuncanDoyle/ruleflow-split-problem
> I have a ruleflow-group that has a split-node (XOR Gateway) directly after the start-node. The outgoing sequence flows of that XOR have a Drools LHS that checks whether a fact is present in working memory (in this reproducer it's a String)
> - exists java.lang.String()
> - not java.lang.String()
> Only if that fact exists do I want to continue my ruleflow, if the fact is not there, I stop.
> I use a StatelessKieSession in which I;
> - insert a String
> - start the process
> - fire the rules
> This used to work fine in 6.4.0.Final and below, but since 6.5.0.Final I get an exception:
> {code}
> org.jbpm.workflow.instance.WorkflowRuntimeException: [test-process:1 - Has Strings?:4] -- XOR split could not find at least one valid outgoing connection for split Has Strings?
> at org.jbpm.workflow.instance.node.SplitInstance.internalTrigger(SplitInstance.java:66)
> at org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:174)
> at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerNodeInstance(NodeInstanceImpl.java:367)
> at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerCompleted(NodeInstanceImpl.java:326)
> at org.jbpm.workflow.instance.node.StartNodeInstance.triggerCompleted(StartNodeInstance.java:72)
> at org.jbpm.workflow.instance.node.StartNodeInstance.internalTrigger(StartNodeInstance.java:43)
> at org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:174)
> at org.jbpm.ruleflow.instance.RuleFlowProcessInstance.internalStart(RuleFlowProcessInstance.java:38)
> at org.jbpm.process.instance.impl.ProcessInstanceImpl.start(ProcessInstanceImpl.java:235)
> at org.jbpm.workflow.instance.impl.WorkflowProcessInstanceImpl.start(WorkflowProcessInstanceImpl.java:443)
> at org.jbpm.process.instance.ProcessRuntimeImpl.startProcessInstance(ProcessRuntimeImpl.java:208)
> at org.jbpm.process.instance.ProcessRuntimeImpl.startProcess(ProcessRuntimeImpl.java:192)
> at org.jbpm.process.instance.ProcessRuntimeImpl.startProcess(ProcessRuntimeImpl.java:184)
> at org.drools.core.impl.StatefulKnowledgeSessionImpl.startProcess(StatefulKnowledgeSessionImpl.java:1859)
> at org.drools.core.command.runtime.process.StartProcessCommand.execute(StartProcessCommand.java:121)
> at org.drools.core.command.runtime.process.StartProcessCommand.execute(StartProcessCommand.java:39)
> at org.drools.core.command.runtime.BatchExecutionCommandImpl.execute(BatchExecutionCommandImpl.java:156)
> at org.drools.core.command.runtime.BatchExecutionCommandImpl.execute(BatchExecutionCommandImpl.java:64)
> at org.drools.core.impl.StatelessKnowledgeSessionImpl.execute(StatelessKnowledgeSessionImpl.java:238)
> at org.jboss.ddoyle.ruleflow.test.RuleflowTest.testRuleflowWithSingleFire(RuleflowTest.java:28)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:498)
> at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
> at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
> at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
> at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
> at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
> at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
> at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
> at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
> at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
> at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
> at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
> at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
> at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
> at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:86)
> at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:459)
> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:678)
> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382)
> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192)
> Caused by: java.lang.IllegalArgumentException: XOR split could not find at least one valid outgoing connection for split Has Strings?
> at org.jbpm.workflow.instance.node.SplitInstance.executeStrategy(SplitInstance.java:110)
> at org.jbpm.workflow.instance.node.SplitInstance.internalTrigger(SplitInstance.java:62)
> ... 42 more
> {code}
> What seems to be causing this is that the rules in the sequence flows are not yet fired when the process arrives at the XOR node, causing it to not be able to find an outgoing connection.
> What does work is if I add an extra "fireAllRules" command BEFORE the "startProcess" command. In that case the flow behaves as it used to. So I need 2 "fireAllRules" commands. What does NOT work is when I only add a "fireAllRules" command before the startProcess command. In that case the rules in the RFG nodes are not fired (but the XOR does not throw an exception in that case).
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
9 years, 1 month
[JBoss JIRA] (DROOLS-1604) Missing clone for indexing declaration in MvelConstraint
by Kris Verlaenen (JIRA)
[ https://issues.jboss.org/browse/DROOLS-1604?page=com.atlassian.jira.plugi... ]
Kris Verlaenen updated DROOLS-1604:
-----------------------------------
Sprint: 2017 Week 22-23 (was: 2017 Week 22-23)
> Missing clone for indexing declaration in MvelConstraint
> --------------------------------------------------------
>
> Key: DROOLS-1604
> URL: https://issues.jboss.org/browse/DROOLS-1604
> Project: Drools
> Issue Type: Bug
> Components: core engine
> Reporter: Mario Fusco
> Assignee: Mario Fusco
>
> Indexing declaration in MvelConstraint is not cloned when a 'or' is processed and this in turn causes that the wrong field is indexed for a branch of the 'or' or even that it attempts to index on a not existing causing the following NPE:
> {code}
> java.lang.NullPointerException
> at org.drools.core.reteoo.BaseLeftTuple.getObject(BaseLeftTuple.java:629)
> at org.drools.core.reteoo.BaseTuple.getObject(BaseTuple.java:48)
> at org.drools.core.util.AbstractHashTable$FieldIndex.hashCodeOf(AbstractHashTable.java:333)
> {code}
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
9 years, 1 month
[JBoss JIRA] (DROOLS-1582) Split kie-ci
by Kris Verlaenen (JIRA)
[ https://issues.jboss.org/browse/DROOLS-1582?page=com.atlassian.jira.plugi... ]
Kris Verlaenen updated DROOLS-1582:
-----------------------------------
Sprint: 2017 Week 22-23 (was: 2017 Week 22-23)
> Split kie-ci
> ------------
>
> Key: DROOLS-1582
> URL: https://issues.jboss.org/browse/DROOLS-1582
> Project: Drools
> Issue Type: Task
> Components: core engine
> Reporter: Mario Fusco
> Assignee: Mario Fusco
>
> The maven integration features currently implemented by kie-ci are useful also for other projects like AppFormer. It is then required to split it in 2 modules, one only dependant on maven/aether and providing general maven integration facilities and the second dependant on both the first and drools and implementing drools incremental compilation.
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
9 years, 1 month
[JBoss JIRA] (DROOLS-1584) Null pointer Exception while Scanner trying to pull updates from Kie Workbench
by Dhamodharan Krishnan (JIRA)
[ https://issues.jboss.org/browse/DROOLS-1584?page=com.atlassian.jira.plugi... ]
Dhamodharan Krishnan commented on DROOLS-1584:
----------------------------------------------
Its thrown in the KieServer instance. Let me try to get you the configuration of a sample project and also the KieServer instance configurations.
> Null pointer Exception while Scanner trying to pull updates from Kie Workbench
> ------------------------------------------------------------------------------
>
> Key: DROOLS-1584
> URL: https://issues.jboss.org/browse/DROOLS-1584
> Project: Drools
> Issue Type: Bug
> Components: kie server
> Affects Versions: 6.5.0.Final
> Environment: Mac.
> Reporter: Dhamodharan Krishnan
> Assignee: Mario Fusco
>
> May 25, 2017 10:07:34 PM org.drools.compiler.kie.builder.impl.KieRepositoryImpl addKieModule
> INFO: KieModule was added: ZipKieModule[releaseId=com.mycompany.module:project:2.0-SNAPSHOT,file=/Users/dhamo/.m2/repository/com/mycompany/module/project/2.0-SNAPSHOT/project-2.0-SNAPSHOT.jar]
> Exception in thread "Timer-0" java.lang.NullPointerException
> at org.drools.core.reteoo.BetaMemory.linkNode(BetaMemory.java:93)
> at org.drools.core.reteoo.BetaMemory.linkNode(BetaMemory.java:88)
> at org.drools.core.reteoo.SingleObjectSinkAdapter.staticDoLinkRiaNode(SingleObjectSinkAdapter.java:104)
> at org.drools.core.reteoo.SingleObjectSinkAdapter.doLinkRiaNode(SingleObjectSinkAdapter.java:86)
> at org.drools.core.reteoo.RiaPathMemory.doLinkRule(RiaPathMemory.java:50)
> at org.drools.core.reteoo.PathMemory.linkSegment(PathMemory.java:102)
> at org.drools.core.reteoo.SegmentMemory.notifyRuleLinkSegment(SegmentMemory.java:192)
> at org.drools.core.phreak.AddRemoveRule.addNewPaths(AddRemoveRule.java:459)
> at org.drools.core.phreak.AddRemoveRule.addRule(AddRemoveRule.java:126)
> at org.drools.core.reteoo.builder.ReteooRuleBuilder.addSubRule(ReteooRuleBuilder.java:190)
> at org.drools.core.reteoo.builder.ReteooRuleBuilder.addRule(ReteooRuleBuilder.java:133)
> at org.drools.core.reteoo.ReteooBuilder.addRule(ReteooBuilder.java:106)
> at org.drools.core.impl.KnowledgeBaseImpl.addRule(KnowledgeBaseImpl.java:1586)
> at org.drools.core.impl.KnowledgeBaseImpl.addRule(KnowledgeBaseImpl.java:1566)
> at org.drools.compiler.builder.impl.KnowledgeBuilderImpl.compileAllRules(KnowledgeBuilderImpl.java:1004)
> at org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.buildRules(CompositeKnowledgeBuilderImpl.java:264)
> at org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.buildPackages(CompositeKnowledgeBuilderImpl.java:122)
> at org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.build(CompositeKnowledgeBuilderImpl.java:105)
> at org.drools.compiler.kie.builder.impl.KieContainerImpl.rebuildAll(KieContainerImpl.java:449)
> at org.drools.compiler.kie.builder.impl.KieContainerImpl.updateKBase(KieContainerImpl.java:311)
> at org.drools.compiler.kie.builder.impl.KieContainerImpl.access$000(KieContainerImpl.java:88)
> at org.drools.compiler.kie.builder.impl.KieContainerImpl$1.run(KieContainerImpl.java:255)
> at org.drools.core.impl.KnowledgeBaseImpl.enqueueModification(KnowledgeBaseImpl.java:735)
> at org.drools.compiler.kie.builder.impl.KieContainerImpl.update(KieContainerImpl.java:252)
> at org.drools.compiler.kie.builder.impl.KieContainerImpl.updateDependencyToVersion(KieContainerImpl.java:218)
> at org.kie.scanner.KieRepositoryScannerImpl.updateKieModule(KieRepositoryScannerImpl.java:317)
> at org.kie.scanner.KieRepositoryScannerImpl.scanNow(KieRepositoryScannerImpl.java:298)
> at org.kie.scanner.KieRepositoryScannerImpl$ScanTask.run(KieRepositoryScannerImpl.java:270)
> at java.util.TimerThread.mainLoop(Timer.java:555)
> at java.util.TimerThread.run(Timer.java:505)
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
9 years, 1 month