[ 
https://issues.apache.org/jira/browse/OFBIZ-904?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13126125#comment-13126125
 ] 

Kiran Gawde commented on OFBIZ-904:
-----------------------------------

inventoryFacility can be left blank if there are more than one facility per 
store. I don't see productsummary.bsh. But the similar error happens in 
\applications\order\webapp\ordermgr\WEB-INF\actions\entry\catalog\ProductSummary.groovy.
 This is not an improvement, it is an defect. Can we please change the type on 
this issue and increase the priority? Thanks.
                
> Error when "Inventory Facility Id" is left blank in product store settings
> --------------------------------------------------------------------------
>
>                 Key: OFBIZ-904
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-904
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: product, specialpurpose/ecommerce
>         Environment: OFBiz Rev. 529997 on Windows XP.
>            Reporter: Michel Dielissen
>            Priority: Minor
>
> When creating a new store and the "Inventory Facility Id" field is left blank 
> (with the store settings) then the productlist (Browse categories in the 
> e-commerce store) gives an error and is not rendered.
> Error:
> 2007-04-19 10:13:16,515 (http-0.0.0.0-8080-Processor3) [        
> ModelScreen.java:148:ERROR] Error rendering screen 
> [component://ecommerce/widget/CatalogScreens.xml#productsummary]: 
> org.ofbiz.base.util.GeneralException: Error running BSH script at location 
> [component://order/webapp/ordermgr/WEB-INF/actions/entry/catalog/productsummary.bsh]:
>  org.ofbiz.base.util.GeneralException: Error running BSH script at 
> [component://order/webapp/ordermgr/WEB-INF/actions/entry/catalog/productsummary.bsh],
>  line [65]: Sourced file: 
> component://order/webapp/ordermgr/WEB-INF/actions/entry/catalog/productsummary.bsh
>  internal Error: Null value in getAssignableForm. : at Line: 65 : in file: 
> component://order/webapp/ordermgr/WEB-INF/actions/entry/catalog/productsummary.bsh
>  : if ( product != null ) {
>  (Sourced file: 
> component://order/webapp/ordermgr/WEB-INF/actions/entry/catalog/productsummary.bsh
>  internal Error: Null value in getAssignableForm.) (Error running BSH script 
> at 
> [component://order/webapp/ordermgr/WEB-INF/actions/entry/catalog/productsummary.bsh],
>  line [65]: Sourced file: 
> component://order/webapp/ordermgr/WEB-INF/actions/entry/catalog/productsummary.bsh
>  internal Error: Null value in getAssignableForm. : at Line: 65 : in file: 
> component://order/webapp/ordermgr/WEB-INF/actions/entry/catalog/productsummary.bsh
>  : if ( product != null ) {
>  (Sourced file: 
> component://order/webapp/ordermgr/WEB-INF/actions/entry/catalog/productsummary.bsh
>  internal Error: Null value in getAssignableForm.)). Rolling back transaction.
> Think it has something todo with:
> file:/D:/ofbiz/applications/product/script/org/ofbiz/product/inventory/InventoryServices.xml
> 2007-04-19 10:12:27,843 (http-0.0.0.0-8080-Processor3) [  
> ServiceDispatcher.java:459:DEBUG] Sync service 
> [ecommerce/getInventoryAvailableByFacility]
> So maybe the "Inventory Facility Id" field has to be a required field? Or 
> maybe better to run the "getInventoryAvailableByFacility" only when an 
> Inventory Facility is filled with the store settings?
> Comment Jacopo: this should be improved; for example the facility in the 
> store should be mandatory if the requireInventory flag is set.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to