SAP Knowledge Base Article - Preview

3271035 - Two Partner-Product Promotions could not work together in specific condition with drools libraries to 7.73.0.Final

Symptom

When evaluate the cart the below exception thrown and promotion evaluation failed.

ERROR [hybrisHTTP21] [DefaultCommerceRuleEngineService] Rule evaluation failed with message 'Cannot invoke "org.drools.core.spi.Tuple.setStagedNext(org.drools.core.spi.Tuple)" because "tuple" is null' for facts: [de.hybris.platform.ruleengineservices.rao.DeliveryModeRAO@973c19bc, de.hybris.platform.ruleengineservices.rao.CategoryRAO@683, de.hybris.platform.ruleengineservices.rao.CategoryRAO@684, de.hybris.platform.ruleengineservices.rao.CategoryRAO@685, de.hybris.platform.ruleengineservices.rao.ProductRAO@625b46dc, de.hybris.platform.ruleengineservices.rao.CategoryRAO@17f91f, de.hybris.platform.ruleengineservices.rao.CategoryRAO@17f91e, de.hybris.platform.ruleengineservices.rao.CategoryRAO@fe7c9df6, de.hybris.platform.ruleengineservices.rao.CategoryRAO@17f91d, de.hybris.platform.ruleengineservices.rao.CategoryRAO@17f91c, de.hybris.platform.ruleengineservices.rao.DeliveryModeRAO@26cde946, de.hybris.platform.ruleengineservices.rao.CategoryRAO@17f91a, de.hybris.platform.ruleengineservices.rao.CategoryRAO@17f919, de.hybris.platform.ruleengineservices.rao.CategoryRAO@170199, de.hybris.platform.ruleengineservices.rao.DeliveryModeRAO@c5150a9b, de.hybris.platform.ruleengineservices.rao.CategoryRAO@170198, de.hybris.platform.ruleengineservices.rao.CategoryRAO@ce10, de.hybris.platform.ruleengineservices.rao.CategoryRAO@179783, de.hybris.platform.ruleengineservices.rao.CategoryRAO@ce14, de.hybris.platform.ruleengineservices.rao.CategoryRAO@179782, de.hybris.platform.ruleengineservices.rao.CategoryRAO@17f902, de.hybris.platform.ruleengineservices.rao.CategoryRAO@d115, de.hybris.platform.ruleengineservices.rao.CategoryRAO@17ed82, de.hybris.platform.ruleengineservices.rao.CategoryRAO@179781, de.hybris.platform.ruleengineservices.rao.CategoryRAO@17f901, de.hybris.platform.ruleengineservices.rao.CategoryRAO@180b0e, de.hybris.platform.ruleengineservices.rao.CategoryRAO@17f900, de.hybris.platform.ruleengineservices.rao.ProductConsumedRAO@ba07909c, de.hybris.platform.ruleengineservices.rao.CategoryRAO@69b, de.hybris.platform.ruleengineservices.rao.CategoryRAO@69c, de.hybris.platform.ruleengineservices.rao.CategoryRAO@69d, de.hybris.platform.ruleengineservices.rao.CategoryRAO@179388, de.hybris.platform.ruleengineservices.rao.CategoryRAO@835919c, de.hybris.platform.ruleengineservices.rao.UserGroupRAO@80aab180, de.hybris.platform.ruleengineservices.rao.CategoryRAO@17f938, de.hybris.platform.ruleengineservices.rao.CategoryRAO@d133, de.hybris.platform.ruleengineservices.rao.CategoryRAO@17f922, de.hybris.platform.ruleengineservices.rao.CategoryRAO@17f921, de.hybris.platform.ruleengineservices.rao.CategoryRAO@d137, de.hybris.platform.ruleengineservices.rao.OrderEntryRAO@ba07903f, de.hybris.platform.ruleengineservices.rao.CategoryRAO@185da2, de.hybris.platform.ruleengineservices.rao.CategoryRAO@180424, de.hybris.platform.ruleengineservices.rao.CategoryRAO@180b24, de.hybris.platform.ruleengineservices.rao.CategoryRAO@180b25, de.hybris.platform.ruleengineservices.rao.CategoryRAO@180b26, de.hybris.platform.ruleengineservices.rao.CategoryRAO@6bf, de.hybris.platform.ruleengineservices.rao.CategoryRAO@6c0, de.hybris.platform.ruleengineservices.rao.DeliveryModeRAO@48136753, de.hybris.platform.ruleengineservices.rao.CategoryRAO@6c1, de.hybris.platform.ruleengineservices.rao.CategoryRAO@adaf25eb, de.hybris.platform.ruleengineservices.rao.CategoryRAO@647, de.hybris.platform.ruleengineservices.rao.CategoryRAO@178fdf, de.hybris.platform.ruleengineservices.rao.CategoryRAO@178fde, de.hybris.platform.ruleengineservices.rao.CategoryRAO@17055c, de.hybris.platform.ruleengineservices.rao.CategoryRAO@50, de.hybris.platform.ruleengineservices.rao.CategoryRAO@1796c7, de.hybris.platform.ruleengineservices.rao.CategoryRAO@178fc7, de.hybris.platform.ruleengineservices.rao.CategoryRAO@17fc46, de.hybris.platform.ruleengineservices.rao.CategoryRAO@1796c6, de.hybris.platform.ruleengineservices.rao.CategoryRAO@178fc6, de.hybris.platform.ruleengineservices.rao.CategoryRAO@1796c5, de.hybris.platform.ruleengineservices.rao.ProductRAO@848408d1, de.hybris.platform.ruleengineservices.rao.DeliveryModeRAO@98fb96ac, de.hybris.platform.ruleengineservices.rao.ProductConsumedRAO@ba07905e, de.hybris.platform.ruleengineservices.rao.OrderEntryRAO@ba07905e, de.hybris.platform.ruleengineservices.rao.CategoryRAO@171acc, de.hybris.platform.ruleengineservices.rao.CategoryRAO@65d, de.hybris.platform.ruleengineservices.rao.CategoryRAO@65e, de.hybris.platform.ruleengineservices.rao.CategoryRAO@178fc8, de.hybris.platform.ruleengineservices.rao.CustomerSupportRAO@9e61, de.hybris.platform.ruleengineservices.rao.CategoryRAO@186979, de.hybris.platform.ruleengineservices.rao.CategoryRAO@663, de.hybris.platform.ruleengineservices.rao.UserRAO@2ea4ed4e, de.hybris.platform.ruleengineservices.rao.CategoryRAO@17e97b, de.hybris.platform.ruleengineservices.rao.ProductRAO@62759299, de.hybris.platform.ruleengineservices.rao.CategoryRAO@17e97a, de.hybris.platform.ruleengineservices.rao.CategoryRAO@cdee, de.hybris.platform.ruleengineservices.rao.CategoryRAO@cdf2, de.hybris.platform.ruleengineservices.rao.CategoryRAO@cdf3, de.hybris.platform.ruleengineservices.rao.CategoryRAO@1708e2, de.hybris.platform.ruleengineservices.rao.CategoryRAO@cdf5, de.hybris.platform.ruleengineservices.rao.WebsiteGroupRAO@12f9fc0c, de.hybris.platform.ruleengineservices.rao.DeliveryModeRAO@aa9b7b6d, de.hybris.platform.ruleengineservices.rao.CategoryRAO@178fe0, de.hybris.platform.ruleengineservices.rao.CartRAO@ba078c7e, de.hybris.platform.ruleengineservices.rao.ProductConsumedRAO@ba07907d, de.hybris.platform.ruleengineservices.rao.OrderEntryRAO@ba07907d, de.hybris.platform.ruleengineservices.rao.CategoryRAO@1796ec, de.hybris.platform.ruleengineservices.rrd.EvaluationTimeRRD@5917fb6b, de.hybris.platform.ruleengineservices.rao.CategoryRAO@17f868, de.hybris.platform.ruleengineservices.rao.RuleEngineResultRAO@b8f7738, de.hybris.platform.ruleengineservices.rrd.RuleGroupExecutionRRD@b6257fa7, de.hybris.platform.ruleengineservices.rrd.RuleConfigurationRRD@1597bcbe, de.hybris.platform.ruleengineservices.rrd.RuleConfigurationRRD@1597bcbd].
java.lang.NullPointerException: Cannot invoke "org.drools.core.spi.Tuple.setStagedNext(org.drools.core.spi.Tuple)" because "tuple" is null
 at org.drools.core.common.TupleSetsImpl.setNextTuple(TupleSetsImpl.java:349) ~[drools-core-7.73.0.SAP-PATCH.jar:?]
 at org.drools.core.common.TupleSetsImpl.removeUpdate(TupleSetsImpl.java:205) ~[drools-core-7.73.0.SAP-PATCH.jar:?]
 at org.drools.core.phreak.RuleNetworkEvaluator.doRiaNode2(RuleNetworkEvaluator.java:708) ~[drools-core-7.73.0.SAP-PATCH.jar:?]
 at org.drools.core.phreak.RuleNetworkEvaluator.innerEval(RuleNetworkEvaluator.java:334) ~[drools-core-7.73.0.SAP-PATCH.jar:?]
 at org.drools.core.phreak.RuleNetworkEvaluator.evalStackEntry(RuleNetworkEvaluator.java:244) ~[drools-core-7.73.0.SAP-PATCH.jar:?]
 at org.drools.core.phreak.RuleNetworkEvaluator.outerEval(RuleNetworkEvaluator.java:187) ~[drools-core-7.73.0.SAP-PATCH.jar:?]
 at org.drools.core.phreak.RuleNetworkEvaluator.evaluateNetwork(RuleNetworkEvaluator.java:140) ~[drools-core-7.73.0.SAP-PATCH.jar:?]
 at org.drools.core.phreak.RuleExecutor.reEvaluateNetwork(RuleExecutor.java:235) ~[drools-core-7.73.0.SAP-PATCH.jar:?]
 at org.drools.core.phreak.RuleExecutor.evaluateNetworkAndFire(RuleExecutor.java:91) ~[drools-core-7.73.0.SAP-PATCH.jar:?]
 at org.drools.core.concurrent.AbstractRuleEvaluator.internalEvaluateAndFire(AbstractRuleEvaluator.java:33) ~[drools-core-7.73.0.SAP-PATCH.jar:?]
 at org.drools.core.concurrent.SequentialRuleEvaluator.evaluateAndFire(SequentialRuleEvaluator.java:43) ~[drools-core-7.73.0.SAP-PATCH.jar:?]
 at org.drools.core.common.DefaultAgenda.fireLoop(DefaultAgenda.java:869) ~[drools-core-7.73.0.SAP-PATCH.jar:?]
 at org.drools.core.common.DefaultAgenda.internalFireAllRules(DefaultAgenda.java:816) ~[drools-core-7.73.0.SAP-PATCH.jar:?]
 at org.drools.core.common.DefaultAgenda.fireAllRules(DefaultAgenda.java:808) ~[drools-core-7.73.0.SAP-PATCH.jar:?]
 at org.drools.core.impl.StatefulKnowledgeSessionImpl.internalFireAllRules(StatefulKnowledgeSessionImpl.java:1333) ~[drools-core-7.73.0.SAP-PATCH.jar:?]
 at org.drools.core.impl.StatefulKnowledgeSessionImpl.fireAllRules(StatefulKnowledgeSessionImpl.java:1324) ~[drools-core-7.73.0.SAP-PATCH.jar:?]
 at org.drools.core.impl.StatefulKnowledgeSessionImpl.fireAllRules(StatefulKnowledgeSessionImpl.java:1316) ~[drools-core-7.73.0.SAP-PATCH.jar:?]
 at org.drools.core.command.runtime.rule.FireAllRulesCommand.execute(FireAllRulesCommand.java:109) ~[drools-core-7.73.0.SAP-PATCH.jar:?]
 at org.drools.core.command.runtime.rule.FireAllRulesCommand.execute(FireAllRulesCommand.java:36) ~[drools-core-7.73.0.SAP-PATCH.jar:?]
 at org.drools.core.command.runtime.BatchExecutionCommandImpl.execute(BatchExecutionCommandImpl.java:169) ~[drools-core-7.73.0.SAP-PATCH.jar:?]
 at org.drools.core.command.runtime.BatchExecutionCommandImpl.execute(BatchExecutionCommandImpl.java:70) ~[drools-core-7.73.0.SAP-PATCH.jar:?]
 at org.drools.core.fluent.impl.PseudoClockRunner.executeBatch(PseudoClockRunner.java:102) ~[drools-core-7.73.0.SAP-PATCH.jar:?]
 at org.drools.core.fluent.impl.PseudoClockRunner.executeBatches(PseudoClockRunner.java:69) ~[drools-core-7.73.0.SAP-PATCH.jar:?]
 at org.drools.core.fluent.impl.PseudoClockRunner.execute(PseudoClockRunner.java:61) ~[drools-core-7.73.0.SAP-PATCH.jar:?]
 at org.drools.core.fluent.impl.PseudoClockRunner.execute(PseudoClockRunner.java:39) ~[drools-core-7.73.0.SAP-PATCH.jar:?]
 at org.drools.core.runtime.InternalLocalRunner.execute(InternalLocalRunner.java:48) ~[drools-core-7.73.0.SAP-PATCH.jar:?]
 at org.drools.core.impl.StatefulKnowledgeSessionImpl.execute(StatefulKnowledgeSessionImpl.java:732) ~[drools-core-7.73.0.SAP-PATCH.jar:?]
 at de.hybris.platform.ruleengine.impl.DefaultPlatformRuleEngineService.lambda$0(DefaultPlatformRuleEngineService.java:224) ~[ruleengineserver.jar:?]
 at de.hybris.platform.ruleengine.impl.DefaultPlatformRuleEngineService.evaluate(DefaultPlatformRuleEngineService.java:206) ~[ruleengineserver.jar:?]
 at de.hybris.platform.droolsruleengineservices.impl.DefaultCommerceRuleEngineService.evaluate(DefaultCommerceRuleEngineService.java:156) [droolsruleengineservicesserver.jar:?]
 at de.hybris.platform.promotionengineservices.promotionengine.impl.DefaultPromotionEngineService.evaluate(DefaultPromotionEngineService.java:180) [promotionengineservicesserver.jar:?]
 at de.hybris.platform.promotionengineservices.promotionengine.impl.DefaultPromotionEngineService.updatePromotionsNotThreadSafe(DefaultPromotionEngineService.java:376) [promotionengineservicesserver.jar:?]
 at de.hybris.platform.promotionengineservices.promotionengine.impl.DefaultPromotionEngineService.updatePromotions(DefaultPromotionEngineService.java:411) [promotionengineservicesserver.jar:?]
 at de.hybris.platform.commerceservices.order.impl.DefaultCommerceCartCalculationStrategy.calculateCart(DefaultCommerceCartCalculationStrategy.java:83) [classes/:?]
 at de.hybris.platform.commerceservices.order.impl.DefaultCommerceUpdateCartEntryStrategy.modifyEntry(DefaultCommerceUpdateCartEntryStrategy.java:301) [classes/:?]
 at de.hybris.platform.commerceservices.order.impl.DefaultCommerceUpdateCartEntryStrategy.updateQuantityForCartEntry(DefaultCommerceUpdateCartEntryStrategy.java:60) [classes/:?]
 at de.hybris.platform.commerceservices.order.impl.DefaultCommerceCartService.updateQuantityForCartEntry(DefaultCommerceCartService.java:230) [classes/:?]
 at de.hybris.platform.commercefacades.order.impl.DefaultCartFacade.updateCartEntry(DefaultCartFacade.java:214) [classes/:?]
 at de.hybris.platform.yacceleratorstorefront.controllers.pages.CartPageController.updateCartQuantities(CartPageController.java:303) [classes/:?]
 at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
 at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]
 at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
 at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]
 at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:190) [spring-web-5.1.18.RELEASE.jar:5.1.18.RELEASE]
 at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:138) [spring-web-5.1.18.RELEASE.jar:5.1.18.RELEASE]
 at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:105) [spring-webmvc-5.1.18.RELEASE.jar:5.1.18.RELEASE]
 ..........


Read more...

Environment

  • COMMERCE 1905.45 - 1905.47
  • COMMERCE 2005.29 - 2005.31
  • COMMERCE 2011.24 - 2011.26
  • COMMERCE 2105.14 - 2105.16
  • COMMERCE 2205.3 - 2205.5

Keywords

Cannot invoke "org.drools.core.spi.Tuple.setStagedNext(org.drools.core.spi.Tuple)" because "tuple" is null; promotion; ruleengine; drools libraries; drools , KBA , CEC-COM-ADM-PRO , Promotion , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.