Skip to Content

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

Add a comment
10|10000 characters needed characters exceeded

  • Sandhya M Arvind Kumar Avinash

    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 Sandhya M

    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.

  • 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.

Related questions

1 Answer

  • Posted on May 30, 2019 at 10:06 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.