[ 
http://issues.apache.org/jira/browse/OFBIZ-284?page=comments#action_12434733 ] 
            
John Martin commented on OFBIZ-284:
-----------------------------------

Hi Si

1. Click on the Find Order link
2. Enter an non-existing order Number
3. Press enter to search

When I wrote this up, I didn't realize it was only an error when the order 
number was invalid.

The error message was:

org.ofbiz.base.util.GeneralException: Error rendering screen 
[component://order/widget/ordermgr/OrderViewScreens.xml#OrderHeaderView]: 
org.ofbiz.base.util.GeneralException: Error running BSH script at location 
[component://order/webapp/ordermgr/WEB-INF/actions/order/orderview.bsh]: 
org.ofbiz.base.util.GeneralException: Error running BSH script at 
[component://order/webapp/ordermgr/WEB-INF/actions/order/orderview.bsh], line 
[370]: Sourced file: 
component://order/webapp/ordermgr/WEB-INF/actions/order/orderview.bsh : Error 
in method invocation: Attempt to pass void argument (position 1) to method: 
toMap : at Line: 370 : in file: 
component://order/webapp/ordermgr/WEB-INF/actions/order/orderview.bsh : 
UtilMisc .toMap ( "partyId" , partyId )
(Sourced file: 
component://order/webapp/ordermgr/WEB-INF/actions/order/orderview.bsh : Error 
in method invocation: Attempt to pass void argument (position 1) to method: 
toMap) (Error running BSH script at 
[component://order/webapp/ordermgr/WEB-INF/actions/order/orderview.bsh], line 
[370]: Sourced file: 
component://order/webapp/ordermgr/WEB-INF/actions/order/orderview.bsh : Error 
in method invocation: Attempt to pass void argument (position 1) to method: 
toMap : at Line: 370 : in file: 
component://order/webapp/ordermgr/WEB-INF/actions/order/orderview.bsh : 
UtilMisc .toMap ( "partyId" , partyId )
(Sourced file: 
component://order/webapp/ordermgr/WEB-INF/actions/order/orderview.bsh : Error 
in method invocation: Attempt to pass void argument (position 1) to method: 
toMap)) (Error running BSH script at location 
[component://order/webapp/ordermgr/WEB-INF/actions/order/orderview.bsh]: 
org.ofbiz.base.util.GeneralException: Error running BSH script at 
[component://order/webapp/ordermgr/WEB-INF/actions/order/orderview.bsh], line 
[370]: Sourced file: 
component://order/webapp/ordermgr/WEB-INF/actions/order/orderview.bsh : Error 
in method invocation: Attempt to pass void argument (position 1) to method: 
toMap : at Line: 370 : in file: 
component://order/webapp/ordermgr/WEB-INF/actions/order/orderview.bsh : 
UtilMisc .toMap ( "partyId" , partyId )
(Sourced file: 
component://order/webapp/ordermgr/WEB-INF/actions/order/orderview.bsh : Error 
in method invocation: Attempt to pass void argument (position 1) to method: 
toMap) (Error running BSH script at 
[component://order/webapp/ordermgr/WEB-INF/actions/order/orderview.bsh], line 
[370]: Sourced file: 
component://order/webapp/ordermgr/WEB-INF/actions/order/orderview.bsh : Error 
in method invocation: Attempt to pass void argument (position 1) to method: 
toMap : at Line: 370 : in file: 
component://order/webapp/ordermgr/WEB-INF/actions/order/orderview.bsh : 
UtilMisc .toMap ( "partyId" , partyId )
(Sourced file: 
component://order/webapp/ordermgr/WEB-INF/actions/order/orderview.bsh : Error 
in method invocation: Attempt to pass void argument (position 1) to method: 
toMap)))

> Runtime BSH error when searching orders with just order number
> --------------------------------------------------------------
>
>                 Key: OFBIZ-284
>                 URL: http://issues.apache.org/jira/browse/OFBIZ-284
>             Project: OFBiz (The Open for Business Project)
>          Issue Type: Bug
>          Components: order
>    Affects Versions: SVN trunk
>         Environment: Windows XP
> Java 1.5
>            Reporter: John Martin
>         Assigned To: Si Chen
>         Attachments: diff.txt
>
>
> Using the Find Order and only searching on Order Number, the orderview.bsh 
> script fails due to the partyId variable not be assigned at line 370.

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