SAP Knowledge Base Article - Preview

3500836 - Extending Server-Side Caching and using it within controllers of custom extension generated by the yocc template extension

Symptom

You encounter below error while you are trying to extend server-side caching within the custom controllers in custom extension generated by yocc template: 

ERROR [hybrisHTTP8] [AbstractRestHandlerExceptionResolver] java.lang.IllegalArgumentException: Cannot find cache named '******' for Builder[public <custom function>(<return value>)] caches=[******] | key='T(de.hybris.platform.commercewebservicescommons.cache.CommerceCacheKeyGenerator).generateKey(true,true,'*****',#*****)' | keyGenerator='' | cacheManager='' | cacheResolver='' | condition='' | unless='' | sync='false'

at org.springframework.cache.interceptor.AbstractCacheResolver.resolveCaches(AbstractCacheResolver.java:92)

at org.springframework.cache.interceptor.CacheAspectSupport.getCaches(CacheAspectSupport.java:252)


Read more...

Environment

SAP Commerce Cloud

SAP Commerce Cloud in Public Cloud

Product

SAP Commerce Cloud 2211

Keywords

Extending Server-Side Caching, Cannot find cache named '' for Builder , KBA , CEC-SCC-COM-BC-CS , Commerce Services , CEC-SCC-COM-BC-OCC , Commerce Web Services - OCC , 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.