Index Out Of Bounds Exception Encountered On Base Adhoc Validation Algorithm (Doc ID 1334408.1)

Last updated on JUNE 30, 2011

Applies to:

Oracle Utilities Customer Care and Billing - Version: 2.1.0 and later   [Release: 2.1 and later ]
Information in this document applies to any platform.

Symptoms

An Adhoc Value Characteristic Type has been defined to use a Validation Rule Algorithm (CMADHV-AMT) which uses BASE Algorithm Type ADHV-PHN.

When this Characteristic Type is added to an entity, but an INVALID format is used, an error similar to the one shown below occurs.

Example:

The format is:
> 9.99

But when the following value entered on the characteristic the error occurs:
> 1



ERROR
-----------------------
SYSUSER - 247144-365-1 2011-04-18 14:11:08,493 [Parent Reader:Thread-68] ERROR (support.cobol.CobolToJavaGateway) An unexpected error occurred building error information to pass to cobol from a Java call from cobol.
java.lang.IndexOutOfBoundsException: Index: 9, Size: 9
at java.util.ArrayList.RangeCheck(ArrayList.java:546)
at java.util.ArrayList.get(ArrayList.java:321)
at com.splwg.base.support.cobol.CobolArray.getArrayElement(CobolArray.java:45)
at com.splwg.base.support.cobol.CobolToJavaGateway.populateZMSGNFromAppError(CobolToJavaGateway.java:201)
at com.splwg.base.support.cobol.CobolToJavaGateway.basicUpdateCICZMSGNWithError(CobolToJavaGateway.java:163)
at com.splwg.base.support.cobol.CobolToJavaGateway.updateCICZMSGNWithError(CobolToJavaGateway.java:85)
at com.splwg.base.support.cobol.host.command.UpdateZMSGNWithErrorCommand.invoke(UpdateZMSGNWithErrorCommand.java:33)
at com.splwg.base.support.cobol.host.PerformCommandExecuter.invoke(PerformCommandExecuter.java:68)
at com.splwg.base.support.cobol.host.OptimizedRemoteExecuterSkel$RequestSocketReader.readRequestExecuteAndRespond(OptimizedRemoteExecuterSkel.java:154)
at com.splwg.base.support.cobol.host.OptimizedRemoteExecuterSkel$RequestSocketReader.run(OptimizedRemoteExecuterSkel.java:88)
at com.splwg.base.support.cobol.host.SocketThreadPool$WrappingParentRunnable.run(SocketThreadPool.java:164)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Thread.java:595)


STEPS
-----------------------
The issue can be reproduced at will with the following steps:
1. Create an Adhoc Value Characteristic Type which uses a Validation Rule Algorithm based on Algorithm Type ADHV-PHN
2. Add a characteristic of this type on an entity, but ensure that the added value does NOT conform to any specified format
3. Observe that the error listed above occurs

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