Skip to Content
author's profile photo Former Member
Former Member

how to enable promotion engine and what extension we need to add in extension for localextension.xml

I'm migrating 6.5 with latest patch

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Apr 27, 2018 at 02:16 PM

    I'm adding these extesnion

         <extension name="couponbackoffice" />
         <extension name="droolsruleengineservices" />
         <extension name="couponfacades" />
         <extension name="promotionenginesamplesaddon" />
         <extension name='promotionengineatddtests' />
         <extension name="ruleengineservices"/>
    

    for enabling promotion engine , done a build and system update. now in the site when i'm trying to product cart it's throwing 500 internal error

    error: ERROR [hybrisHTTP23] [[DispatcherServlet]] Servlet.service() for servlet [DispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is java.lang.IllegalArgumentException: The Fact Context Type with name 'PROMOTION_ORDER' is not defined] with root cause java.lang.IllegalArgumentException: The Fact Context Type with name 'PROMOTION_ORDER' is not defined at de.hybris.platform.ruleengineservices.rao.providers.impl.DefaultFactContextFactory.createFactContext(DefaultFactContextFactory.java:41) ~[ruleengineservicesserver.jar:?] at de.hybris.platform.promotionengineservices.promotionengine.impl.DefaultPromotionEngineService.evaluate(DefaultPromotionEngineService.java:184) ~[promotionengineservicesserver.jar:?] at de.hybris.platform.promotionengineservices.promotionengine.impl.DefaultPromotionEngineService.updatePromotionsNotThreadSafe(DefaultPromotionEngineService.java:397) ~[promotionengineservicesserver.jar:?] at de.hybris.platform.promotionengineservices.promotionengine.impl.DefaultPromotionEngineService.updatePromotions(DefaultPromotionEngineService.java:432) ~[promotionengineservicesserver.jar:?] at com.tourtrek.core.commerceservices.order.impl.TTCommerceCartCalculationStrategy.calculateCart(TTCommerceCartCalculationStrategy.java:56) ~[classes/:?] at de.hybris.platform.commerceservices.order.impl.DefaultCommerceCartCalculationStrategy.calculateCart(DefaultCommerceCartCalculationStrategy.java:61) ~[classes/:?] at com.tourtrek.core.commerceservices.order.impl.TTCommerceAddToCartStrategy.addToCart(TTCommerceAddToCartStrategy.java:110) ~[classes/:?] at com.tourtrek.core.commerceservices.order.impl.DefaultTTCommerceBookingCartMergingStrategy.mergeCarts(DefaultTTCommerceBookingCartMergingStrategy.java:88) ~[classes/:?] at com.tourtrek.core.commerceservices.order.impl.DefaultTTCommerceBookingCartService.mergeCarts(DefaultTTCommerceBookingCartService.java:84) ~[classes/:?] at com.tourtrek.facades.order.impl.DefaultTTBookingCartFacade.mergeBookingCart(DefaultTTBookingCartFacade.java:343) ~[classes/:?] at com.tourtrek.storefront.controllers.pages.ProductPageController.postProductDetailPage(ProductPageController.java:713) ~[classes/:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_111] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_111] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_111] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_111] at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:205) ~[spring-web-4.3.14.RELEASE.jar:4.3.14.RELEASE] at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:133) ~[spring-web-4.3.14.RELEASE.jar:4.3.14.RELEASE] at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:110) ~[spring-webmvc-4.1.7.RELEASE.jar:4.3.14.RELEASE] at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandleMethod(RequestMappingHandlerAdapter.java:776) ~[spring-webmvc-4.1.7.RELEASE.jar:4.3.14.RELEASE] at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:705) ~[spring-webmvc-4.1.7.RELEASE.jar:4.3.14.RELEASE] at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85) ~[spring-webmvc-4.1.7.RELEASE.jar:4.3.14.RELEASE] at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:959) ~[spring-webmvc-4.1.7.RELEASE.jar:4.3.14.RELEASE] at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:893) ~[spring-webmvc-4.1.7.RELEASE.jar:4.3.14.RELEASE]

    error 2:ERROR [hybrisHTTP25] [[DispatcherServlet]] Servlet.service() for servlet [DispatcherServlet] in context with path [] threw exception [Error while processing internal filterchain. Exception occurred at chain position: 9 of 19. Current filter: 'com.tourtrek.storefront.filters.CartRestorationFilter@5c8fcfb7'!; nested exception is java.lang.NullPointerException] with root cause java.lang.NullPointerException: null at com.tourtrek.core.commerceservices.order.validation.impl.ASMOverrideTTModifyCartValidator.validate(ASMOverrideTTModifyCartValidator.java:27) ~[classes/:?] at com.tourtrek.core.commerceservices.order.validation.impl.DefaultTTModifyCartValidationChainHandler.handle(DefaultTTModifyCartValidationChainHandler.java:30) ~[classes/:?] at com.tourtrek.facades.order.converters.populator.TourOrderEntryGroupPopulator.createGroupData(TourOrderEntryGroupPopulator.java:179) ~[classes/:?] at com.tourtrek.facades.order.converters.populator.TourOrderEntryGroupPopulator.populate(TourOrderEntryGroupPopulator.java:90) ~[classes/:?] at de.hybris.platform.commercefacades.order.converters.populator.OrderEntryGroupPopulator.populate(OrderEntryGroupPopulator.java:1) ~[classes/:?] at de.hybris.platform.converters.impl.AbstractPopulatingConverter.populate(AbstractPopulatingConverter.java:73) ~[classes/:?] at de.hybris.platform.converters.impl.AbstractConverter.convert(AbstractConverter.java:41) ~[classes/:?] at de.hybris.platform.commercefacades.order.impl.DefaultCartFacade.getSessionCart(DefaultCartFacade.java:108) ~[classes/:?] at com.tourtrek.storefront.filters.CartRestorationFilter.doFilterInternal(CartRestorationFilter.java:54) ~[classes/:?] at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) ~[spring-web-4.3.14.RELEASE.jar:4.3.14.RELEASE] at de.hybris.platform.servicelayer.web.AbstractPlatformFilterChain$InternalFilterChain.doFilter(AbstractPlatformFilterChain.java:271) ~[coreserver.jar:?] at com.tourtrek.storefront.filters.AnonymousCheckoutFilter.doFilterInternal(AnonymousCheckoutFilter.java:74) ~[classes/:?] at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) ~[spring-web-4.3.14.RELEASE.jar:4.3.14.RELEASE] at de.hybris.platform.servicelayer.web.AbstractPlatformFilterChain$InternalFilterChain.doFilter(AbstractPlatformFilterChain.java:271) ~[coreserver.jar:?] at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:317) ~[spring-security-web-4.2.4.RELEASE.jar:4.2.4.RELEASE] at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:127) ~[spring-security-web-4.2.4.RELEASE.jar:4.2.4.RELEASE] at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:91) ~[spring-security-web-4.2.4.RELEASE.jar:4.2.4.RELEASE] at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331) ~[spring-security-web-4.2.4.RELEASE.jar:4.2.4.RELEASE] at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:114) ~[spring-security-web-4.2.4.RELEASE.jar:4.2.4.RELEASE] at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331) ~[spring-security-web-4.2.4.RELEASE.jar:4.2.4.RELEASE]

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Seems like

        <bean id="defaultPromotionOrderRaoProvidersMapping" depends-on="raoProviders" parent="mapMergeDirective" >
               <property name="key" value="PROMOTION_ORDER"/>
               <property name="value" ref="orderPromotionRaoProviders"/>
           </bean>
           
           <bean id="defaultPromotionProductRaoProvidersMapping" depends-on="raoProviders" parent="mapMergeDirective" >
               <property name="key" value="PROMOTION_PRODUCT"/>
               <property name="value" ref="productPromotionRaoProviders"/>
           </bean>
      
      

      these both are not merging to RAO providers and in the DefaultFactContextFactory while trying to createFactContext for PROMOTION_ORDER.It is not able to find the above the map values. Do I need to configure any where to pickup promotionengineservices-spring.xml?

  • Posted on Apr 27, 2018 at 10:27 AM

    Dear ,

    To learn about promotion engine I'd like you to visit this URL: https://help.hybris.com/6.7.0/hcd/0947959d9daf467cadc8c678da95a438.html

    I hope that you will find all information that you need.

    In case of any questions feel free to ask.

    Best Regards

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.