I get the errors while adding items from POS with lates trunk, w/o any
changes.
Here is the patch that i did for CheckOutHelper that uses ShoppingCart and
then LinkedMap.get(index).
I didnot create a jira for this patch, becase after the patch is applied,
the items are added to cart w/o errors (from POS) but at the order creation
i get java.lang.UnsupportedOperationException due to some other chages that
i didnot checked.
Here you can see where is used .get(index)
Index:
applications/order/src/org/ofbiz/order/shoppingcart/CheckOutHelper.java
===================================================================
--- applications/order/src/org/ofbiz/order/shoppingcart/CheckOutHelper.java
(revision 585935)
+++ applications/order/src/org/ofbiz/order/shoppingcart/CheckOutHelper.java
(working copy)
@@ -780,9 +783,10 @@
List shipAmt = new ArrayList(totalItems);
// Debug.logInfo("====== makeTaxContext passed in shipAddress=" +
shipAddress, module);
+ Iterator it = csi.shipItemInfo.keySet().iterator();
- for (int i = 0; i < totalItems; i++) {
- ShoppingCartItem cartItem = (ShoppingCartItem)
csi.shipItemInfo.get(i);
+ for (int i = 0; it.hasNext(); i++) {
+ ShoppingCartItem cartItem = (ShoppingCartItem) it.next();
ShoppingCart.CartShipInfo.CartShipItemInfo itemInfo =
csi.getShipItemInfo(cartItem);
//Debug.logInfo("In makeTaxContext for item [" + i + "] in ship
group [" + shipGroup + "] got cartItem: " + cartItem, module);
There are some other places in CheckOutHelper like csi.shipItemInfo.get(x)
--
View this message in context:
http://www.nabble.com/Errors-in-latest-ofbiz-trunk-tf4646718.html#a13275697
Sent from the OFBiz - Dev mailing list archive at Nabble.com.