on 2018 Jul 07 6:57 PM
Hi All,
I have configured all email template properly as per the OOTB. I am getting below error while triggering customer registration email. Can you please guide me if anything i missed configuration. 1.Modified velocity templates and Ran initialization in local
de.hybris.platform.processengine.definition.NodeExecutionException: Error executing ActionNode with ID [generateCustomerRegistrationEmail]: Problem with get velocity stream at de.hybris.platform.processengine.definition.ActionNode.handleActionExecutionRuntimeException(ActionNode.java:201) at de.hybris.platform.processengine.definition.ActionNode.execute(ActionNode.java:176) at de.hybris.platform.processengine.process.ProcessengineTaskRunner.lambda$3(ProcessengineTaskRunner.java:169) at de.hybris.platform.processengine.process.ProcessengineTaskRunner.lambda$8(ProcessengineTaskRunner.java:562) at de.hybris.platform.processengine.process.ProcessengineTaskRunner.runProcessTask(ProcessengineTaskRunner.java:171) at de.hybris.platform.processengine.process.ProcessengineTaskRunner.lambda$2(ProcessengineTaskRunner.java:112) at de.hybris.platform.processengine.process.ProcessengineTaskRunner.lambda$9(ProcessengineTaskRunner.java:535) at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:133) at de.hybris.platform.processengine.process.ProcessengineTaskRunner.lambda$7(ProcessengineTaskRunner.java:532) at de.hybris.platform.processengine.process.ProcessengineTaskRunner.runProcessTaskInTransaction(ProcessengineTaskRunner.java:112) at de.hybris.platform.processengine.process.ProcessengineTaskRunner.lambda$1(ProcessengineTaskRunner.java:102) at de.hybris.platform.processengine.process.ProcessengineTaskRunner.lambda$6(ProcessengineTaskRunner.java:503) at de.hybris.platform.processengine.process.ProcessengineTaskRunner.doRun(ProcessengineTaskRunner.java:102) at de.hybris.platform.processengine.process.ProcessengineTaskRunner.lambda$0(ProcessengineTaskRunner.java:90) at de.hybris.platform.processengine.process.ProcessengineTaskRunner.lambda$5(ProcessengineTaskRunner.java:467) at de.hybris.platform.processengine.process.ProcessengineTaskRunner.run(ProcessengineTaskRunner.java:90) at de.hybris.platform.processengine.process.ProcessengineTaskRunner.run(ProcessengineTaskRunner.java:1) at de.hybris.platform.processengine.task.impl.ProcessengineTaskExecutionStrategy.run(ProcessengineTaskExecutionStrategy.java:30) at de.hybris.platform.task.impl.DefaultTaskService.processTask(DefaultTaskService.java:1560) at de.hybris.platform.task.impl.DefaultTaskService.process(DefaultTaskService.java:1464) at de.hybris.platform.task.impl.DefaultTaskService.processInTenant(DefaultTaskService.java:1433) at de.hybris.platform.task.impl.DefaultTaskService$5.run(DefaultTaskService.java:1311) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) at de.hybris.platform.core.threadregistry.RegistrableThread.internalRun(RegistrableThread.java:145) at de.hybris.platform.core.threadregistry.RegistrableThread.run(RegistrableThread.java:135) Caused by: de.hybris.platform.commons.renderer.exceptions.RendererException: Problem with get velocity stream at de.hybris.platform.commons.renderer.impl.VelocityTemplateRenderer.writeToOutput(VelocityTemplateRenderer.java:98) at de.hybris.platform.commons.renderer.impl.VelocityTemplateRenderer.render(VelocityTemplateRenderer.java:72) at de.hybris.platform.commons.renderer.impl.DefaultRendererService.render(DefaultRendererService.java:46) at de.hybris.platform.commons.renderer.impl.DefaultRendererService.render(DefaultRendererService.java:75) at de.hybris.platform.acceleratorservices.document.factory.impl.AbstractHybrisVelocityContextFactory.renderTemplate(AbstractHybrisVelocityContextFactory.java:149) at de.hybris.platform.acceleratorservices.document.factory.impl.AbstractHybrisVelocityContextFactory.lambda$1(AbstractHybrisVelocityContextFactory.java:107) at java.util.ArrayList.forEach(ArrayList.java:1249) at java.util.Collections$UnmodifiableCollection.forEach(Collections.java:1080) at de.hybris.platform.acceleratorservices.document.factory.impl.AbstractHybrisVelocityContextFactory.renderComponents(AbstractHybrisVelocityContextFactory.java:95) at de.hybris.platform.acceleratorservices.document.factory.impl.AbstractHybrisVelocityContextFactory.lambda$0(AbstractHybrisVelocityContextFactory.java:75) at java.util.ArrayList.forEach(ArrayList.java:1249) at de.hybris.platform.acceleratorservices.document.factory.impl.AbstractHybrisVelocityContextFactory.renderCMSSlotsIntoContext(AbstractHybrisVelocityContextFactory.java:67) at de.hybris.platform.acceleratorservices.process.email.context.impl.DefaultEmailContextFactory.renderCMSSlotsIntoEmailContext(DefaultEmailContextFactory.java:109) at de.hybris.platform.acceleratorservices.process.email.context.impl.DefaultEmailContextFactory.create(DefaultEmailContextFactory.java:66) at de.hybris.platform.acceleratorservices.email.impl.DefaultEmailGenerationService.generate(DefaultEmailGenerationService.java:63) at de.hybris.platform.acceleratorservices.process.email.actions.GenerateEmailAction.executeAction(GenerateEmailAction.java:109) at de.hybris.platform.processengine.action.AbstractSimpleDecisionAction.execute(AbstractSimpleDecisionAction.java:50) at de.hybris.platform.processengine.definition.ActionNode.execute(ActionNode.java:163) ... 25 more Caused by: java.lang.NullPointerException at org.apache.velocity.runtime.RuntimeInstance.parse(RuntimeInstance.java:1198) at org.apache.velocity.runtime.RuntimeInstance.parse(RuntimeInstance.java:1181) at org.apache.velocity.runtime.RuntimeInstance.evaluate(RuntimeInstance.java:1297) at org.apache.velocity.app.Velocity.evaluate(Velocity.java:254) at de.hybris.platform.commons.renderer.impl.VelocityTemplateRenderer.evaluate(VelocityTemplateRenderer.java:108) at de.hybris.platform.commons.renderer.impl.VelocityTemplateRenderer.writeToOutput(VelocityTemplateRenderer.java:93) ... 42 more
Request clarification before answering.
I've resolved the issue by adding null check in the .vm template, as one of the parameter was null and I was trying perform an action on the null object.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
22 | |
16 | |
4 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.