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

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

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

Nicolas Malin (Jira)
Sergei Biletnikov created OFBIZ-5086:
----------------------------------------

             Summary: Wrong order confirmation email template
                 Key: OFBIZ-5086
                 URL: https://issues.apache.org/jira/browse/OFBIZ-5086
             Project: OFBiz
          Issue Type: Bug
    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@...

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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira