You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "Jacques Le Roux (JIRA)" <ji...@apache.org> on 2014/01/03 17:33:56 UTC

[jira] [Assigned] (OFBIZ-5457) Groovy error when initiating sales order creation for unkown partyId

     [ https://issues.apache.org/jira/browse/OFBIZ-5457?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jacques Le Roux reassigned OFBIZ-5457:
--------------------------------------

    Assignee: Jacques Le Roux

> 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
>            Assignee: Jacques Le Roux
>            Priority: Minor
>         Attachments: OFBIZ-5457.patch
>
>
> 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)