You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by Michel Dielissen <mi...@dielissen.info> on 2007/04/19 10:51:12 UTC
Error when "Inventory Facility Id" is left blank
FYI
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. Took me some time
to find this out.
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?
-Michel
--
View this message in context: http://www.nabble.com/Error-when-%22Inventory-Facility-Id%22-is-left-blank-tf3605833.html#a10074170
Sent from the OFBiz - User mailing list archive at Nabble.com.
Re: Error when "Inventory Facility Id" is left blank
Posted by Michel Dielissen <mi...@dielissen.info>.
Ok, done.
Regards,
Michel
Jacopo Cappellato wrote:
>
> Yes,
>
> this should be improved; for example the facility in the store should be
> mandatory if the requireInventory flag is set.
> Could you please create a jira issue for this?
>
> Thanks!
>
> Jacopo
>
> Michel Dielissen wrote:
>> FYI
>>
>> 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. Took me some
>> time
>> to find this out.
>>
>> 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?
>>
>> -Michel
>
>
>
--
View this message in context: http://www.nabble.com/Error-when-%22Inventory-Facility-Id%22-is-left-blank-tf3605833.html#a10075153
Sent from the OFBiz - User mailing list archive at Nabble.com.
Re: Error when "Inventory Facility Id" is left blank
Posted by Jacopo Cappellato <ti...@sastau.it>.
Yes,
this should be improved; for example the facility in the store should be
mandatory if the requireInventory flag is set.
Could you please create a jira issue for this?
Thanks!
Jacopo
Michel Dielissen wrote:
> FYI
>
> 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. Took me some time
> to find this out.
>
> 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?
>
> -Michel