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

Promotions are not getting applied using Promotion Engine.

sreearumilli
Participant
2,556

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?

Accepted Solutions (0)

Answers (4)

Answers (4)

gaurav11
Participant
0 Kudos

Hi,

Search for any more error messages or log entries that may provide more information about the situation that led to the NullPointerException.

DefaultKIEModuleCacheBuilder should be examined: To locate the NullPointerException, look at the DefaultKIEModuleCacheBuilder class's source code. Verify if any objects are being accessed that have not been initialised correctly.

Thanks,

0 Kudos

I am also facing the same issue

deepak_madan7
Product and Topic Expert
Product and Topic Expert
0 Kudos

we are facing the same issue. any input on how you fixed it?

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?