StringIndexOutOfBoundsException String Index Out Of Range Exception While Processing E-Journal Queue (Doc ID 1350047.1)

Last updated on AUGUST 17, 2016

Applies to:

Oracle Retail Point-of-Service - Version 13.0.4 and later
Information in this document applies to any platform.

Symptoms

While processing E-Journal Queue exception below is thrown:

StringIndexOutOfBoundsException: String index out of range: 12 exception



Steps to Reproduce :

Scenario 1:


1. On the 'Main Options' screen, select 'F3/POS' and log in.
2. Select 'F7/Customer'.
3. Select 'Esc'.
4. Select 'F3 No/Sale'. The following message is displayed:

"You do not have security access to No Sale. Do you want to get a Manager Override? Press Yes to get
a Manager Override. Press No to return to the previous screen."


5. Select 'Yes'.
6. Enter user and grant access.
7. Select the reason code 'Customer Change'.
8. Press 'Enter'. The receipt prints.

Scenario 2:


1. On the 'Main Options' screen, select 'F3/POS' and log in.
2. Scan items
3. Increase the quantity of the items so the transaction total is more than the maximum for override, for example, 1,700.20.
4. Select 'F7/Customer'.
5. Link a customer.
6. Select 'F6/Tender'.
7. Select 'F2/Cash'. The tender amount maximum message appears.
8. Select 'Yes' and override. The receipt prints.

The following error show in orpos.log:

ERROR 2011-06-20 10:11:49,140 439890 (RMI TCP Connection(17)-10.143.200.106:com.extendyourstore.domain.arts.JdbcSaveJournalEntry):
com.extendyourstore.domain.arts.JdbcSaveJournalEntry.saveJournalEntry(JdbcSaveJournalEntry.java:274)
Jun 20, 2011 10:08:11 AM|pos||
Entering Customer
Exiting Customer

No Sale Security Override Granted
To: Cashier 0
By: Employee 10000

java.lang.StringIndexOutOfBoundsException: String index out of range: 12
at java.lang.String.substring(Unknown Source)
at com.extendyourstore.domain.arts.JdbcSaveJournalEntry.extractTransactionNumber(JdbcSaveJournalEntry.java:305)
at com.extendyourstore.domain.arts.JdbcSaveJournalEntry.saveJournalEntry(JdbcSaveJournalEntry.java:213)
at com.extendyourstore.domain.arts.JdbcSaveJournalEntry.execute(JdbcSaveJournalEntry.java:166)

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