android - IBM Worklight V6.1 JSONStore.init() interrputs application -


i have simple app http adapter. when call jsonstore.init() many times application gets data , works fine, maybe every 10th re-installation on same device, application interrupts in jsonstore.init(). if touch screen , hit button, workflow goes on part. can multiple times workflow finishes, too. problem appears if manually delete jsonstore data , reopen app. appears in ios , android.

anybody idea causes problem?

this log:

06-27 09:22:48.619: i/cordovalog(29490): changing log level debug(3) 06-27 09:22:48.619: d/cordovaactivity(29490): cordovaactivity.oncreate() 06-27 09:22:48.669: v/webviewchromium(29490): binding chromium background looper looper (main, tid 1) {42270e48} 06-27 09:22:48.669: i/chromium(29490): [info:library_loader_hooks.cc(112)] chromium logging enabled: level = 0, default verbosity = 0 06-27 09:22:48.679: i/browserprocessmain(29490): initializing chromium process, renderers=0 06-27 09:22:48.689: w/chromium(29490): [warning:proxy_service.cc(888)] pac support disabled because there no system implementation 06-27 09:22:48.699: i/adreno-egl(29490): <qegldrvapi_eglinitialize:316>: egl 1.4 qualcomm build:  (cl4169980) 06-27 09:22:48.699: i/adreno-egl(29490): opengl es shader compiler version: 17.01.10.spl 06-27 09:22:48.699: i/adreno-egl(29490): build date: 02/04/14 tue 06-27 09:22:48.699: i/adreno-egl(29490): local branch:  06-27 09:22:48.699: i/adreno-egl(29490): remote branch:  06-27 09:22:48.699: i/adreno-egl(29490): local patches:  06-27 09:22:48.699: i/adreno-egl(29490): reconstruct branch:  06-27 09:22:48.739: d/cordovawebview(29490): cordovawebview running on device made by: htc 06-27 09:22:48.749: d/jsmessagequeue(29490): set native->js mode 2 06-27 09:22:48.749: d/cordovaactivity(29490): cordovaactivity.init() 06-27 09:22:48.759: w/com.worklight.androidgap.analytics.wlanalytics(29490): tlf_configurator.enable called, required tealeaf libraries not present in classpath. 06-27 09:22:48.759: d/wldroidgap(29490): new installation/upgrade detected, copying resources , saving new checksum 06-27 09:22:48.759: d/whitelist(29490): unlimited access network resources 06-27 09:22:48.759: i/cordovalog(29490): changing log level debug(3) 06-27 09:22:48.759: d/cordovaactivity(29490): resuming app 06-27 09:22:48.759: d/cordovaactivity(29490): cb-3064: errorurl null 06-27 09:22:48.789: d/softkeyboarddetect(29490): ignore event 06-27 09:22:48.890: d/softkeyboarddetect(29490): ignore event 06-27 09:22:49.050: d/wldroidgap(29490): no need check web resource integrity 06-27 09:22:49.090: d/cordovawebview(29490): >>> loadurl(file:///android_asset/www/skinloader.html) 06-27 09:22:49.090: d/pluginmanager(29490): init() 06-27 09:22:49.090: d/cordovawebview(29490): >>> loadurlnow() 06-27 09:22:49.130: d/cordovaactivity(29490): onmessage(onpagestarted,file:///android_asset/www/skinloader.html) 06-27 09:22:49.210: e/androidprotocolhandler(29490): unable open asset url: file:///android_asset/www/default/js/skinloader.js 06-27 09:22:49.270: d/cordovawebviewclient(29490): onpagefinished(file:///android_asset/www/skinloader.html) 06-27 09:22:49.270: d/cordovaactivity(29490): onmessage(onpagefinished,file:///android_asset/www/skinloader.html) 06-27 09:22:49.440: d/cordovaactivity(29490): onmessage(spinner,stop) 06-27 09:22:49.460: d/cordovanetworkmanager(29490): connection type: wifi 06-27 09:22:49.480: i/chromium(29490): [info:async_pixel_transfer_manager_android.cc(56)] async pixel transfers not supported 06-27 09:22:49.510: i/chromium(29490): [info:async_pixel_transfer_manager_android.cc(56)] async pixel transfers not supported 06-27 09:22:49.520: e/qdutils(29490): fbioget_fscreeninfo failed 06-27 09:22:49.550: d/cordovanetworkmanager(29490): connection type: wifi 06-27 09:22:49.550: d/cordovaactivity(29490): onmessage(networkconnection,wifi) 06-27 09:22:49.841: w/pluginmanager(29490): thread warning: exec() call utils.loadskin blocked main thread 207ms. plugin should use cordovainterface.getthreadpool(). 06-27 09:22:49.841: d/cordovawebview(29490): >>> loadurl(file:///android_asset/www/default/index.html) 06-27 09:22:49.841: d/pluginmanager(29490): init() 06-27 09:22:49.841: d/cordovawebview(29490): >>> loadurlnow() 06-27 09:22:49.841: d/cordovaactivity(29490): onmessage(onpagestarted,file:///android_asset/www/default/index.html) 06-27 09:22:50.191: d/cordovaactivity(29490): onmessage(spinner,stop) 06-27 09:22:50.201: d/cordovanetworkmanager(29490): connection type: wifi 06-27 09:22:50.201: d/cordovanetworkmanager(29490): connection type: wifi 06-27 09:22:50.201: d/cordovaactivity(29490): onmessage(networkconnection,wifi) 06-27 09:22:50.832: e/androidprotocolhandler(29490): unable open asset url: file:///android_asset/www/default/images/favicon.png 06-27 09:22:50.842: d/cordovawebviewclient(29490): onpagefinished(file:///android_asset/www/default/index.html) 06-27 09:22:50.842: d/cordovaactivity(29490): onmessage(onpagefinished,file:///android_asset/www/default/index.html) 06-27 09:22:50.952: w/resourcetype(29490): no package identifier when getting name resource number 0x00000064 06-27 09:22:50.952: i/inputmethodmanager(29490): [startinputinner] editorinfo { packagename=com.conferenceapp, inputtype=0xa1, imeoptions=0x12000000, privateimeoptions=null }, windowgainingfocus=android.view.viewrootimpl$w@42556108, mservedview=com.worklight.androidgap.wlwebview{4252ae18 vfedh.c. .f...... 0,0-1080,1845 #64} 06-27 09:22:50.982: w/pluginmanager(29490): thread warning: exec() call utils.writepref blocked main thread 19ms. plugin should use cordovainterface.getthreadpool(). 06-27 09:22:51.032: d/wldroidgap(29490): unregisterreceivers:receiver not registered: null 06-27 09:22:51.032: d/wldroidgap(29490): unregisterreceivers:receiver not registered: null 06-27 09:22:51.102: w/dalvikvm(29490): vfy: unable resolve direct method 31688: lorg/json/jsonexception;.<init> (ljava/lang/throwable;)v 06-27 09:22:51.112: d/com.conferenceapp(29490): extracting zip file: featurelibs/armeabi/libcrypto.so.1.0.0 06-27 09:22:51.272: d/cordovaactivity(29490): onmessage(spinner,stop) 06-27 09:22:51.272: d/com.conferenceapp(29490): loading library using system.load: /data/data/com.conferenceapp/files/libcrypto.so.1.0.0 06-27 09:22:51.322: w/pluginmanager(29490): thread warning: exec() call storageplugin.provision blocked main thread 49ms. plugin should use cordovainterface.getthreadpool(). 06-27 09:22:51.332: i/jsonstore-core(29490): performing migration jsonstore 2.0 06-27 09:22:51.372: i/wl.client(29490): wl.client.init entering 06-27 09:22:51.372: i/database(29490): jni_onload called 06-27 09:22:51.372: i/database(29490): jni_onload register methods  06-27 09:22:51.382: d/none(29490): ondeviceready event dispatched 06-27 09:22:51.382: i/wl.client(29490): wl.client onenvinit entering 06-27 09:22:51.392: d/none(29490): wlclient init started 06-27 09:22:51.402: d/none(29490): read cookies: null 06-27 09:22:51.422: d/none(29490): cookiemgr read cookies: {} 06-27 09:22:51.422: w/none(29490): application using wl.optionsmenu api. note that, if application targets android 3.0 (api level 11) or higher, wl.optionsmenu might have no effect, depending on device. 06-27 09:22:51.432: d/none(29490): adddeviceidheader deviceidsuccesscallback 06-27 09:22:51.432: d/none(29490): connectonstartup finalizeinit 06-27 09:22:51.442: d/none(29490): before: app init onsuccess 06-27 09:22:51.452: d/none(29490): [jsonstore] start... 06-27 09:22:51.462: d/none(29490): after: app init onsuccess 06-27 09:22:51.462: d/none(29490): added onpause event handler  06-27 09:22:51.482: d/none(29490): wlclient init success 

if ibm customer or business partner, can open pmr , make sure include following.

  • worklight version (there more numbers after 6.1, eclipse should tell under installed software)
  • code , steps reproduce, ideally in new project clean workspace rule out issues application code or other worklight features you're using.
  • logs (logcat , xcode logs) when works , when doesn't
  • versions mobile operating systems tested fails
  • steps took "manually delete jsonstore data"
  • make sure you're calling wl.jsonstore.init inside or after execution of wlcommoninit function inside main.js file.

someone support should able provide assistance. if turns out defect in code, development work on fix.


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -