NullPointerException When Calling POR_CUSTOM_PKG.CUSTOM_DEFAULT_REQ_DIST

(Doc ID 2354760.1)

Last updated on FEBRUARY 23, 2018

Applies to:

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

Symptoms

Problem Statement
When attempting to call POR_CUSTOM_PKG.CUSTOM_DEFAULT_REQ_DIST with result code 1, the following error occurs.

Error

## Detail 0 ##
java.lang.NullPointerException
at oracle.apps.icx.por.req.server.CheckoutSummarySvrCmd.getFirstDistribution(CheckoutSummarySvrCmd.java:1017)
at oracle.apps.icx.por.req.server.CheckoutSummarySvrCmd.prepareReqDistsForDisplay(CheckoutSummarySvrCmd.java:674)
at oracle.apps.icx.por.req.server.CheckoutSummarySvrCmd.prepareReqLinesForDisplay(CheckoutSummarySvrCmd.java:605)
at oracle.apps.icx.por.req.server.CheckoutSummarySvrCmd.prepareReqSummaryVOForDisplay(CheckoutSummarySvrCmd.java:463)
at oracle.apps.icx.por.req.server.CheckoutSummarySvrCmd.prepareForDisplay(CheckoutSummarySvrCmd.java:286)
at oracle.apps.icx.por.req.server.CheckoutSummarySvrCmd.executeMethodByName(CheckoutSummarySvrCmd.java:157)
at oracle.apps.icx.por.req.server.CheckoutInfoBaseSvrCmd.execute(CheckoutInfoBaseSvrCmd.java:161)
...

Steps to Reproduce

  1. Enable the profile below to Y at the site or responsibility level:

    POR: Enable Req Distribution Customization

  2. Change the code of POR_CUSTOM_PKG.CUSTOM_DEFAULT_REQ_DIST as below and compile the package.
  3. Go to the iProcurement responsibility.
  4. Add an item into shopping cart.
  5. Click the checkout button then face the error.

Changes

 

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