cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Promotions are not getting applied using Promotion Engine.

sreearumilli
Participant
2,558

None of the Promotions (including OOTB) are getting applied . For instance, i have a requirement to apply 'Order Threshold Promotion' to the Cart total and for that i have added products to the cart to obtain cart total greater than 10$ then , the promotion should get applied and we should get $5 discount on cart total . Instead, i am getting the below warning when i click on 'Add To Cart' .

494 | WARN [hybrisHTTP39] [DefaultRuleEngineCacheService] Globals map for evaluation context [promotions-context] is empty. Rules won't be evaluated! INFO | jvm 1 | main | 2018/05/03 23:29:29.594 | INFO [hybrisHTTP39] [AbstractOrderRaoPopulator] Order discount list is empty, skipping the conversion INFO | jvm 1 | main | 2018/05/03 23:29:29.594 | WARN [hybrisHTTP39] [DefaultRuleEngineCacheService] Globals map for evaluation context [promotions-context] is empty. Rules won't be evaluated!

Also, when i try to publish the Promotion from Backoffice , i am getting the below error.

INFO [hybrisHTTP45] [DefaultPlatformRuleEngineService] Notifying other nodes about Kie Container swap started for module [promotions-module] INFO [hybrisHTTP45] [DefaultRuleEngineKieModuleSwapper] swapping started for rule module : promotions-module Exception in thread "RulePublisher-Thread-120" java.lang.NullPointerException at java.util.concurrent.ConcurrentHashMap.putVal(ConcurrentHashMap.java:1011) at java.util.concurrent.ConcurrentHashMap.put(ConcurrentHashMap.java:1006)at de.hybris.platform.ruleengine.cache.impl.DefaultKIEModuleCacheBuilder.processRule(DefaultKIEModuleCacheBuilder.java:93)at de.hybris.platform.ruleengineservices.cache.impl.DefaultCommerceKIEModuleCacheBuilder.processRule(DefaultCommerceKIEModuleCacheBuilder.java:52)at de.hybris.platform.ruleengine.init.impl.DefaultRulePublishingSpliterator.addRulesBuilder(DefaultRulePublishingSpliterator.java:161)

Can i get any inputs on how can we resolve these issues?

View Entire Topic
Former Member
0 Kudos

I am getting the same error while publishing the promotion rule. Any solution to fix it?

0 Kudos

We are facing the same issue. Any suggestion?