Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-6431

Error on Sending confirm email from newly created quote, Quote without Terms

    XMLWordPrintableJSON

Details

    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))))

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              fbr@14x.net Forrest Rae
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: