if all variants of a virtual product run out of stock and the disc indicator is set to 'Y' the ecommerce system abends
---------------------------------------------------------------------------------------------------------------------- Key: OFBIZ-1566 URL: https://issues.apache.org/jira/browse/OFBIZ-1566 Project: OFBiz Issue Type: Bug Components: ecommerce Affects Versions: SVN trunk Reporter: Hans Bakker if all variants of a virtual product run out of stock and the product 'disc' indicator is set to 'Y' the system abends with the following error message when the product detail page is shown of the virtual product. org.ofbiz.widget.screen.ScreenRenderException: Error rendering screen [component://ecommerce/widget/CatalogScreens.xml#productdetail]: org.ofbiz.base.util.GeneralException: Error running BSH script at location [component://order/webapp/ordermgr/WEB-INF/actions/entry/catalog/productdetail.bsh]: org.ofbiz.base.util.GeneralException: Error running BSH script at [component://order/webapp/ordermgr/WEB-INF/actions/entry/catalog/productdetail.bsh], line [422]: Sourced file: component://order/webapp/ordermgr/WEB-INF/actions/entry/catalog/productdetail.bsh : Method Invocation dispatcher.runSync : at Line: 422 : in file: component://order/webapp/ordermgr/WEB-INF/actions/entry/catalog/productdetail.bsh : dispatcher .runSync ( "getAssociatedProducts" , UtilMisc .toMap ( "productId" , productId , "type" , "PRODUCT_OBSOLESCENCE" , "checkViewAllow" , Boolean .TRUE , "prodCatalogId" , currentCatalogId ) ) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
[ https://issues.apache.org/jira/browse/OFBIZ-1566?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Hans Bakker updated OFBIZ-1566: ------------------------------- Attachment: productDisc.diff the attached patch fixes the error and will show the the virtual product with the message: this product is out of stock. please let me know is this patch is acceptable then i will commit it to the trunk. > if all variants of a virtual product run out of stock and the disc indicator is set to 'Y' the ecommerce system abends > ---------------------------------------------------------------------------------------------------------------------- > > Key: OFBIZ-1566 > URL: https://issues.apache.org/jira/browse/OFBIZ-1566 > Project: OFBiz > Issue Type: Bug > Components: ecommerce > Affects Versions: SVN trunk > Reporter: Hans Bakker > Attachments: productDisc.diff > > > if all variants of a virtual product run out of stock and the product 'disc' indicator is set to 'Y' the system abends with the following error message when the product detail page is shown of the virtual product. > org.ofbiz.widget.screen.ScreenRenderException: Error rendering screen > [component://ecommerce/widget/CatalogScreens.xml#productdetail]: > org.ofbiz.base.util.GeneralException: Error running BSH script at location > [component://order/webapp/ordermgr/WEB-INF/actions/entry/catalog/productdetail.bsh]: > org.ofbiz.base.util.GeneralException: Error running BSH script at > [component://order/webapp/ordermgr/WEB-INF/actions/entry/catalog/productdetail.bsh], > line [422]: Sourced file: > component://order/webapp/ordermgr/WEB-INF/actions/entry/catalog/productdetail.bsh > : Method Invocation dispatcher.runSync : at Line: 422 : in file: > component://order/webapp/ordermgr/WEB-INF/actions/entry/catalog/productdetail.bsh > : dispatcher .runSync ( "getAssociatedProducts" , UtilMisc .toMap ( > "productId" , productId , "type" , > "PRODUCT_OBSOLESCENCE" , "checkViewAllow" , Boolean .TRUE , > "prodCatalogId" , currentCatalogId ) ) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-1566?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Hans Bakker closed OFBIZ-1566. ------------------------------ Resolution: Fixed Fix Version/s: SVN trunk implemented in revision 611121 > if all variants of a virtual product run out of stock and the disc indicator is set to 'Y' the ecommerce system abends > ---------------------------------------------------------------------------------------------------------------------- > > Key: OFBIZ-1566 > URL: https://issues.apache.org/jira/browse/OFBIZ-1566 > Project: OFBiz > Issue Type: Bug > Components: ecommerce > Affects Versions: SVN trunk > Reporter: Hans Bakker > Fix For: SVN trunk > > Attachments: productDisc.diff > > > if all variants of a virtual product run out of stock and the product 'disc' indicator is set to 'Y' the system abends with the following error message when the product detail page is shown of the virtual product. > org.ofbiz.widget.screen.ScreenRenderException: Error rendering screen > [component://ecommerce/widget/CatalogScreens.xml#productdetail]: > org.ofbiz.base.util.GeneralException: Error running BSH script at location > [component://order/webapp/ordermgr/WEB-INF/actions/entry/catalog/productdetail.bsh]: > org.ofbiz.base.util.GeneralException: Error running BSH script at > [component://order/webapp/ordermgr/WEB-INF/actions/entry/catalog/productdetail.bsh], > line [422]: Sourced file: > component://order/webapp/ordermgr/WEB-INF/actions/entry/catalog/productdetail.bsh > : Method Invocation dispatcher.runSync : at Line: 422 : in file: > component://order/webapp/ordermgr/WEB-INF/actions/entry/catalog/productdetail.bsh > : dispatcher .runSync ( "getAssociatedProducts" , UtilMisc .toMap ( > "productId" , productId , "type" , > "PRODUCT_OBSOLESCENCE" , "checkViewAllow" , Boolean .TRUE , > "prodCatalogId" , currentCatalogId ) ) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
Free forum by Nabble | Edit this page |