SAP Knowledge Base Article - Preview

3211026 - Forgotten Password mail failed due to 'java.lang.IllegalStateException: media does not have URL, cannot get the stream'

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":"?"},
...


Read more...

Product

SAP Commerce Cloud 1811

Keywords

mail generation, java.lang.IllegalStateException: media does not have URL, cannot get the stream , KBA , CEC-COM-CPS-COR , SAP Commerce Core , 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.