cancel
Showing results for 
Search instead for 
Did you mean: 

Media not found exception while triggering email

We are upgrading from hybris 6.x version to 1811, and observe that i get these media related exceptions thrown everytime there is a mail that needs to be triggered as part of process.

 ERROR () () [ActionNode] Error executing
 de.hybris.platform.servicelayer.media.NoDataAvailableException: de.hybris.platform.media.exceptions.MediaNotFoundException: Media not found (requested media location: h76/h76/8796189130782.bin)
         at de.hybris.platform.servicelayer.media.impl.DefaultMediaService.getStreamFromMedia(DefaultMediaService.java:282) ~[coreserver.jar:?]
         at de.hybris.platform.commons.renderer.impl.VelocityTemplateRenderer.render(VelocityTemplateRenderer.java:71) ~[classes/:?]
         at de.hybris.platform.commons.renderer.impl.DefaultRendererService.render(DefaultRendererService.java:46) ~[classes/:?]
         at de.hybris.platform.commons.renderer.impl.DefaultRendererService.render(DefaultRendererService.java:75) ~[classes/:?]
         at de.hybris.platform.acceleratorservices.document.factory.impl.AbstractHybrisVelocityContextFactory.renderTemplate(AbstractHybrisVelocityContextFactory.java:149) ~[classes/:?]
         
         Caused by: java.io.FileNotFoundException: D:\1811\hybris\data\media\sys_master\h76\h76\8796189130782.bin (The system cannot find the path specified)

During migration, media folder needs to be copied to the newer version. But even after trying this I was consistently getting these errors. Could you please guide me on the right track. Any help will be appreciated !

Thanks

former_member620692
Active Contributor
0 Kudos

Hi - I am not 100% sure but you can try the following:

Please navigate to https://localhost:9002/maintain/cleanup (i.e. hAC > Maintenance > Cleanup) and check Orphaned media files tab if there are any orphaned media files. If yes, please remove them and restart the server.

0 Kudos

Tried this, but still face issues during server startup

 14:38:57.476 [localhost-startStop-2] ERROR de.hybris.platform.ruleengine.drools.impl.DefaultKieModuleService - Can't read serialized KieModule (kieModuleName = 'promotions-module', releaseId = 'hybris-rules:promotions:1.0.0.4')
 14:38:57.476 [localhost-startStop-2] ERROR de.hybris.platform.ruleengine.drools.impl.DefaultKieModuleService - exception caught.
 de.hybris.platform.servicelayer.media.NoDataAvailableException: de.hybris.platform.media.exceptions.MediaNotFoundException: Media not found (requested media location: kie-modules/h2c/hc6/8799133106206.zip)
Former Member
0 Kudos

Hi Sandhya,

Did you fix the above issue? if yes then please steps for how to resolve because i was facing the same issue.

Thanks, Raja.

pandeysuresh06
Participant
0 Kudos

These media files would have been present in hybris\data\media\sys_master folder but missing in the new upgraded folder structure , you need to check whether all the media files of of 6.X has been copied to media folder in 1811.

Accepted Solutions (0)

Answers (1)

Answers (1)

0 Kudos

Please check the impexes related to this email , run those impexes , it will refresh vm. so that media will be available which it is trying to find.

Former Member
0 Kudos

Hi Anoop,

Already I loaded those email Impex through HAC but still, i'm facing the same issue. Is there any alternate way to fix this issue.