Stringindexoutofbounds Exception During Sync (Doc ID 553273.1)

Last updated on SEPTEMBER 21, 2016

Applies to:

Oracle Lite - Version 10.0.0.1.0 to 10.3.0.1.0 [Release 10.0 to 10.3]
Information in this document applies to any platform.
***Checked for relevance on 17-Jun-2013***


Symptoms

You are syncing a Client and receive an error stating Stringindexoutofbounds.

When you look at the sync logs for the Client on the Mobile Server you will see an error similar to the following.

Sync session exception stack trace:
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.checkBounds(String.java:283)
at java.lang.String.<init>(String.java:370)
at oracle.lite.sync.okrl4p_tField_MD.byteArray2Object(Unknown Source)
at oracle.lite.sync.OKRL4PRecord.restoreFields(Unknown Source)
at oracle.lite.sync.DmlProcessorM.executeInsertUpdate(Unknown Source)
at oracle.lite.sync.DmlProcessorM.executeInsertUpdate(Unknown Source)
at oracle.lite.sync.HeliosSession.executeIU(Unknown Source)
at oracle.lite.sync.HeliosSession.startSession(Unknown Source)
at oracle.lite.sync.resume.Client$1.run(Unknown Source)
at oracle.lite.sync.resume.ThreadPool$PoolTask.run(Unknown Source)

If you trace the Client you will see the following in the debug.txt file(s)

add_to_list done
EokErr=(unknown error)
mess=(String index out of range: -1)
AddLog(2000 "ERROR",2000,"02/05/2008 18:31:15","RESEND:Ein interner Fehler ist aufgetreten. String index out of range: -1")
aftersync()=-9025
ROLLBACK OKAPI $consroot
ROLLBACK OKAPI conscli

Changes

You have modified one or more of the base tables in the application but not all Clients have synced successfully

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