1 Reply Latest reply on Mar 4, 2014 2:27 AM by Kutir Mobility

    Mobile Applications(using Sencha Touch 2.3 with Rho Elements (RMS 4)) fails to launch in emulator

    Shailja Sehgal

      We have developed a mobile application using Sencha Touch 2.3 with Rho Elements (RMS 4).  When packaged and deployed on MC40 running android, the application works fine. But when the same application is installed on the Android Emulator, the application crashes. We were able to capture the logs from the Android Emulator.(pasted below)

       

      These are the additional details:

      Android emulator run on Windows box running Windows 7.

      Android emulator version : Platform 4.1.2 with API Level=16

      Android NDK and SDK version : Platform 4.1.2 with API Level=16

       

      Our goal is to run the automated test scripts running the application on the Android emulator, so has anyone seen such issues with the Android Emulator?

       

      **************Logs***************************************

       

       

      03-02 18:22:04.345: E/AndroidRuntime(752): FATAL EXCEPTION: main

      03-02 18:22:04.345: E/AndroidRuntime(752): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.rhomobile.stores/com.rhomobile.rhodes.RhodesActivity}: java.lang.NullPointerException

      03-02 18:22:04.345: E/AndroidRuntime(752):       at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2059)

      03-02 18:22:04.345: E/AndroidRuntime(752):       at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2084)

      03-02 18:22:04.345: E/AndroidRuntime(752):       at android.app.ActivityThread.access$600(ActivityThread.java:130)

      03-02 18:22:04.345: E/AndroidRuntime(752):       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1195)

      03-02 18:22:04.345: E/AndroidRuntime(752):       at android.os.Handler.dispatchMessage(Handler.java:99)

      03-02 18:22:04.345: E/AndroidRuntime(752):       at android.os.Looper.loop(Looper.java:137)

      03-02 18:22:04.345: E/AndroidRuntime(752):       at android.app.ActivityThread.main(ActivityThread.java:4745)

      03-02 18:22:04.345: E/AndroidRuntime(752):       at java.lang.reflect.Method.invokeNative(Native Method)

      03-02 18:22:04.345: E/AndroidRuntime(752):       at java.lang.reflect.Method.invoke(Method.java:511)

      03-02 18:22:04.345: E/AndroidRuntime(752):       at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)

      03-02 18:22:04.345: E/AndroidRuntime(752):       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)

      03-02 18:22:04.345: E/AndroidRuntime(752):       at dalvik.system.NativeStart.main(Native Method)

      03-02 18:22:04.345: E/AndroidRuntime(752): Caused by: java.lang.NullPointerException

      03-02 18:22:04.345: E/AndroidRuntime(752):       at com.motorolasolutions.rhoelements.ElementsCore.configureWebKit(ElementsCore.java:466)

      03-02 18:22:04.345: E/AndroidRuntime(752):       at com.rhoelementsext.RhoElementsProxy.onStart(RhoElementsProxy.java:67)

      03-02 18:22:04.345: E/AndroidRuntime(752):       at com.rhomobile.rhodes.extmanager.RhoExtManagerImpl.onStartActivity(RhoExtManagerImpl.java:814)

      03-02 18:22:04.345: E/AndroidRuntime(752):       at com.rhomobile.rhodes.RhodesActivity.onStart(RhodesActivity.java:264)

      03-02 18:22:04.345: E/AndroidRuntime(752):       at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1163)

      03-02 18:22:04.345: E/AndroidRuntime(752):       at android.app.Activity.performStart(Activity.java:5018)

      03-02 18:22:04.345: E/AndroidRuntime(752):       at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2032)

      03-02 18:22:04.345: E/AndroidRuntime(752):       ... 11 more

      03-02 18:22:19.905: E/GTalkService(283): connectionClosed: no XMPPConnection - That's strange!