Symptom
When ASM extension is used on OCC with SAP Composable Storefront, the functionality is working fine (e.g. storefront can access the ASM component, search for customers, emulate them, etc.). However, inside backend java classes, when checking which customer is emulated or if there's and agent logged in using the assistedservicefacade native methods the return is always null or false, it seems ASM_SESSION_PARAMETER is always null. The issue call stack is like below.
getAsmSession:241, DefaultAssistedServiceService (de.hybris.platform.assistedserviceservices.impl)
getAgent:49, DefaultCommerceCustomerSupportService (de.hybris.platform.assistedserviceservices.impl)
isCustomerSupportAgentActive:29, DefaultCommerceCustomerSupportService (de.hybris.platform.assistedserviceservices.impl)
expandFactModel:36, DefaultCustomerSupportRAOProvider (de.hybris.platform.promotionengineservices.rao.providers)
provideRAOs:239, DefaultPromotionEngineService (de.hybris.platform.promotionengineservices.promotionengine.impl)
prepareContext:189, DefaultPromotionEngineService (de.hybris.platform.promotionengineservices.promotionengine.impl)
evaluate:162, DefaultPromotionEngineService (de.hybris.platform.promotionengineservices.promotionengine.impl)
updatePromotionsNotThreadSafe:353, DefaultPromotionEngineService (de.hybris.platform.promotionengineservices.promotionengine.impl)
updatePromotions:387, DefaultPromotionEngineService (de.hybris.platform.promotionengineservices.promotionengine.impl)
calculateCart:85, DefaultCommerceCartCalculationStrategy (de.hybris.platform.commerceservices.order.impl)
addToCart:94, DefaultCommerceAddToCartStrategy (de.hybris.platform.commerceservices.order.impl)
addToCart:35, SelectiveCartAddToCartStrategy (de.hybris.platform.selectivecartservices.strategies)
addToCart:110, DefaultCommerceCartService (de.hybris.platform.commerceservices.order.impl)
addToCart:182, DefaultCartFacade (de.hybris.platform.commercefacades.order.impl)
addToCart:163, DefaultCartFacade (de.hybris.platform.commercefacades.order.impl)
addCartEntryInternal:279, CartEntriesController (de.hybris.platform.commercewebservices.core.v2.controller)
createCartEntry:186, CartEntriesController (de.hybris.platform.commercewebservices.core.v2.controller)
invoke:-1, CartEntriesController$$FastClassBySpringCGLIB$$303c1ad9 (de.hybris.platform.commercewebservices.core.v2.controller)
invoke:218, MethodProxy (org.springframework.cglib.proxy)
...
Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental.
Read more...
Product
Keywords
ASM, Composable Storefront, spa, assistedservicefacades, getAsmSession, null, false, OCC, session attribute, ASM_SESSION_PARAMETER , KBA , CEC-SCC-COM-AS , Assisted Services , How To
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.