java.lang.RuntimeException: java.lang.NullPointerException

tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Null pointer exception with Drools accumulate()

    Stack Overflow | 7 months ago | Anmol Singh Jaggi
    java.lang.RuntimeException: java.lang.NullPointerException

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at org.drools.core.rule.Declaration.getValue()
    2. Drools :: Core
      Declaration.getValue
      1. org.drools.core.rule.Declaration.getValue(Declaration.java:228)
      1 frame
    3. com.sample
      Rule_rule11017979978AccumulateExpression0Invoker.evaluate
      1. com.sample.Rule_rule11017979978AccumulateExpression0Invoker.evaluate(Rule_rule11017979978AccumulateExpression0Invoker.java:19)
      1 frame
    4. Drools :: Core
      StatefulKnowledgeSessionImpl.fireAllRules
      1. org.drools.core.base.accumulators.JavaAccumulatorFunctionExecutor.accumulate(JavaAccumulatorFunctionExecutor.java:109)
      2. org.drools.core.rule.SingleAccumulate.accumulate(SingleAccumulate.java:82)
      3. org.drools.core.phreak.PhreakAccumulateNode.addMatch(PhreakAccumulateNode.java:759)
      4. org.drools.core.phreak.PhreakAccumulateNode.doLeftInserts(PhreakAccumulateNode.java:163)
      5. org.drools.core.phreak.PhreakAccumulateNode.doNode(PhreakAccumulateNode.java:80)
      6. org.drools.core.phreak.RuleNetworkEvaluator.switchOnDoBetaNode(RuleNetworkEvaluator.java:562)
      7. org.drools.core.phreak.RuleNetworkEvaluator.evalBetaNode(RuleNetworkEvaluator.java:533)
      8. org.drools.core.phreak.RuleNetworkEvaluator.innerEval(RuleNetworkEvaluator.java:334)
      9. org.drools.core.phreak.RuleNetworkEvaluator.outerEval(RuleNetworkEvaluator.java:161)
      10. org.drools.core.phreak.RuleNetworkEvaluator.evaluateNetwork(RuleNetworkEvaluator.java:116)
      11. org.drools.core.phreak.RuleExecutor.reEvaluateNetwork(RuleExecutor.java:235)
      12. org.drools.core.phreak.RuleExecutor.evaluateNetworkAndFire(RuleExecutor.java:106)
      13. org.drools.core.common.DefaultAgenda.fireNextItem(DefaultAgenda.java:1016)
      14. org.drools.core.common.DefaultAgenda.fireAllRules(DefaultAgenda.java:1302)
      15. org.drools.core.impl.StatefulKnowledgeSessionImpl.fireAllRules(StatefulKnowledgeSessionImpl.java:1289)
      16. org.drools.core.impl.StatefulKnowledgeSessionImpl.fireAllRules(StatefulKnowledgeSessionImpl.java:1262)
      16 frames
    5. com.sample
      DroolsTest1.main
      1. com.sample.DroolsTest1.main(DroolsTest1.java:20)
      1 frame