Fixes are available
APAR status
Closed as program error.
Error description
An application was built using Worklight 5.0.6.x has stored some data on a device using JSONStore API. The same application has been migrated to Worklgiht 6.1.0.x. Using the latest version of the application to access data that was previously stored will result in the following error: [ERROR] [WORKLIGHT] Uncaught Exception: *** -[__NSCFString substringFromIndex:]: Index 2147483647 out of bounds; string length 167 2014-08-28 02:36:07.397 Sample[2268:60b] *** Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[__NSCFString substringFromIndex:]: Index 2147483647 out of bounds; string length 167'
Local fix
Workaround not available
Problem summary
**************************************************************** * USERS AFFECTED: * * Application users running apps that were migrated from * * v5.0.6 to v6.1.0 or above, and contained JSONstore stores. * **************************************************************** * PROBLEM DESCRIPTION: * * During one of the run time checks an uncaught exception is * * thrown for index out of bounds. Part of the exception is * * shown below: * * * * Uncaught Exception: *** -[__NSCFString * * substringFromIndex:]: Index 2147483647 out of bounds; string * * * * length 167 * **************************************************************** * RECOMMENDATION: * * - * ****************************************************************
Problem conclusion
The run time check referenced in the 'Problem Description' was re-done properly to account for more edge cases, one of the edge cases that was not accounted for before the fix was due to a store created in IBM Worklight v5.0.6 and opened in IBM Worklight v6.1.0.
Temporary fix
Comments
APAR Information
APAR number
PI24836
Reported component name
WORKLIGHT CONSU
Reported component ID
5725I4301
Reported release
610
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt
Submitted date
2014-08-29
Closed date
2014-09-04
Last modified date
2014-09-04
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
Fix information
Fixed component name
WORKLIGHT CONSU
Fixed component ID
5725I4301
Applicable component levels
R610 PSY
UP
R620 PSY
UP
[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSZH4A","label":"IBM Worklight"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"610","Line of Business":{"code":"LOB45","label":"Automation"}}]
Document Information
Modified date:
15 October 2021