order confirmation email broken with recent fix to anonymous checkout
--------------------------------------------------------------------- Key: OFBIZ-375 URL: http://issues.apache.org/jira/browse/OFBIZ-375 Project: OFBiz (The Open for Business Project) Issue Type: Bug Components: ecommerce Reporter: Si Chen 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))) -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
[ http://issues.apache.org/jira/browse/OFBIZ-375?page=all ]
David E. Jones closed OFBIZ-375. -------------------------------- Fix Version/s: SVN trunk Resolution: Fixed Assignee: David E. Jones Thanks Si, that was my mistake. In this case the parameters.get should work just as well and be compatible when the script is called through a screen rendered from a service, as in the email. The fix is in SVN rev 463814. > order confirmation email broken with recent fix to anonymous checkout > --------------------------------------------------------------------- > > Key: OFBIZ-375 > URL: http://issues.apache.org/jira/browse/OFBIZ-375 > Project: OFBiz (The Open for Business Project) > Issue Type: Bug > Components: ecommerce > Reporter: Si Chen > Assigned To: David E. Jones > Fix For: SVN trunk > > > 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))) -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
Free forum by Nabble | Edit this page |