AnsweredAssumed Answered

Runtime Exception in Sample App?

Question asked by Ideal-Networks on Feb 13, 2015
Latest reply on Feb 11, 2016 by emmanouil007

Hi,

 

Testing the cmx sample app "DemoLaunchActivity" gives this error on startup on two Android 4.4.4 devices - stack trace as below.

Would be grateful for any ideas, thanks.

(Strangely the problem does not happen on an older 4.0.3 tablet, which works fine with our app server)

 

These steps complete ok:

 

02-13 17:31:30.901: D/CMXClient(12024): Client location request successed...

02-13 17:31:30.938: I/ActivityManager(994): START u0 {act=com.cisco.cmx.action.MAIN cmp=com.cisco.cmx.app/.DemoCMXMainActivity (has extras)} from pid 12024

 

But then I get the following exception:

 

 

Motorola Moto E on Android 4.4.4

 

 

02-13 17:31:31.012: E/AndroidRuntime(12024): FATAL EXCEPTION: main

02-13 17:31:31.012: E/AndroidRuntime(12024): Process: com.cisco.cmx.app, PID: 12024

02-13 17:31:31.012: E/AndroidRuntime(12024): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.cisco.cmx.app/com.cisco.cmx.app.DemoCMXMainActivity}: java.lang.RuntimeException: Parcel android.os.Parcel@4194d9e8: Unmarshalling unknown type code 5439568 at offset 1128

02-13 17:31:31.012: E/AndroidRuntime(12024):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2198)

02-13 17:31:31.012: E/AndroidRuntime(12024):     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2257)

02-13 17:31:31.012: E/AndroidRuntime(12024):     at android.app.ActivityThread.access$800(ActivityThread.java:139)

02-13 17:31:31.012: E/AndroidRuntime(12024):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1210)

02-13 17:31:31.012: E/AndroidRuntime(12024):     at android.os.Handler.dispatchMessage(Handler.java:102)

02-13 17:31:31.012: E/AndroidRuntime(12024):     at android.os.Looper.loop(Looper.java:136)

02-13 17:31:31.012: E/AndroidRuntime(12024):     at android.app.ActivityThread.main(ActivityThread.java:5086)

02-13 17:31:31.012: E/AndroidRuntime(12024):     at java.lang.reflect.Method.invokeNative(Native Method)

02-13 17:31:31.012: E/AndroidRuntime(12024):     at java.lang.reflect.Method.invoke(Method.java:515)

02-13 17:31:31.012: E/AndroidRuntime(12024):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)

02-13 17:31:31.012: E/AndroidRuntime(12024):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)

02-13 17:31:31.012: E/AndroidRuntime(12024):     at dalvik.system.NativeStart.main(Native Method)

02-13 17:31:31.012: E/AndroidRuntime(12024): Caused by: java.lang.RuntimeException: Parcel android.os.Parcel@4194d9e8: Unmarshalling unknown type code 5439568 at offset 1128

02-13 17:31:31.012: E/AndroidRuntime(12024):     at android.os.Parcel.readValue(Parcel.java:2080)

02-13 17:31:31.012: E/AndroidRuntime(12024):     at android.os.Parcel.readArrayMapInternal(Parcel.java:2313)

02-13 17:31:31.012: E/AndroidRuntime(12024):     at android.os.Bundle.unparcel(Bundle.java:249)

02-13 17:31:31.012: E/AndroidRuntime(12024):     at android.os.Bundle.getParcelableArrayList(Bundle.java:1250)

02-13 17:31:31.012: E/AndroidRuntime(12024):     at com.cisco.cmx.ui.CMXMainActivity.onCreate(CMXMainActivity.java:120)

02-13 17:31:31.012: E/AndroidRuntime(12024):     at android.app.Activity.performCreate(Activity.java:5248)

02-13 17:31:31.012: E/AndroidRuntime(12024):     at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1110)

02-13 17:31:31.012: E/AndroidRuntime(12024):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2162)

02-13 17:31:31.012: E/AndroidRuntime(12024):     ... 11 more

 

 

Same exception on a LG nexus 5 on Android 4.4.4:

 

02-13 17:10:59.571: E/AndroidRuntime(8566): FATAL EXCEPTION: main

02-13 17:10:59.571: E/AndroidRuntime(8566): Process: com.cisco.cmx.app, PID: 8566

02-13 17:10:59.571: E/AndroidRuntime(8566): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.cisco.cmx.app/com.cisco.cmx.app.DemoCMXMainActivity}: java.lang.RuntimeException: Parcel android.os.Parcel@43073998: Unmarshalling unknown type code 5439568 at offset 1128

02-13 17:10:59.571: E/AndroidRuntime(8566):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2184)

02-13 17:10:59.571: E/AndroidRuntime(8566):     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2233)

02-13 17:10:59.571: E/AndroidRuntime(8566):     at android.app.ActivityThread.access$800(ActivityThread.java:135)

02-13 17:10:59.571: E/AndroidRuntime(8566):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)

02-13 17:10:59.571: E/AndroidRuntime(8566):     at android.os.Handler.dispatchMessage(Handler.java:102)

02-13 17:10:59.571: E/AndroidRuntime(8566):     at android.os.Looper.loop(Looper.java:136)

02-13 17:10:59.571: E/AndroidRuntime(8566):     at android.app.ActivityThread.main(ActivityThread.java:5001)

02-13 17:10:59.571: E/AndroidRuntime(8566):     at java.lang.reflect.Method.invokeNative(Native Method)

02-13 17:10:59.571: E/AndroidRuntime(8566):     at java.lang.reflect.Method.invoke(Method.java:515)

02-13 17:10:59.571: E/AndroidRuntime(8566):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)

02-13 17:10:59.571: E/AndroidRuntime(8566):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)

02-13 17:10:59.571: E/AndroidRuntime(8566):     at dalvik.system.NativeStart.main(Native Method)

02-13 17:10:59.571: E/AndroidRuntime(8566): Caused by: java.lang.RuntimeException: Parcel android.os.Parcel@43073998: Unmarshalling unknown type code 5439568 at offset 1128

02-13 17:10:59.571: E/AndroidRuntime(8566):     at android.os.Parcel.readValue(Parcel.java:2080)

02-13 17:10:59.571: E/AndroidRuntime(8566):     at android.os.Parcel.readArrayMapInternal(Parcel.java:2313)

02-13 17:10:59.571: E/AndroidRuntime(8566):     at android.os.Bundle.unparcel(Bundle.java:249)

02-13 17:10:59.571: E/AndroidRuntime(8566):     at android.os.Bundle.getParcelableArrayList(Bundle.java:1250)

02-13 17:10:59.571: E/AndroidRuntime(8566):     at com.cisco.cmx.ui.CMXMainActivity.onCreate(CMXMainActivity.java:120)

02-13 17:10:59.571: E/AndroidRuntime(8566):     at android.app.Activity.performCreate(Activity.java:5231)

02-13 17:10:59.571: E/AndroidRuntime(8566):     at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)

02-13 17:10:59.571: E/AndroidRuntime(8566):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2148)

02-13 17:10:59.571: E/AndroidRuntime(8566):     ... more

Outcomes