[ 
http://issues.apache.org/jira/browse/OFBIZ-58?page=comments#action_12418162 ] 

Jacopo Cappellato commented on OFBIZ-58:
----------------------------------------

Daniel,

in the EditFacility screen, you have to assign an OwnerPartyId to the facility; 
after this everything should work fine.

Jacopo

> Bug - FacilityScreens.xml#ReceiveInventory bug line 106
> -------------------------------------------------------
>
>          Key: OFBIZ-58
>          URL: http://issues.apache.org/jira/browse/OFBIZ-58
>      Project: The Open For Business Project
>         Type: Bug

>   Components: order
>     Versions: SVN trunk
>  Environment: test linux system
>     Reporter: Daniel Kunkel
>     Priority: Minor

>
> Using a very fresh svn demo system with seed data...
> I placed an order using NO SUPPLIER of record for 100 GZ-1004.
> Because  not an existing supplier I entered data for "supplier" including 
> name, phone numbers, e-mail.
> Finished the order, approved, and got the error below when I went to "Quick 
> Receive purchase order" from catlog, GZ-1004, Inventory, Order 10000, order 
> screen.
> org.ofbiz.base.util.GeneralException: Error rendering screen 
> [component://product/widget/facility/FacilityScreens.xml#ReceiveInventory]: 
> org.ofbiz.base.util.GeneralException: Error running BSH script at location 
> [component://product/webapp/facility/WEB-INF/actions/inventory/receiveInventory.bsh]:
>  org.ofbiz.base.util.GeneralException: Error running BSH script at 
> [component://product/webapp/facility/WEB-INF/actions/inventory/receiveInventory.bsh],
>  line [106]: Sourced file: 
> component://product/webapp/facility/WEB-INF/actions/inventory/receiveInventory.bsh
>  : null : at Line: 106 : in file: 
> component://product/webapp/facility/WEB-INF/actions/inventory/receiveInventory.bsh
>  : facility .getRelatedOne ( "OwnerParty" )
> Target exception: java.lang.NullPointerException: Null Pointer in Method 
> Invocation
> (Sourced file: 
> component://product/webapp/facility/WEB-INF/actions/inventory/receiveInventory.bsh
>  : null) (Error running BSH script at 
> [component://product/webapp/facility/WEB-INF/actions/inventory/receiveInventory.bsh],
>  line [106]: Sourced file: 
> component://product/webapp/facility/WEB-INF/actions/inventory/receiveInventory.bsh
>  : null : at Line: 106 : in file: 
> component://product/webapp/facility/WEB-INF/actions/inventory/receiveInventory.bsh
>  : facility .getRelatedOne ( "OwnerParty" )
> Target exception: java.lang.NullPointerException: Null Pointer in Method 
> Invocation
> (Sourced file: 
> component://product/webapp/facility/WEB-INF/actions/inventory/receiveInventory.bsh
>  : null)) (Error running BSH script at location 
> [component://product/webapp/facility/WEB-INF/actions/inventory/receiveInventory.bsh]:
>  org.ofbiz.base.util.GeneralException: Error running BSH script at 
> [component://product/webapp/facility/WEB-INF/actions/inventory/receiveInventory.bsh],
>  line [106]: Sourced file: 
> component://product/webapp/facility/WEB-INF/actions/inventory/receiveInventory.bsh
>  : null : at Line: 106 : in file: 
> component://product/webapp/facility/WEB-INF/actions/inventory/receiveInventory.bsh
>  : facility .getRelatedOne ( "OwnerParty" )
> Target exception: java.lang.NullPointerException: Null Pointer in Method 
> Invocation
> (Sourced file: 
> component://product/webapp/facility/WEB-INF/actions/inventory/receiveInventory.bsh
>  : null) (Error running BSH script at 
> [component://product/webapp/facility/WEB-INF/actions/inventory/receiveInventory.bsh],
>  line [106]: Sourced file: 
> component://product/webapp/facility/WEB-INF/actions/inventory/receiveInventory.bsh
>  : null : at Line: 106 : in file: 
> component://product/webapp/facility/WEB-INF/actions/inventory/receiveInventory.bsh
>  : facility .getRelatedOne ( "OwnerParty" )
> Target exception: java.lang.NullPointerException: Null Pointer in Method 
> Invocation
> (Sourced file: 
> component://product/webapp/facility/WEB-INF/actions/inventory/receiveInventory.bsh
>  : null)))

-- 
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

Reply via email to