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