Christian Carlow created OFBIZ-5457:
---------------------------------------
Summary: Groovy error when initiating sales order creation for
unkown partyId
Key: OFBIZ-5457
URL: https://issues.apache.org/jira/browse/OFBIZ-5457
Project: OFBiz
Issue Type: Bug
Reporter: Christian Carlow
Priority: Minor
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.
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)