on ‎2019 Jul 29 5:41 PM
Hi, we are using hybris 1811.8 and the OOTB free gift promotion and when reloading the cart we get this model saving exception:
INFO 2019-07-29 16:34:37,180 [hybrisHTTP7] [RestHandlerExceptionResolver] Translating exception [de.hybris.platform.servicelayer.exceptions.ModelSavingException]: item 8796133228588 no longer valid (was removed): object no longer valid ERROR 2019-07-29 16:34:37,181 [hybrisHTTP7] [RestHandlerExceptionResolver] de.hybris.platform.servicelayer.exceptions.ModelSavingException: item 8796133228588 no longer valid (was removed): object no longer valid at de.hybris.platform.servicelayer.internal.model.impl.DefaultModelService.saveAll(DefaultModelService.java:694) at de.hybris.platform.servicelayer.internal.model.impl.DefaultModelService.saveAll(DefaultModelService.java:653) at de.hybris.platform.promotionengineservices.action.impl.DefaultAddProductToCartActionStrategy.apply(DefaultAddProductToCartActionStrategy.java:145) at de.hybris.platform.promotionengineservices.action.impl.DefaultAddProductToCartActionStrategy$$FastClassBySpringCGLIB$$5ee0a3ad.invoke() at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204) at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:736) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157) at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:56) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:671) at de.hybris.platform.promotionengineservices.action.impl.DefaultAddProductToCartActionStrategy$$EnhancerBySpringCGLIB$$4179c83f.apply() at de.hybris.platform.ruleengineservices.action.impl.DefaultRuleActionService.applyAllActions(DefaultRuleActionService.java:72) at de.hybris.platform.promotionengineservices.promotionengine.impl.DefaultPromotionRuleActionService.applyAllActions(DefaultPromotionRuleActionService.java:42) at de.hybris.platform.promotionengineservices.promotionengine.impl.DefaultPromotionEngineService.updatePromotionsNotThreadSafe(DefaultPromotionEngineService.java:376) at de.hybris.platform.promotionengineservices.promotionengine.impl.DefaultPromotionEngineService.updatePromotions(DefaultPromotionEngineService.java:408) at de.hybris.platform.commerceservices.order.impl.DefaultCommerceCartCalculationStrategy.recalculateCart(DefaultCommerceCartCalculationStrategy.java:123) at de.hybris.platform.commerceservices.order.impl.DefaultCommerceCartRestorationStrategy.restoreCart(DefaultCommerceCartRestorationStrategy.java:79) at de.hybris.platform.commerceservices.order.impl.DefaultCommerceCartService.restoreCart(DefaultCommerceCartService.java:322) at de.hybris.platform.commercewebservicescommons.strategies.impl.DefaultCartLoaderStrategy.restoreCart(DefaultCartLoaderStrategy.java:142) at de.hybris.platform.commercewebservicescommons.strategies.impl.DefaultCartLoaderStrategy.loadAnonymousCart(DefaultCartLoaderStrategy.java:179) at de.hybris.platform.commercewebservicescommons.strategies.impl.DefaultCartLoaderStrategy.loadCart(DefaultCartLoaderStrategy.java:91)
Sometimes we then have no products in the cnd when refreshing again the products are back
i checked one possible solution from https://answers.sap.com/questions/12753211/view.html but it did not work for us.
Any suggestions what might cause this problem?
Request clarification before answering.
Hi Jacoob,
the issue is mostly due to concurrent or parallel requests on cart one for viewing the cnd one of them for recalculation. pls find the parallel ones and make them one after other to resolve the issue.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.