Changing Quantities That Include Comma's Crash With Java Error (java.lang.NumberFormatException) On Recalculate From Shopping Cart or Direct Item Entry Page (Doc ID 761424.1)

Last updated on SEPTEMBER 02, 2016

Applies to:

Oracle iStore - Version 12.0.4 and later
Information in this document applies to any platform.

Symptoms

After entering a quantity over 999 in the quantity field, then changing the quantity to a number
also over 999, java api crashes with a number format error the following error occurs:

ERROR

Stack:

java.lang.NumberFormatException
at java.math.BigDecimal.<init>(BigDecimal.java:368)
at java.math.BigDecimal.<init>(BigDecimal.java:647)
at oracle.apps.ibe.shoppingcart.quote.ShoppingCartItem.setQuantity(ShoppingCartItem.java:1044)
at _ibeCScpViewA._jspService(_ibeCScpViewA.java:2279)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)


-- Steps To Reproduce:
The issue can be reproduced at will with the following steps:
1. Add an item to the cart with a quantity over 999
2. Then change the quantity to a number also over 999



The same issue can be hit from the iStore Direct Item Entry page

ERROR

Stack:

java.lang.NumberFormatException: null
at java.lang.Integer.parseInt(Integer.java:415)
at java.lang.Integer.parseInt(Integer.java:497)
at _ibeCScpDirectEntry._jspService(_ibeCScpDirectEntry.java:1835)


-- Steps To Reproduce:
The issue can be reproduced at will with the following steps:
1. Go to the Direct Item Entry
2. Enter items with qty's over 999 (for example: 1,000)

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms