APAR status
Closed as program error.
Error description
When developing a Dojo-enabled application, widgets do not render when the application is deployed in an emulator or on a device; however, the application renders properly when previewing in the Mobile Browser Simulator.
Local fix
One can work around this by disabling the development configuration for using the associated Dojo Library project. To do this, open the Console view in Worklight Studio (Window > Show View > Other...> Console). From the Console view, click the Open Console button and choose Dojo Library Requests from the list. From the Dojo Library Requests console, click the View Menu (the triangle in the toolbar), and uncheck Provide Library Resources. After this, build and deploy your application to your emulator or device.
Problem summary
**************************************************************** * USERS AFFECTED: * * IBM Worklight Studio 6.0 users deploying dojo-enabled * * applications to an emulator or a device. * **************************************************************** * PROBLEM DESCRIPTION: * * When developing a Dojo-enabled application, widgets do not * * render when the application is deployed in an emulator or on * * a device; however, the application renders properly when * * previewing in the Mobile Browser Simulator. This is because * * some of the modules have been mapped to a location that * * cannot be accessed from the emulator or device. * **************************************************************** * RECOMMENDATION: * **************************************************************** For the module mapping that makes use of the Dojo Library project, localhost was used as the host machine. When using Preview on the development machine, this is fine. Once deployed on a device or emulator, however, the localhost is the device and does not provide the library resources. The user may first notice that the widgets on the page do not render. Additionally, logs may also indicate a script error: Error: scriptError at file:///data/data/com.WorklightApp/files/www/default/dojo/dojo.j s:21
Problem conclusion
In the application, the code was corrected to use the host development machine's IP address instead of localhost. The fix for this APAR is currently targeted for inclusion in fixpack 6.0.0.1. A fix is available in 6.0.0.0-IF201307011413 and later.
Temporary fix
Comments
APAR Information
APAR number
PM92884
Reported component name
WORKLIGHT CONSU
Reported component ID
5725I4301
Reported release
600
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt
Submitted date
2013-07-12
Closed date
2013-07-12
Last modified date
2013-07-12
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
R600 PSY
UP
[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSZH4A","label":"IBM Worklight"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"600","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]
Document Information
Modified date:
12 July 2013