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

ConcurrentModificationException in ShoppingCart.cleanUpShipGroups

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: Trunk
    • Fix Version/s: 17.12.01, 16.11.06
    • Component/s: order
    • Labels:
      None

      Description

      java.util.ConcurrentModificationException: null
              at java.util.LinkedList$ListItr.checkForComodification(LinkedList.java:966) ~[?:1.8.0_181]
              at java.util.LinkedList$ListItr.next(LinkedList.java:888) ~[?:1.8.0_181]
              at org.apache.ofbiz.order.shoppingcart.ShoppingCart.cleanUpShipGroups(ShoppingCart.java:2199) ~[ofbiz.jar:?]
      

      There's a for-loop over shipInfo and a call to clear inside this loop which leads to a ConcurrentModificationException: https://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/applications/order/src/main/java/org/apache/ofbiz/order/shoppingcart/ShoppingCart.java?view=markup#l2251

        Attachments

        1. OFBIZ-10696.diff
          0.9 kB
          Danny Trunk

          Activity

            People

            • Assignee:
              jacques.le.roux Jacques Le Roux
              Reporter:
              dtrunk90 Danny Trunk
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: