ibm mobilefirst - Error on real device . White screen and error:multiple define and script error on dojo.js -
worklight 5.06 , dojo 1.8. app works on android emulator , web browser doesn't works on real device. logcat:
08-08 14:58:35.520: d/dalvikvm(4470): gc_concurrent freed 437k, 8% free 6855k/7431k, paused 1ms+1ms 08-08 14:58:36.880: d/dalvikvm(4470): gc_concurrent freed 520k, 9% free 6851k/7495k, paused 1ms+2ms 08-08 14:58:37.330: d/dalvikvm(4470): gc_concurrent freed 381k, 9% free 6858k/7495k, paused 1ms+1ms 08-08 14:58:37.890: d/dalvikvm(4470): gc_concurrent freed 435k, 9% free 6856k/7495k, paused 1ms+1ms 08-08 14:58:38.530: d/dalvikvm(4470): gc_concurrent freed 404k, 9% free 6856k/7495k, paused 2ms+2ms 08-08 14:58:39.390: d/dalvikvm(4470): gc_concurrent freed 501k, 9% free 6861k/7495k, paused 1ms+2ms 08-08 14:58:39.870: d/dalvikvm(4470): gc_concurrent freed 504k, 9% free 6861k/7495k, paused 1ms+2ms 08-08 14:58:40.590: d/dalvikvm(4470): gc_concurrent freed 406k, 9% free 6869k/7495k, paused 2ms+2ms 08-08 14:58:40.630: d/dalvikvm(4470): gc_concurrent freed 523k, 9% free 6855k/7495k, paused 2ms+2ms 08-08 14:58:41.360: d/dalvikvm(4470): gc_concurrent freed 405k, 9% free 6852k/7495k, paused 2ms+2ms 08-08 14:58:43.910: d/dalvikvm(4470): gc_concurrent freed 446k, 9% free 6854k/7495k, paused 2ms+2ms 08-08 14:58:44.170: d/wldroidgap(4470): finished copying files local storage... 08-08 14:58:44.480: d/wldroidgap(4470): no need check web resource integrity 08-08 14:58:48.210: d/dalvikvm(4470): gc_concurrent freed 382k, 9% free 6864k/7495k, paused 6ms+2ms 08-08 14:58:48.240: d/cordovawebview(4470): >>> loadurl(file:///data/data/com.mobileacg/files/www/skinloader.html) 08-08 14:58:48.240: d/pluginmanager(4470): init() 08-08 14:58:48.250: d/cordovawebview(4470): >>> loadurlnow() 08-08 14:58:48.260: d/droidgap(4470): onmessage(onpagestarted,file:///data/data/com.mobileacg/files/www/skinloader.html) 08-08 14:58:48.300: d/chromium(4470): unknown chromium error: -6 08-08 14:58:48.480: d/cordova(4470): onpagefinished(file:///data/data/com.mobileacg/files/www/skinloader.html) 08-08 14:58:48.480: d/droidgap(4470): onmessage(onnativeready,null) 08-08 14:58:48.480: d/droidgap(4470): onmessage(onpagefinished,file:///data/data/com.mobileacg/files/www/skinloader.html) 08-08 14:58:48.490: i/sqlitedatabasecpp(4470): sqlite returned: error code = 14, msg = cannot open file @ line 27701 of [8609a15dfa], db=/data/data/com.mobileacg/databases/webview.db 08-08 14:58:48.490: i/sqlitedatabasecpp(4470): sqlite returned: error code = 14, msg = os_unix.c: open() @ line 27701 - "" errno=2 path=/cachedgeoposition.db, db=/data/data/com.mobileacg/databases/webview.db 08-08 14:58:48.510: d/cordovanetworkmanager(4470): connection type: wifi 08-08 14:58:48.510: d/droidgap(4470): onmessage(networkconnection,wifi) 08-08 14:58:48.510: d/cordovanetworkmanager(4470): connection type: wifi 08-08 14:58:48.520: d/droidgap(4470): onmessage(spinner,stop) 08-08 14:58:48.570: d/cordovawebview(4470): >>> loadurl(file:///data/data/com.mobileacg/files/www/default/mobileacg.html) 08-08 14:58:48.570: d/cordovawebview(4470): >>> loadurlnow() 08-08 14:58:48.570: d/droidgap(4470): onmessage(onpagestarted,file:///data/data/com.mobileacg/files/www/default/mobileacg.html) 08-08 14:58:50.160: d/cordova(4470): onpagefinished(file:///data/data/com.mobileacg/files/www/default/mobileacg.html) 08-08 14:58:50.160: d/droidgap(4470): onmessage(onnativeready,null) 08-08 14:58:50.160: d/droidgap(4470): onmessage(onpagefinished,file:///data/data/com.mobileacg/files/www/default/mobileacg.html) 08-08 14:58:50.180: d/cordovanetworkmanager(4470): connection type: wifi 08-08 14:58:50.180: d/droidgap(4470): onmessage(networkconnection,wifi) 08-08 14:58:50.190: d/cordovanetworkmanager(4470): connection type: wifi 08-08 14:58:50.190: d/droidgap(4470): onmessage(spinner,stop) 08-08 14:58:50.190: d/mobileacg(4470): ondeviceready event dispatched 08-08 14:58:50.200: d/mobileacg(4470): wlclient init started 08-08 14:58:50.200: d/mobileacg(4470): read cookies: null 08-08 14:58:50.210: d/mobileacg(4470): cookiemgr read cookies: {} 08-08 14:58:50.220: d/mobileacg(4470): before: app init onsuccess 08-08 14:58:50.220: d/mobileacg(4470): after: app init onsuccess 08-08 14:58:50.220: d/mobileacg(4470): wlclient init success 08-08 14:58:50.360: d/cordovalog(4470): error: multipledefine 08-08 14:58:50.360: e/web console(4470): error: multipledefine @ file:///data/data/com.mobileacg/files/www/default/dojo/dojo.js:26 08-08 14:58:50.480: d/droidgap(4470): onmessage(spinner,stop) 08-08 14:58:51.010: d/chromium(4470): unknown chromium error: -6 08-08 14:58:51.180: d/cordovalog(4470): error: scripterror 08-08 14:58:51.180: e/web console(4470): error: scripterror @ file:///data/data/com.mobileacg/files/www/default/dojo/dojo.js:26
this commoninit()
function creaoggettidojo(){ busy.hide();//nascondo barra di caricamento require(["dojo/ready", "dojo/store/memory", "dojox/mobile/edgetoedgestorelist", "dojox/mobile", "dojox/mobile/parser" //"dojox/grid/datagrid" ], function(ready, memory, edgetoedgestorelist){ busy = new wl.busyindicator("content", { text: "caricamento dati clienti ..."});
this dojo js:
function wlcommoninit(){ require([ "dojo/core-web-layer", "dojo/mobile-ui-layer", "dojo/mobile-compat-layer" ], dojoinit); function dojoinit() { require([ "dojo","dojo/request/script", "dojo/parser", "dojox/mobile", "dojox/mobile/compat", "dojox/mobile/devicetheme", "dojox/mobile/scrollableview", "dojox/mobile/screensizeaware", "dojox/mobile/fixedsplitter", "dojox/mobile/container", "dojox/mobile/heading", "dojox/mobile/edgetoedgelist", "dojox/mobile/listitem", "dojox/mobile/roundrect", "dojox/mobile/tabbar", "dojox/mobile/tabbarbutton", "dojox/mobile/button", "dojox/mobile/gridlayout", "dojox/mobile/pane", "dojox/mobile/scrollablepane", "dijit/form/datalist", "dojox/mobile/combobox", "dojox/mobile/edgetoedgestorelist", "dojo/store/memory", "dojox/mobile/edgetoedgedatalist", "dojo/data/itemfilereadstore", "dojo/data/itemfilewritestore", "dojox/mobile/expandingtextarea", "dojox/mobile/contentpane", ], function(dojo) { creaoggettidojo();//crea gli oggetti programmaticamente
this creaoggettidojo
function creaoggettidojo(){ busy.hide();//nascondo barra di caricamento require(["dojo/ready", "dojo/store/memory", "dojox/mobile/edgetoedgestorelist", "dojox/mobile", "dojox/mobile/parser" //"dojox/grid/datagrid" ], function(ready, memory, edgetoedgestorelist){ busy = new wl.busyindicator("content", { text: "caricamento dati clienti ..."});
the first "busy" isn't hide.
your description of symptoms seems close described in worklight core-web-layer.js errors . now, far know, holds worklight 6.0 (and should fixed in updated version), while using wl 5.0.6. in case, think worth upgrading latest available patch of recent worklight version.
Comments
Post a Comment