My Oracle Support Banner

Adding Inactive Item In Shopping List To Cart Throws Unexpected Error - IndexOutOfBoundsException (Doc ID 2748845.1)

Last updated on FEBRUARY 02, 2021

Applies to:

Oracle iProcurement - Version 12.2.9 and later
Information in this document applies to any platform.

Symptoms

Version 12.2.9 iProcurement

Selecting inactive item only in iProcurement Shopping List and adds to cart throws Unexpected Error.
In case inactive item and other active item added to cart, it throws meaningful message to user.

STEPS
----------------
 In iProcurement responsibility:
  1.Go to iProcurement Home Page -> Shopping List
  - User has Inactive Item (262435) sourcing Agreement in User Favourites
  2. Select Inactive Item (only)
  - click ‘Add to Cart’
 3. Returns Error

ERROR
-------------
  You have encountered unexpected error. Please contact your System Administrator.

  Exception details
oracle.apps.fnd.framework.OAException: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 at oracle.apps.fnd.framework.OAException.wrapperInvocationTargetException(OAException.java:998) at oracle.apps.fnd.framework.server.OAUtility.invokeMethod(Unknown Source) at oracle.apps.fnd.framework.server.OAApplicationModuleImpl.invokeMethod(OAApplicationModuleImpl.java:741) at oracle.apps.icx.por.common.webui.ClientUtil.invokeMethod(ClientUtil.java:1051) at oracle.apps.icx.icatalog.shopping.webui.ShoppingClientHelper.addToReqs(ShoppingClientHelper.java:273) at oracle.apps.icx.icatalog.shopping.webui.ShoppingClientHelper.addToReqsForSearchResults(ShoppingClientHelper.java:1462) at or
.
## Detail 0 ##
 java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 at com.sun.java.util.collections.ArrayList.RangeCheck(ArrayList.java:492) at com.sun.java.util.collections.ArrayList.get(ArrayList.java:306) at oracle.apps.icx.por.req.server.AddToCartSvrCmd.execute(AddToCartSvrCmd.java:298) at oracle.apps.icx.por.common.server.PorBaseAMImpl.executeServerCommand(PorBaseAMImpl.java:122) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces

EXPECTED RESULTS
-----------------------------------
  In stead of Unexpected error, meaningful message gets shown to user.

Cause

To view full details, sign in with your My Oracle Support account.

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


In this Document
Symptoms
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.