OFBiz
  1. OFBiz
  2. OFBIZ-904

Error when "Inventory Facility Id" is left blank in product store settings

    Details

      Description

      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.

      1. ofbiz-904.patch
        4 kB
        Arun Patidar

        Activity

        Jacques Le Roux made changes -
        Fix Version/s Upcoming Branch [ 12327361 ]
        Fix Version/s 12.04.06 [ 12328243 ]
        Fix Version/s 13.07.02 [ 12328788 ]
        Ashish Vijaywargiya made changes -
        Status Open [ 1 ] Closed [ 6 ]
        Resolution Fixed [ 1 ]
        Ashish Vijaywargiya made changes -
        Assignee Ashish Vijaywargiya [ toashishvijay ]
        Arun Patidar made changes -
        Attachment ofbiz-904.patch [ 12681700 ]
        Jacques Le Roux made changes -
        Issue Type Improvement [ 4 ] Bug [ 1 ]
        Priority Minor [ 4 ] Major [ 3 ]
        Gavin made changes -
        Workflow jira [ 12402174 ] OFbiz Workflow [ 12504772 ]
        Jacopo Cappellato made changes -
        Field Original Value New Value
        Summary Error when "Inventory Facility Id" is left blank Error when "Inventory Facility Id" is left blank in product store settings
        Component/s product [ 12311155 ]
        Michel Dielissen created issue -

          People

          • Assignee:
            Ashish Vijaywargiya
            Reporter:
            Michel Dielissen
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development