Emergency Contact Address Validation Errors: A java.lang.StringIndexOutOfBoundsException: String index out of range: 2 (Doc ID 2089404.1)

Last updated on JULY 31, 2016

Applies to:

Oracle Self-Service Human Resources - Version 12.1.3 and later
Information in this document applies to any platform.

Symptoms

On :  12.1.3 version, BasicDet,Address,Phone,Contact

When attempting to enter Emergency Contacts, without an address, the following error occurs.

Form validation error is displayed
Form validation failures:
A value must be entered for "Address Line 1".
A value must be entered for "City".
A value must be entered for "Postal Code".

A java.lang.StringIndexOutOfBoundsException: String index out of range: 2

 

Steps to Reproduce:
The issue can be reproduced at will with the following steps:

1. Navigate to Employee Self-Service > Personal Information function
2. Personal Information page is displayed
3. Click on Update button in Emergency Contacts for the selected “Contact1, test” contact
4. Change the First Name to “test1”
5. Click Next. Form validation error is displayed

Form validation failures:
A value must be entered for "Address Line 1".
A value must be entered for "City".
A value must be entered for "Postal Code".

6. Select empty Country
7. Click Next. The following exception occurs: A java.lang.StringIndexOutOfBoundsException: String index out of range: 2

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