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

Error running the simple-method: Error running groovy script

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: Release Branch 16.11
    • Fix Version/s: 16.11.04
    • Component/s: ecommerce
    • Labels:
      None
    • Environment:

      Linux 4.9.0-3-amd64 #1 SMP Debian 4.9.30-2+deb9u1 (2017-06-18) x86_64 GNU/Linux

      Description

      The Following Errors Occurred:

      Error running the simple-method: Error running groovy script [<br/> // clear out the login fields from the cart<br/> try

      {<br/> if (cart!=null) cart.setAutoUserLogin(null, dispatcher);<br/> }

      catch (CartItemModifyException e)

      {<br/> Debug.logError(e, module);<br/> }

      <br/> ]: javax.script.ScriptException: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:<br/>Script5.groovy: 5: unable to resolve class CartItemModifyException <br/> @ line 5, column 23.<br/> } catch (CartItemModifyException e) {<br/> ^<br/><br/>1 error<br/> Method = createUpdateCustomer, File = file:/home/daniel/Development/Repositories/subversion/ofbiz-16.11/specialpurpose/ecommerce/minilang/customer/QuickAnonCustomerEvents.xml, Element = <script>, Line 507null

      Steps to reproduce the error:
      Add producs to cart (i.e. 2 x RoundGizmo) -> [Quick Checkout] -> Checkout Without Login: Quick Checkout -> Basic Information: fill in required fields -> Continue

        Issue Links

          Activity

          Hide
          jacques.le.roux Jacques Le Roux added a comment -

          Thanks Daniel,

          Groovy needs the complete path to CartItemModifyException.

          It's fixed in
          trunk r1799859 + r1799860
          R16.11 r1799862

          Previous branches not concerned, was broken by OFBIZ-7765

          Show
          jacques.le.roux Jacques Le Roux added a comment - Thanks Daniel, Groovy needs the complete path to CartItemModifyException. It's fixed in trunk r1799859 + r1799860 R16.11 r1799862 Previous branches not concerned, was broken by OFBIZ-7765

            People

            • Assignee:
              jacques.le.roux Jacques Le Roux
              Reporter:
              dcoric Daniel Coric
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development