2213587 - Missing media when Local File cache and cloud storage are used | SAP Knowledge Base Article

SAP Knowledge Base Article - Preview

2213587 - Missing media when Local File cache and cloud storage are used

Symptom

Some customers who use Local Media Cache and cloud storage encounter an issue when the media is in the cache but the file doesn't exist physically on the hard drive. When media is requested, the following exception can occur:

| jvm 1    | main    | 2013/10/22 09:12:23.627 | [0;36mDEBUG [hybrisHTTP7] [10.0.143.211] [DefaultLocalMediaFileCacheService$MediaCacheUnit] Removed cached file: /{HYBRIS_FOLDER}/data/media/sys_master/cache/root/ha8/h0b/aDRlL2hlZC84Nzk2MjU2MDQzMDM4L2Jhc2VfUHJvZHVjdC54bWw=__H__245a4601-062d-491c-931d-55fa992bce58.bin
.
.
.
.
INFO   | jvm 1    | main    | 2013/10/22 09:27:17.898 | [m[0;36mDEBUG [Thread-129] [10.0.120.161] [DefaultLocalMediaFileCacheService$MediaCacheUnit] MediaCacheUnit [cachedFile=/{HYBRIS_FOLDER}/data/media/sys_master/cache/root/ha8/h0b/aDRlL2hlZC84Nzk2MjU2MDQzMDM4L2Jhc2VfUHJvZHVjdC54bWw=__H__245a4601-062d-491c-931d-55fa992bce58.bin, toRemove=false, usageCounter=1] was marked as used [usage counter: 1]
INFO   | jvm 1    | main    | 2013/10/22 09:27:17.898 | [m[0;31mERROR [Thread-129] [10.0.120.161] [DefaultUIConfigurationService] Cannot create ui component configuration with code base: /{HYBRIS_FOLDER}/data/media/sys_master/cache/root/ha8/h0b/aDRlL2hlZC84Nzk2MjU2MDQzMDM4L2Jhc2VfUHJvZHVjdC54bWw=__H__245a4601-062d-491c-931d-55fa992bce58.bin (No such file or directory)
INFO   | jvm 1    | main    | 2013/10/22 09:27:17.898 | [mjava.lang.IllegalStateException: /{HYBRIS_FOLDER}/data/media/sys_master/cache/root/ha8/h0b/aDRlL2hlZC84Nzk2MjU2MDQzMDM4L2Jhc2VfUHJvZHVjdC54bWw=__H__245a4601-062d-491c-931d-55fa992bce58.bin (No such file or directory)
INFO   | jvm 1    | main    | 2013/10/22 09:27:17.898 |     at de.hybris.platform.media.storage.impl.DefaultLocalMediaFileCacheService$MediaCacheUnit.getStream(DefaultLocalMediaFileCacheService.java:421)
INFO   | jvm 1    | main    | 2013/10/22 09:27:17.898 |     at de.hybris.platform.media.storage.impl.DefaultLocalMediaFileCacheService.storeOrGetAsStream(DefaultLocalMediaFileCacheService.java:142)
INFO   | jvm 1    | main    | 2013/10/22 09:27:17.898 |     at de.hybris.platform.jalo.media.MediaManager.getMediaAsStream(MediaManager.java:375)
INFO   | jvm 1    | main    | 2013/10/22 09:27:17.898 |     at de.hybris.platform.jalo.media.Media.getDataFromStreamInternal(Media.java:862)
INFO   | jvm 1    | main    | 2013/10/22 09:27:17.898 |     at de.hybris.platform.jalo.media.Media.getDataFromStream(Media.java:833)
INFO   | jvm 1    | main    | 2013/10/22 09:27:17.898 |     at de.hybris.platform.jalo.media.Media.getDataFromStreamSureInternal(Media.java:905)
INFO   | jvm 1    | main    | 2013/10/22 09:27:17.898 |     at de.hybris.platform.jalo.media.Media.getDataFromInputStreamSure(Media.java:898)
INFO   | jvm 1    | main    | 2013/10/22 09:27:17.898 |     at de.hybris.platform.jalo.media.Media.getDataFromStreamSure(Media.java:883)
INFO   | jvm 1    | main    | 2013/10/22 09:27:17.898 |     at de.hybris.platform.servicelayer.media.impl.DefaultMediaService.getStreamFromMedia(DefaultMediaService.java:173)
INFO   | jvm 1    | main    | 2013/10/22 09:27:17.898 |     at de.hybris.platform.cockpit.services.config.impl.DefaultUIConfigurationService.createComponentConfiguration(DefaultUIConfigurationService.java:450)
INFO   | jvm 1    | main    | 2013/10/22 09:27:17.898 |     at de.hybris.platform.cockpit.services.config.impl.DefaultUIConfigurationService.getComponentConfiguration(DefaultUIConfigurationService.java:291)
INFO   | jvm 1    | main    | 2013/10/22 09:27:17.898 |     at de.hybris.platform.cockpit.services.config.impl.DefaultUIConfigurationService.getComponentConfiguration(DefaultUIConfigurationService.java:359)
INFO   | jvm 1    | main    | 2013/10/22 09:27:17.898 |     at de.hybris.platform.cockpit.services.search.impl.DefaultSearchService.getSearchType(DefaultSearchService.java:51)
INFO   | jvm 1    | main    | 2013/10/22 09:27:17.898 |     at de.hybris.platform.cockpit.model.advancedsearch.impl.DefaultAdvancedSearchModel.loadSearchMask(DefaultAdvancedSearchModel.java:806)
INFO   | jvm 1    | main    | 2013/10/22 09:27:17.898 |     at de.hybris.platform.cockpit.model.advancedsearch.impl.DefaultAdvancedSearchModel.loadConfiguration(DefaultAdvancedSearchModel.java:751)
INFO   | jvm 1    | main    | 2013/10/22 09:27:17.898 |     at de.hybris.platform.cockpit.model.advancedsearch.impl.DefaultAdvancedSearchModel.<init>(DefaultAdvancedSearchModel.java:113)
INFO   | jvm 1    | main    | 2013/10/22 09:27:17.898 |     at de.hybris.platform.cockpit.model.advancedsearch.impl.DefaultAdvancedSearchModel.<init>(DefaultAdvancedSearchModel.java:89)
INFO   | jvm 1    | main    | 2013/10/22 09:27:17.898 |     at de.hybris.platform.cockpit.session.impl.AbstractSearchBrowserModel.<init>(AbstractSearchBrowserModel.java:86)
INFO   | jvm 1    | main    | 2013/10/22 09:27:17.898 |     at de.hybris.platform.cockpit.session.impl.DefaultSearchBrowserModel.<init>(DefaultSearchBrowserModel.java:72)
INFO   | jvm 1    | main    | 2013/10/22 09:27:17.898 |     at de.hybris.platform.productcockpit.session.impl.DefaultProductSearchBrowserModel.<init>(DefaultProductSearchBrowserModel.java:56)
INFO   | jvm 1    | main    | 2013/10/22 09:27:17.898 |     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
INFO   | jvm 1    | main    | 2013/10/22 09:27:17.898 |     at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
INFO   | jvm 1    | main    | 2013/10/22 09:27:17.898 |     at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
INFO   | jvm 1    | main    | 2013/10/22 09:27:17.898 |     at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
INFO   | jvm 1    | main    | 2013/10/22 09:27:17.898 |     at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:147)
INFO   | jvm 1    | main    | 2013/10/22 09:27:17.898 |     at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:87)
INFO   | jvm 1    | main    | 2013/10/22 09:27:17.898 |     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:990)
INFO   | jvm 1    | main    | 2013/10/22 09:27:17.898 |     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:943)
INFO   | jvm 1    | main    | 2013/10/22 09:27:17.898 |     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485)
INFO   | jvm 1    | main    | 2013/10/22 09:27:17.898 |     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
INFO   | jvm 1    | main    | 2013/10/22 09:27:17.899 |     at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:313)
INFO   | jvm 1    | main    | 2013/10/22 09:27:17.899 |     at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
INFO   | jvm 1    | main    | 2013/10/22 09:27:17.899 |     at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1105)
INFO   | jvm 1    | main    | 2013/10/22 09:27:17.899 |     at de.hybris.platform.cockpit.model.browser.impl.DefaultBrowserModelFactory.createBrowserModel(DefaultBrowserModelFactory.java:36)
INFO   | jvm 1    | main    | 2013/10/22 09:27:17.899 |     at de.hybris.platform.productcockpit.session.impl.BrowserArea.createNewDefaultBrowser(BrowserArea.java:97)
INFO   | jvm 1    | main    | 2013/10/22 09:27:17.899 |     at de.hybris.platform.cockpit.session.impl.AbstractBrowserArea.initialize(AbstractBrowserArea.java:188)
INFO   | jvm 1    | main    | 2013/10/22 09:27:17.899 |     at de.hybris.platform.cockpit.session.impl.BaseUICockpitPerspective.initialize(BaseUICockpitPerspective.java:481)
INFO   | jvm 1    | main    | 2013/10/22 09:27:17.899 |     at de.hybris.platform.cockpit.session.impl.UISessionImpl.setCurrentPerspective(UISessionImpl.java:255)
INFO   | jvm 1    | main    | 2013/10/22 09:27:17.899 |     at de.hybris.platform.cockpit.session.impl.UISessionImpl.setCurrentPerspective(UISessionImpl.java:241)
INFO   | jvm 1    | main    | 2013/10/22 09:27:17.899 |     at de.hybris.platform.cockpit.session.impl.UISessionImpl.getCurrentPerspective(UISessionImpl.java:233)
INFO   | jvm 1    | main    | 2013/10/22 09:27:17.899 |     at de.hybris.platform.cockpit.session.impl.DefaultRequestHandler.getRequestedPerspective(DefaultRequestHandler.java:67)
INFO   | jvm 1    | main    | 2013/10/22 09:27:17.899 |     at de.hybris.platform.cockpit.components.impl.MainWindow$3.onEvent(MainWindow.java:155)
INFO   | jvm 1    | main    | 2013/10/22 09:27:17.899 |     at org.zkoss.zk.ui.impl.EventProcessor.process0(EventProcessor.java:197)
INFO   | jvm 1    | main    | 2013/10/22 09:27:17.899 |     at org.zkoss.zk.ui.impl.EventProcessor.process(EventProcessor.java:141)
INFO   | jvm 1    | main    | 2013/10/22 09:27:17.899 |     at org.zkoss.zk.ui.impl.EventProcessingThreadImpl.process0(EventProcessingThreadImpl.java:519)
INFO   | jvm 1    | main    | 2013/10/22 09:27:17.899 |     at org.zkoss.zk.ui.impl.EventProcessingThreadImpl.run(EventProcessingThreadImpl.java:446)
INFO   | jvm 1    | main    | 2013/10/22 09:27:17.899 | Caused by: java.io.FileNotFoundException: /{HYBRIS_FOLDER}/data/media/sys_master/cache/root/ha8/h0b/aDRlL2hlZC84Nzk2MjU2MDQzMDM4L2Jhc2VfUHJvZHVjdC54bWw=__H__245a4601-062d-491c-931d-55fa992bce58.bin (No such file or directory)
INFO   | jvm 1    | main    | 2013/10/22 09:27:17.899 |     at java.io.FileInputStream.open(Native Method)
INFO   | jvm 1    | main    | 2013/10/22 09:27:17.899 |     at java.io.FileInputStream.<init>(FileInputStream.java:138)
INFO   | jvm 1    | main    | 2013/10/22 09:27:17.899 |     at de.hybris.platform.media.storage.impl.DefaultLocalMediaFileCacheService$MediaCacheFileInputStream.<init>(DefaultLocalMediaFileCacheService.java:253)
INFO   | jvm 1    | main    | 2013/10/22 09:27:17.899 |     at de.hybris.platform.media.storage.impl.DefaultLocalMediaFileCacheService$MediaCacheUnit.getStream(DefaultLocalMediaFileCacheService.java:417)
INFO   | jvm 1    | main    | 2013/10/22 09:27:17.899 |     ... 45 more

Read more...

Product

SAP hybris Commerce 5.7 ; SAP hybris Commerce Suite 5.2 ; SAP hybris Commerce Suite 5.3 ; SAP hybris Commerce Suite 5.4 ; SAP hybris Commerce Suite 5.5 ; SAP hybris Commerce Suite 5.5-1 ; SAP hybris Commerce Suite 5.6 ; hybris Commerce Suite 5.0 ; hybris Commerce Suite 5.1 ; hybris Commerce Suite 5.1.1

Keywords

KBA , CEC-COM-CPS-COR , CPS Core (SAP Hybris) , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP ONE Support launchpad (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.