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

order confirmation email broken with recent fix to anonymous checkout

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • Trunk
    • ecommerce
    • None

    Description

      With recent fix to anonymous checkout, I'm getting this error. It seems that when the orderstatus.bsh is called from the screen widget, the request value is null, and this causes the service to crash:

      2006-10-13 11:28:11,577 (invoker-Thread-6) [ ServiceDispatcher.java:410:ERROR] Service Error [sendOrderConfirmation]: Error rendering screen for email: org.ofbiz.base.util.GeneralException: Error rendering screen component://ecommerce/widget/EmailOrderScreens.xml#OrderConfirmNotice: org.ofbiz.base.util.GeneralException: Error running BSH script at location [component://ecommerce/webapp/ecommerce/WEB-INF/actions/order/orderstatus.bsh]: org.ofbiz.base.util.GeneralException: Error running BSH script at [component://ecommerce/webapp/ecommerce/WEB-INF/actions/order/orderstatus.bsh], line [42]: Sourced file: component://ecommerce/webapp/ecommerce/WEB-INF/actions/order/orderstatus.bsh : Attempt to resolve method: getAttribute() on undefined variable or class name: request : at Line: 42 : in file: component://ecommerce/webapp/ecommerce/WEB-INF/actions/order/orderstatus.bsh : request .getAttribute ( "temporaryAnonymousUserLogin" )
      (Sourced file: component://ecommerce/webapp/ecommerce/WEB-INF/actions/order/orderstatus.bsh : Attempt to resolve method: getAttribute() on undefined variable or class name: request) (Error running BSH script at [component://ecommerce/webapp/ecommerce/WEB-INF/actions/order/orderstatus.bsh], line [42]: Sourced file: component://ecommerce/webapp/ecommerce/WEB-INF/actions/order/orderstatus.bsh : Attempt to resolve method: getAttribute() on undefined variable or class name: request : at Line: 42 : in file: component://ecommerce/webapp/ecommerce/WEB-INF/actions/order/orderstatus.bsh : request .getAttribute ( "temporaryAnonymousUserLogin" )
      (Sourced file: component://ecommerce/webapp/ecommerce/WEB-INF/actions/order/orderstatus.bsh : Attempt to resolve method: getAttribute() on undefined variable or class name: request)) (Error running BSH script at location [component://ecommerce/webapp/ecommerce/WEB-INF/actions/order/orderstatus.bsh]: org.ofbiz.base.util.GeneralException: Error running BSH script at [component://ecommerce/webapp/ecommerce/WEB-INF/actions/order/orderstatus.bsh], line [42]: Sourced file: component://ecommerce/webapp/ecommerce/WEB-INF/actions/order/orderstatus.bsh : Attempt to resolve method: getAttribute() on undefined variable or class name: request : at Line: 42 : in file: component://ecommerce/webapp/ecommerce/WEB-INF/actions/order/orderstatus.bsh : request .getAttribute ( "temporaryAnonymousUserLogin" )
      (Sourced file: component://ecommerce/webapp/ecommerce/WEB-INF/actions/order/orderstatus.bsh : Attempt to resolve method: getAttribute() on undefined variable or class name: request) (Error running BSH script at [component://ecommerce/webapp/ecommerce/WEB-INF/actions/order/orderstatus.bsh], line [42]: Sourced file: component://ecommerce/webapp/ecommerce/WEB-INF/actions/order/orderstatus.bsh : Attempt to resolve method: getAttribute() on undefined variable or class name: request : at Line: 42 : in file: component://ecommerce/webapp/ecommerce/WEB-INF/actions/order/orderstatus.bsh : request .getAttribute ( "temporaryAnonymousUserLogin" )
      (Sourced file: component://ecommerce/webapp/ecommerce/WEB-INF/actions/order/orderstatus.bsh : Attempt to resolve method: getAttribute() on undefined variable or class name: request)))

      Attachments

        Activity

          People

            jonesde David E. Jones
            sichen Si Chen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: