Symptom
Set the property commerceservices.cartValidityPeriod=0 and you will see the below exception when a customer with an existing cart logs back-in.
org.springframework.security.web.access.intercept.FilterSecurityInterceptor@2f32316f]]]]'!; nested exception is item 8796486271019 no longer valid (was removed): object no longer valid] with root cause item 8796486271019 no longer valid (was removed): object no longer valid at de.hybris.platform.jalo.Item$CachedGetter.get(Item.java:695) at de.hybris.platform.jalo.ExtensibleItem.getProperty(ExtensibleItem.java:363) at de.hybris.platform.jalo.order.GeneratedAbstractOrder.getCurrency(GeneratedAbstractOrder.java:286) at sun.reflect.GeneratedMethodAccessor1047.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at de.hybris.platform.jalo.type.ReflectionAttributeAccess$AttributeMethod.invokeGetter(ReflectionAttributeAccess.java:739) at de.hybris.platform.jalo.type.ReflectionAttributeAccess.getValue(ReflectionAttributeAccess.java:944) at de.hybris.platform.jalo.Item.getAttribute(Item.java:1862) at de.hybris.platform.servicelayer.internal.model.impl.JaloPersistenceObject.readRawValue(JaloPersistenceObject.java:111) at de.hybris.platform.servicelayer.internal.converter.impl.ItemModelConverter.readSingleAttribute(ItemModelConverter.java:1381) at de.hybris.platform.servicelayer.internal.converter.impl.ItemAttributeProvider.getAttribute(ItemAttributeProvider.java:108) at de.hybris.platform.servicelayer.model.ItemModelContextImpl.loadUnlocalizedAttribute(ItemModelContextImpl.java:292) at de.hybris.platform.servicelayer.model.ItemModelContextImpl.getValue(ItemModelContextImpl.java:252) at de.hybris.platform.servicelayer.model.ItemModelContextImpl.getPropertyValue(ItemModelContextImpl.java:268) at de.hybris.platform.core.model.order.AbstractOrderModel.getCurrency(AbstractOrderModel.java:318) at de.hybris.platform.commerceservices.order.impl.DefaultCommerceCartRestorationStrategy.restoreCart(DefaultCommerceCartRestorationStrategy.java:104) at de.hybris.platform.commerceservices.order.impl.DefaultCommerceCartService.restoreCart(DefaultCommerceCartService.java:322) at de.hybris.platform.commercefacades.order.impl.DefaultCartFacade.restoreSavedCart(DefaultCartFacade.java:259) at de.hybris.platform.acceleratorstorefrontcommons.strategy.impl.DefaultCartRestorationStrategy.restoreCart(DefaultCartRestorationStrategy.java:43) at de.hybris.platform.acceleratorstorefrontcommons.security.StorefrontAuthenticationSuccessHandler.onAuthenticationSuccess(StorefrontAuthenticationSuccessHandler.java:93) at org.mytraining.storefront.security.GUIDAuthenticationSuccessHandler.onAuthenticationSuccess(GUIDAuthenticationSuccessHandler.java:39) at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.successfulAuthentication(AbstractAuthenticationProcessingFilter.java:326) at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:240)
Read more...
Environment
SAP Customer Experience / Hybris
Product
SAP Hybris Commerce 6.6 ; SAP Hybris Commerce 6.7
Keywords
Cart Validity Restoration , KBA , CEC-SCC-COM-BC-WSC , Web Services Commons , Bug Filed
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.