Symptom
When triggering Forgotten Password mail, below exception is raised for mail generation.
"level":"ERROR","loggerName":"de.hybris.platform.processengine.process.ProcessengineTaskRunner","message":"Error executing ActionNode with ID [generateForgottenPasswordEmail]: java.lang.IllegalStateException: media does not have URL, cannot get the stream","thrown":{"commonElementCount":0,"localizedMessage":"Error executing ActionNode with ID [generateForgottenPasswordEmail]: java.lang.IllegalStateException: media does not have URL, cannot get the stream","message":"Error executing ActionNode with ID [generateForgottenPasswordEmail]: java.lang.IllegalStateException: media does not have URL, cannot get the stream","name":"de.hybris.platform.processengine.definition.NodeExecutionException","cause":{"commonElementCount":27,"localizedMessage":"java.lang.IllegalStateException: media does not have URL, cannot get the stream","message":"java.lang.IllegalStateException: media does not have URL, cannot get the stream","name":"de.hybris.platform.servicelayer.media.NoDataAvailableException","cause":{"commonElementCount":27,"localizedMessage":"media does not have URL, cannot get the stream","message":"media does not have URL, cannot get the stream","name":"java.lang.IllegalStateException","extendedStackTrace":[{
"class":"com.google.common.base.Preconditions","method":"checkState","file":"Preconditions.java","line":507,"exact":false,"location":"guava-27.0.1-jre.jar","version":"?"},{
"class":"de.hybris.platform.jalo.media.MediaManager","method":"tryToGetStreamFromUrl","file":"MediaManager.java","line":401,"exact":false,"location":"coreserver.jar","version":"?"},{
"class":"de.hybris.platform.jalo.media.MediaManager","method":"getMediaAsStream","file":"MediaManager.java","line":395,"exact":false,"location":"coreserver.jar","version":"?"},{
"class":"de.hybris.platform.servicelayer.media.impl.DefaultMediaService","method":"getStreamFromMedia","file":"DefaultMediaService.java","line":281,"exact":false,"location":"coreserver.jar","version":"?"},{
"class":"de.hybris.platform.acceleratorservices.process.strategies.impl.DefaultEmailTemplateTranslationStrategy","method":"getPropertiesRootPath","file":"DefaultEmailTemplateTranslationStrategy.java","line":74,"exact":false,"location":"acceleratorservicesserver.jar","version":"?"},{
"class":"de.hybris.platform.acceleratorservices.process.strategies.impl.DefaultEmailTemplateTranslationStrategy","method":"translateMessagesForTemplate","file":"DefaultEmailTemplateTranslationStrategy.java","line":47,"exact":false,"location":"acceleratorservicesserver.jar","version":"?"},{
"class":"de.hybris.platform.acceleratorservices.process.email.context.impl.DefaultEmailContextFactory","method":"create","file":"DefaultEmailContextFactory.java","line":47,"exact":false,"location":"acceleratorservicesserver.jar","version":"?"},{
"class":"de.hybris.platform.acceleratorservices.email.impl.DefaultEmailGenerationService","method":"generate","file":"DefaultEmailGenerationService.java","line":56,"exact":false,"location":"acceleratorservicesserver.jar","version":"?"},{
"class":"de.hybris.platform.acceleratorservices.process.email.actions.GenerateEmailAction","method":"executeAction","file":"GenerateEmailAction.java","line":102,"exact":false,"location":"acceleratorservicesserver.jar","version":"?"},{
"class":"de.hybris.platform.processengine.action.AbstractSimpleDecisionAction","method":"execute","file":"AbstractSimpleDecisionAction.java","line":43,"exact":false,"location":"processingserver.jar","version":"?"},{
"class":"de.hybris.platform.processengine.definition.ActionNode","method":"executeWithContext","file":"ActionNode.java","line":214,"exact":false,"location":"processingserver.jar","version":"?"}]},"extendedStackTrace":[{
"class":"de.hybris.platform.servicelayer.media.impl.DefaultMediaService","method":"getStreamFromMedia","file":"DefaultMediaService.java","line":285,"exact":false,"location":"coreserver.jar","version":"?"},{
"class":"de.hybris.platform.acceleratorservices.process.strategies.impl.DefaultEmailTemplateTranslationStrategy","method":"getPropertiesRootPath","file":"DefaultEmailTemplateTranslationStrategy.java","line":74,"exact":false,"location":"acceleratorservicesserver.jar","version":"?"},{
"class":"de.hybris.platform.acceleratorservices.process.strategies.impl.DefaultEmailTemplateTranslationStrategy","method":"translateMessagesForTemplate","file":"DefaultEmailTemplateTranslationStrategy.java","line":47,"exact":false,"location":"acceleratorservicesserver.jar","version":"?"},{
"class":"de.hybris.platform.acceleratorservices.process.email.context.impl.DefaultEmailContextFactory","method":"create","file":"DefaultEmailContextFactory.java","line":47,"exact":false,"location":"acceleratorservicesserver.jar","version":"?"},{
"class":"de.hybris.platform.acceleratorservices.email.impl.DefaultEmailGenerationService","method":"generate","file":"DefaultEmailGenerationService.java","line":56,"exact":false,"location":"acceleratorservicesserver.jar","version":"?"},{
"class":"de.hybris.platform.acceleratorservices.process.email.actions.GenerateEmailAction","method":"executeAction","file":"GenerateEmailAction.java","line":102,"exact":false,"location":"acceleratorservicesserver.jar","version":"?"},{
"class":"de.hybris.platform.processengine.action.AbstractSimpleDecisionAction","method":"execute","file":"AbstractSimpleDecisionAction.java","line":43,"exact":false,"location":"processingserver.jar","version":"?"},
...
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
mail generation, java.lang.IllegalStateException: media does not have URL, cannot get the stream , KBA , CEC-SCC-PLA-PL , Platform , Problem
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.