Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-5457

Groovy error when initiating sales order creation for unkown partyId

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

      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.

        Attachments

          Activity

            People

            • Assignee:
              jleroux Jacques Le Roux
              Reporter:
              ofbizzer Christian Carlow

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment