Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
-
None
Description
This error is generated when an unknown partyId is entered in the Customer field of the sales order entry form:
ERROR rendering error page [/error/error.jsp], but here is the error text: org.ofbiz.widget.screen.ScreenRenderException: Error rendering screen component://order/widget/ordermgr/OrderEntryScreens.xml#CheckInits: java.lang.IllegalArgumentException: Error running script at location [component://order/webapp/ordermgr/WEB-INF/actions/entry/CheckInits.groovy]: groovy.lang.GroovyRuntimeException: Ambiguous method overloading for method org.ofbiz.entity.util.EntityUtil#getFirst. Cannot resolve which method to invoke for [null] due to overlapping prototypes between: [interface java.util.Collection] [interface java.util.List] (Error running script at location [component://order/webapp/ordermgr/WEB-INF/actions/entry/CheckInits.groovy]: groovy.lang.GroovyRuntimeException: Ambiguous method overloading for method org.ofbiz.entity.util.EntityUtil#getFirst. Cannot resolve which method to invoke for [null] due to overlapping prototypes between: [interface java.util.Collection] [interface java.util.List])
To resolve the issue, lines 60-63 of /ofbiz-svn-trunk-local/applications/order/webapp/ordermgr/WEB-INF/actions/entry/CheckInits.groovy should be wrapped in an IF block checking for the existence of the product variable previously assigned.