You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "Arun Patidar (JIRA)" <ji...@apache.org> on 2014/11/15 05:03:33 UTC

[jira] [Commented] (OFBIZ-5086) Wrong order confirmation email template

    [ https://issues.apache.org/jira/browse/OFBIZ-5086?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14213340#comment-14213340 ] 

Arun Patidar commented on OFBIZ-5086:
-------------------------------------

Its due to incomplete data in ProductStoreEmailSetting entity. It can be generated by setting bodyScreenLocation field value blank.

This should be close as we should have proper data in  ProductStoreEmailSetting entity.

> Wrong order confirmation email template
> ---------------------------------------
>
>                 Key: OFBIZ-5086
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-5086
>             Project: OFBiz
>          Issue Type: Bug
>          Components: order
>    Affects Versions: Release Branch 10.04
>            Reporter: Sergei Biletnikov
>            Priority: Minor
>
> Install release 10.04 from the branch with demo data,
> open any order and click "Send a confirmation email" (button).
> for example:
> https://localhost:8443/ordermgr/control/confirmationmailedit?orderId=DEMO_B2B_IT02&partyId=DemoCustomer&sendTo=ofbiztest@yahoo.com
> Look at the generated html template, you will see the following :
> Method public java.lang.String org.ofbiz.widget.screen.ScreenRenderer.render(java.lang.String) throws org.ofbiz.base.util.GeneralException,java.io.IOException,org.xml.sax.SAXException,javax.xml.parsers.ParserConfigurationException threw an exception when invoked on org.ofbiz.widget.screen.ScreenRenderer@1d829e59 with arguments of types [java.lang.String,]
> The problematic instruction:
> ----------
> ==> ${screens.render(productStoreEmailSetting.bodyScreenLocation?default(""))} [on line 82, column 63 in component://order/webapp/ordermgr/order/sendconfirmationemail.ftl]
> ----------
> Java backtrace for programmers:
> ----------
> freemarker.template.TemplateModelException: Method public java.lang.String org.ofbiz.widget.screen.ScreenRenderer.render(java.lang.String) throws org.ofbiz.base.util.GeneralException,java.io.IOException,org.xml.sax.SAXException,javax.xml.parsers.ParserConfigurationException threw an exception when invoked on org.ofbiz.widget.screen.ScreenRenderer@1d829e59 with arguments of types [java.lang.String,]
> 	at freemarker.ext.beans.OverloadedMethodModel.exec(OverloadedMethodModel.java:134)
> 	at freemarker.core.MethodCall._getAsTemplateModel(MethodCall.java:93)
> 	at freemarker.core.Expression.getAsTemplateModel(Expression.java:89)
> ..............................



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)