cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Emmanuel Goldstein (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CB-9338) Issue when Cordova upgrade from 3.5 to 4.0.2
Date Wed, 08 Jul 2015 22:11:05 GMT
Emmanuel Goldstein created CB-9338:
--------------------------------------

             Summary: Issue when Cordova upgrade from 3.5 to 4.0.2
                 Key: CB-9338
                 URL: https://issues.apache.org/jira/browse/CB-9338
             Project: Apache Cordova
          Issue Type: Bug
          Components: Android, CordovaJS
    Affects Versions: 4.0.1
            Reporter: Emmanuel Goldstein


I recently upgraded my cordova app from v3.5.0 to 4.0.2. When I start my app, I see a JSONException
in the logcat console as below:

W/System.err( 4761): org.json.JSONException: Value PluginManager at 0 of type java.lang.String
cannot be converted to int
W/System.err( 4761): 	at org.json.JSON.typeMismatch(JSON.java:100)
W/System.err( 4761): 	at org.json.JSONArray.getInt(JSONArray.java:357)
W/System.err( 4761): 	at org.apache.cordova.CordovaBridge.promptOnJsPrompt(CordovaBridge.java:131)
W/System.err( 4761): 	at org.apache.cordova.engine.SystemWebChromeClient.onJsPrompt(SystemWebChromeClient.java:119)
W/System.err( 4761): 	at android.webkit.CallbackProxy.handleMessage(CallbackProxy.java:655)
W/System.err( 4761): 	at android.os.Handler.dispatchMessage(Handler.java:99)
W/System.err( 4761): 	at android.os.Looper.loop(Looper.java:137)
W/System.err( 4761): 	at android.app.ActivityThread.main(ActivityThread.java:4745)
W/System.err( 4761): 	at java.lang.reflect.Method.invokeNative(Native Method)
W/System.err( 4761): 	at java.lang.reflect.Method.invoke(Method.java:511)
W/System.err( 4761): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
W/System.err( 4761): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
W/System.err( 4761): 	at dalvik.system.NativeStart.main(Native Method)
D/dalvikvm( 4761): GC_CONCURRENT freed 122K, 3% free 8470K/8711K, paused 0ms+1ms, total 4ms
D/TilesManager( 4761): new EGLContext from framework: b81ec3d0 
D/GLWebViewState( 4761): Reinit shader
D/GLWebViewState( 4761): Reinit transferQueue
W/System.err( 4761): org.json.JSONException: Value App at 0 of type java.lang.String cannot
be converted to int
W/System.err( 4761): 	at org.json.JSON.typeMismatch(JSON.java:100)
W/System.err( 4761): 	at org.json.JSONArray.getInt(JSONArray.java:357)
W/System.err( 4761): 	at org.apache.cordova.CordovaBridge.promptOnJsPrompt(CordovaBridge.java:131)
W/System.err( 4761): 	at org.apache.cordova.engine.SystemWebChromeClient.onJsPrompt(SystemWebChromeClient.java:119)
W/System.err( 4761): 	at android.webkit.CallbackProxy.handleMessage(CallbackProxy.java:655)
W/System.err( 4761): 	at android.os.Handler.dispatchMessage(Handler.java:99)
W/System.err( 4761): 	at android.os.Looper.loop(Looper.java:137)
W/System.err( 4761): 	at android.app.ActivityThread.main(ActivityThread.java:4745)
W/System.err( 4761): 	at java.lang.reflect.Method.invokeNative(Native Method)
W/System.err( 4761): 	at java.lang.reflect.Method.invoke(Method.java:511)
W/System.err( 4761): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
W/System.err( 4761): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
W/System.err( 4761): 	at dalvik.system.NativeStart.main(Native Method)
W/System.err( 4761): org.json.JSONException: Value File at 0 of type java.lang.String cannot
be converted to int
W/System.err( 4761): 	at org.json.JSON.typeMismatch(JSON.java:100)
W/System.err( 4761): 	at org.json.JSONArray.getInt(JSONArray.java:357)
W/System.err( 4761): 	at org.apache.cordova.CordovaBridge.promptOnJsPrompt(CordovaBridge.java:131)
W/System.err( 4761): 	at org.apache.cordova.engine.SystemWebChromeClient.onJsPrompt(SystemWebChromeClient.java:119)
W/System.err( 4761): 	at android.webkit.CallbackProxy.handleMessage(CallbackProxy.java:655)
W/System.err( 4761): 	at android.os.Handler.dispatchMessage(Handler.java:99)
W/System.err( 4761): 	at android.os.Looper.loop(Looper.java:137)
W/System.err( 4761): 	at android.app.ActivityThread.main(ActivityThread.java:4745)
W/System.err( 4761): 	at java.lang.reflect.Method.invokeNative(Native Method)
W/System.err( 4761): 	at java.lang.reflect.Method.invoke(Method.java:511)
W/System.err( 4761): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
W/System.err( 4761): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
W/System.err( 4761): 	at dalvik.system.NativeStart.main(Native Method)
W/ActivityManager(  333): Activity destroy timeout for ActivityRecord{53626250 com.test.app/.MainActivity}
I/Web Console( 4761): deviceready has not fired after 5 seconds. at file:///data/data/com.test.app/files/target/android/cordova.js:1154
I/Web Console( 4761): Channel not fired: onFileSystemPathsReady at file:///data/data/com.test.app/files/target/android/cordova.js:1147




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Mime
View raw message