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

Groovy error when initiating sales order creation for unkown partyId

    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

        1. OFBIZ-5457.patch
          1 kB
          Christian Carlow

        Activity

          People

            jleroux Jacques Le Roux
            ofbizzer Christian Carlow
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: