Uploaded image for project: 'JBoss BRMS Platform'
  1. JBoss BRMS Platform
  2. RHBRMS-3062

[GSS](6.4.z) NullPointerException in TupleSetsImpl.setNextTuple if knowledgePackages are added in wrong order

    Details

    • Type: Bug
    • Status: Verified (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 6.4.7.GA
    • Fix Version/s: 6.4.9
    • Component/s: BRE
    • Labels:
    • Target Release:
    • Fix Build:
      CR1

      Description

      Depending on the sequence of how multiple drl files are read and added to a knowledgeBase, rules execution fails with a NullPointerException:

      java.lang.NullPointerException
      	at org.drools.core.common.TupleSetsImpl.setNextTuple(TupleSetsImpl.java:349)
      	at org.drools.core.common.TupleSetsImpl.removeInsert(TupleSetsImpl.java:167)
      	at org.drools.core.phreak.RuleNetworkEvaluator.doRiaNode2(RuleNetworkEvaluator.java:647)
      	at org.drools.core.phreak.RuleNetworkEvaluator.innerEval(RuleNetworkEvaluator.java:294)
      	at org.drools.core.phreak.RuleNetworkEvaluator.doRiaNode(RuleNetworkEvaluator.java:573)
      	at org.drools.core.phreak.RuleNetworkEvaluator.evalBetaNode(RuleNetworkEvaluator.java:500)
      	at org.drools.core.phreak.RuleNetworkEvaluator.evalNode(RuleNetworkEvaluator.java:341)
      	at org.drools.core.phreak.RuleNetworkEvaluator.innerEval(RuleNetworkEvaluator.java:301)
      	at org.drools.core.phreak.RuleNetworkEvaluator.outerEval(RuleNetworkEvaluator.java:136)
      	at org.drools.core.phreak.RuleNetworkEvaluator.evaluateNetwork(RuleNetworkEvaluator.java:94)
      	at org.drools.core.phreak.RuleExecutor.reEvaluateNetwork(RuleExecutor.java:194)
      	at org.drools.core.phreak.RuleExecutor.evaluateNetworkAndFire(RuleExecutor.java:73)
      	at org.drools.core.common.DefaultAgenda.fireNextItem(DefaultAgenda.java:972)
      	at org.drools.core.common.DefaultAgenda.fireLoop(DefaultAgenda.java:1315)
      	at org.drools.core.common.DefaultAgenda.fireAllRules(DefaultAgenda.java:1254)
      	at org.drools.core.impl.StatefulKnowledgeSessionImpl.internalFireAllRules(StatefulKnowledgeSessionImpl.java:1365)
      	at org.drools.core.impl.StatefulKnowledgeSessionImpl.fireAllRules(StatefulKnowledgeSessionImpl.java:1356)
      	at org.drools.core.impl.StatefulKnowledgeSessionImpl.fireAllRules(StatefulKnowledgeSessionImpl.java:1337)
      	at com.wellsfargo.test.RuleFlowTest.executeRules(RuleFlowTest.java:138)
      

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  mfusco Mario Fusco
                  Reporter:
                  mputz Martin Weiler
                  Tester:
                  Tibor Zimanyi
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  5 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: