Fixes are available
APAR status
Closed as program error.
Error description
A hybrid application may force close or fail to capture data when returning from the camera view, when using the cordova built-in camera recording plugin (navigator.camera.getPicture function). The following errors will be logged upon the force close: java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=2, result=-1, data=Intent { }} to activity {###}: java.lang.NullPointerException or java.lang.IllegalStateException: Do not perform IO operations on the UI thread. Use CordovaInterface.getThreadPool() instead. When the application doesn't force close, it will fail to capture the data. Additional Keywords: Worklight Versions Affected: 5.x, 6.x Initial Impact: High
Local fix
Problem summary
**************************************************************** * USERS AFFECTED: * * Worklight developers and users of Worklight hybrid * * applications which use the Cordova built-in camera recording * * plugin. * **************************************************************** * PROBLEM DESCRIPTION: * * When returning from the camera view in a Worklight hybrid * * application, the application may force close or fail to * * capture the data. * **************************************************************** * RECOMMENDATION: * * - * ****************************************************************
Problem conclusion
The code has been fixed so that camera functionality operates correctly.
Temporary fix
Comments
APAR Information
APAR number
PI12596
Reported component name
WORKLIGHT CONSU
Reported component ID
5725I4301
Reported release
600
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt
Submitted date
2014-02-26
Closed date
2014-06-29
Last modified date
2014-06-29
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
R506 PSY
UP
R600 PSY
UP
R610 PSY
UP
[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSZH4A","label":"IBM Worklight"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"600","Line of Business":{"code":"LOB45","label":"Automation"}}]
Document Information
Modified date:
15 October 2021