[ https://issues.apache.org/jira/browse/OFBIZ-6431?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Forrest Rae updated OFBIZ-6431: ------------------------------- Description: I cloned this bug, since I couldn't reopen. Create a quote with items and a QuoteTerm, and try sending the quote by email. When you try to send the report via email, you'll get a NullPointerException. I traced this done to the fact that ListQuoteInfo use a <screenlet>. org.ofbiz.widget.screen.ModelScreenWidget.Screenlet.renderWidgetString() calls org.ofbiz.widget.html.HtmlScreenRenderer.renderScreenletBegin() which calls org.ofbiz.base.util.UtilHttp.isJavaScriptEnabled(). The exception is thrown because there is no Request or Response context, as these screens are being generated via a service call. =============================================================== Error on Sending confirm email from newly created quote http://demo-trunk-ofbiz.apache.org/ordermgr/control/sendQuoteReportMail The Following Errors Occurred: Error rendering screen for email: org.ofbiz.widget.renderer.ScreenRenderException: Error rendering screen [component://order/widget/ordermgr/QuoteScreens.xml#ViewQuoteSimple]: org.ofbiz.widget.renderer.ScreenRenderException: Error rendering screen [component://order/widget/ordermgr/QuoteScreens.xml#ViewQuoteTemplate]: org.ofbiz.widget.renderer.ScreenRenderException: Error rendering screen [component://order/widget/ordermgr/QuoteScreens.xml#ViewQuoteInfo]: org.ofbiz.widget.renderer.ScreenRenderException: Error rendering screen [component://order/widget/ordermgr/QuoteScreens.xml#ListQuoteInfo]: java.lang.NullPointerException (null) (Error rendering screen [component://order/widget/ordermgr/QuoteScreens.xml#ListQuoteInfo]: java.lang.NullPointerException (null)) (Error rendering screen [component://order/widget/ordermgr/QuoteScreens.xml#ViewQuoteInfo]: org.ofbiz.widget.renderer.ScreenRenderException: Error rendering screen [component://order/widget/ordermgr/QuoteScreens.xml#ListQuoteInfo]: java.lang.NullPointerException (null) (Error rendering screen [component://order/widget/ordermgr/QuoteScreens.xml#ListQuoteInfo]: java.lang.NullPointerException (null))) (Error rendering screen [component://order/widget/ordermgr/QuoteScreens.xml#ViewQuoteTemplate]: org.ofbiz.widget.renderer.ScreenRenderException: Error rendering screen [component://order/widget/ordermgr/QuoteScreens.xml#ViewQuoteInfo]: org.ofbiz.widget.renderer.ScreenRenderException: Error rendering screen [component://order/widget/ordermgr/QuoteScreens.xml#ListQuoteInfo]: java.lang.NullPointerException (null) (Error rendering screen [component://order/widget/ordermgr/QuoteScreens.xml#ListQuoteInfo]: java.lang.NullPointerException (null)) (Error rendering screen [component://order/widget/ordermgr/QuoteScreens.xml#ViewQuoteInfo]: org.ofbiz.widget.renderer.ScreenRenderException: Error rendering screen [component://order/widget/ordermgr/QuoteScreens.xml#ListQuoteInfo]: java.lang.NullPointerException (null) (Error rendering screen [component://order/widget/ordermgr/QuoteScreens.xml#ListQuoteInfo]: java.lang.NullPointerException (null)))) was: Error on Sending confirm email from newly created quote http://demo-trunk-ofbiz.apache.org/ordermgr/control/sendQuoteReportMail The Following Errors Occurred: Error rendering screen for email: org.ofbiz.widget.renderer.ScreenRenderException: Error rendering screen [component://order/widget/ordermgr/QuoteScreens.xml#ViewQuoteSimple]: org.ofbiz.widget.renderer.ScreenRenderException: Error rendering screen [component://order/widget/ordermgr/QuoteScreens.xml#ViewQuoteTemplate]: org.ofbiz.widget.renderer.ScreenRenderException: Error rendering screen [component://order/widget/ordermgr/QuoteScreens.xml#ViewQuoteInfo]: org.ofbiz.widget.renderer.ScreenRenderException: Error rendering screen [component://order/widget/ordermgr/QuoteScreens.xml#ListQuoteInfo]: java.lang.NullPointerException (null) (Error rendering screen [component://order/widget/ordermgr/QuoteScreens.xml#ListQuoteInfo]: java.lang.NullPointerException (null)) (Error rendering screen [component://order/widget/ordermgr/QuoteScreens.xml#ViewQuoteInfo]: org.ofbiz.widget.renderer.ScreenRenderException: Error rendering screen [component://order/widget/ordermgr/QuoteScreens.xml#ListQuoteInfo]: java.lang.NullPointerException (null) (Error rendering screen [component://order/widget/ordermgr/QuoteScreens.xml#ListQuoteInfo]: java.lang.NullPointerException (null))) (Error rendering screen [component://order/widget/ordermgr/QuoteScreens.xml#ViewQuoteTemplate]: org.ofbiz.widget.renderer.ScreenRenderException: Error rendering screen [component://order/widget/ordermgr/QuoteScreens.xml#ViewQuoteInfo]: org.ofbiz.widget.renderer.ScreenRenderException: Error rendering screen [component://order/widget/ordermgr/QuoteScreens.xml#ListQuoteInfo]: java.lang.NullPointerException (null) (Error rendering screen [component://order/widget/ordermgr/QuoteScreens.xml#ListQuoteInfo]: java.lang.NullPointerException (null)) (Error rendering screen [component://order/widget/ordermgr/QuoteScreens.xml#ViewQuoteInfo]: org.ofbiz.widget.renderer.ScreenRenderException: Error rendering screen [component://order/widget/ordermgr/QuoteScreens.xml#ListQuoteInfo]: java.lang.NullPointerException (null) (Error rendering screen [component://order/widget/ordermgr/QuoteScreens.xml#ListQuoteInfo]: java.lang.NullPointerException (null)))) > Error on Sending confirm email from newly created quote, Quote without Terms > ---------------------------------------------------------------------------- > > Key: OFBIZ-6431 > URL: https://issues.apache.org/jira/browse/OFBIZ-6431 > Project: OFBiz > Issue Type: Bug > Components: order > Affects Versions: Release Branch 13.07, Release Branch 14.12, Trunk > Environment: > http://demo-trunk-ofbiz.apache.org/ordermgr/control/sendQuoteReportMail > Reporter: Forrest Rae > > I cloned this bug, since I couldn't reopen. Create a quote with items and a > QuoteTerm, and try sending the quote by email. When you try to send the > report via email, you'll get a NullPointerException. I traced this done to > the fact that ListQuoteInfo use a <screenlet>. > org.ofbiz.widget.screen.ModelScreenWidget.Screenlet.renderWidgetString() > calls org.ofbiz.widget.html.HtmlScreenRenderer.renderScreenletBegin() which > calls org.ofbiz.base.util.UtilHttp.isJavaScriptEnabled(). The exception is > thrown because there is no Request or Response context, as these screens are > being generated via a service call. > =============================================================== > Error on Sending confirm email from newly created quote > http://demo-trunk-ofbiz.apache.org/ordermgr/control/sendQuoteReportMail > The Following Errors Occurred: > Error rendering screen for email: > org.ofbiz.widget.renderer.ScreenRenderException: Error rendering screen > [component://order/widget/ordermgr/QuoteScreens.xml#ViewQuoteSimple]: > org.ofbiz.widget.renderer.ScreenRenderException: Error rendering screen > [component://order/widget/ordermgr/QuoteScreens.xml#ViewQuoteTemplate]: > org.ofbiz.widget.renderer.ScreenRenderException: Error rendering screen > [component://order/widget/ordermgr/QuoteScreens.xml#ViewQuoteInfo]: > org.ofbiz.widget.renderer.ScreenRenderException: Error rendering screen > [component://order/widget/ordermgr/QuoteScreens.xml#ListQuoteInfo]: > java.lang.NullPointerException (null) (Error rendering screen > [component://order/widget/ordermgr/QuoteScreens.xml#ListQuoteInfo]: > java.lang.NullPointerException (null)) (Error rendering screen > [component://order/widget/ordermgr/QuoteScreens.xml#ViewQuoteInfo]: > org.ofbiz.widget.renderer.ScreenRenderException: Error rendering screen > [component://order/widget/ordermgr/QuoteScreens.xml#ListQuoteInfo]: > java.lang.NullPointerException (null) (Error rendering screen > [component://order/widget/ordermgr/QuoteScreens.xml#ListQuoteInfo]: > java.lang.NullPointerException (null))) (Error rendering screen > [component://order/widget/ordermgr/QuoteScreens.xml#ViewQuoteTemplate]: > org.ofbiz.widget.renderer.ScreenRenderException: Error rendering screen > [component://order/widget/ordermgr/QuoteScreens.xml#ViewQuoteInfo]: > org.ofbiz.widget.renderer.ScreenRenderException: Error rendering screen > [component://order/widget/ordermgr/QuoteScreens.xml#ListQuoteInfo]: > java.lang.NullPointerException (null) (Error rendering screen > [component://order/widget/ordermgr/QuoteScreens.xml#ListQuoteInfo]: > java.lang.NullPointerException (null)) (Error rendering screen > [component://order/widget/ordermgr/QuoteScreens.xml#ViewQuoteInfo]: > org.ofbiz.widget.renderer.ScreenRenderException: Error rendering screen > [component://order/widget/ordermgr/QuoteScreens.xml#ListQuoteInfo]: > java.lang.NullPointerException (null) (Error rendering screen > [component://order/widget/ordermgr/QuoteScreens.xml#ListQuoteInfo]: > java.lang.NullPointerException (null)))) -- This message was sent by Atlassian JIRA (v6.3.4#6332)