Uploaded image for project: 'Appcelerator - INBOX'
  1. Appcelerator - INBOX
  2. AC-2852

ExceptionInInitializerError at at com.urbanairship.CoreReceiver.onReceive(Unknown Source)

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Needs more info
    • Affects Version/s: None
    • Environment:
      • Titanium SDK version: 1.7.2
      • Platform & version: Android 2.x
      • Device Details: Android emulator
      • Host Operating System: Ubuntu 9.x
      • Titanium Studio version: 1.0.2

      Description

      I have included UrbanAirship Android module version 1.1 to my titanium mobile project. First time its works fine. But while booting the emulator Push Service didnt started also its throws an error like

      08-02 05:26:38.458: WARN/dalvikvm(270): Exception Ljava/lang/NullPointerException; thrown during Lcom/urbanairship/push/PushManager;.<clinit>
      08-02 05:26:38.508: DEBUG/AndroidRuntime(270): Shutting down VM
      08-02 05:26:38.508: WARN/dalvikvm(270): threadid=1: thread exiting with uncaught exception (group=0x4001d800)
      08-02 05:26:38.517: ERROR/TiUncaughtHandler(270): (main) [590,1489] Sending event: exception on thread: main msg:java.lang.ExceptionInInitializerError; Titanium 1.7.2,2011/07/21 09:36,97c3689
      08-02 05:26:38.517: ERROR/TiUncaughtHandler(270): java.lang.ExceptionInInitializerError
      08-02 05:26:38.517: ERROR/TiUncaughtHandler(270):     at com.urbanairship.CoreReceiver.onReceive(Unknown Source)
      08-02 05:26:38.517: ERROR/TiUncaughtHandler(270):     at android.app.ActivityThread.handleReceiver(ActivityThread.java:2810)
      08-02 05:26:38.517: ERROR/TiUncaughtHandler(270):     at android.app.ActivityThread.access$3200(ActivityThread.java:125)
      08-02 05:26:38.517: ERROR/TiUncaughtHandler(270):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2083)
      08-02 05:26:38.517: ERROR/TiUncaughtHandler(270):     at android.os.Handler.dispatchMessage(Handler.java:99)
      08-02 05:26:38.517: ERROR/TiUncaughtHandler(270):     at android.os.Looper.loop(Looper.java:123)
      08-02 05:26:38.517: ERROR/TiUncaughtHandler(270):     at android.app.ActivityThread.main(ActivityThread.java:4627)
      08-02 05:26:38.517: ERROR/TiUncaughtHandler(270):     at java.lang.reflect.Method.invokeNative(Native Method)
      08-02 05:26:38.517: ERROR/TiUncaughtHandler(270):     at java.lang.reflect.Method.invoke(Method.java:521)
      08-02 05:26:38.517: ERROR/TiUncaughtHandler(270):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
      08-02 05:26:38.517: ERROR/TiUncaughtHandler(270):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
      08-02 05:26:38.517: ERROR/TiUncaughtHandler(270):     at dalvik.system.NativeStart.main(Native Method)
      08-02 05:26:38.517: ERROR/TiUncaughtHandler(270): Caused by: java.lang.NullPointerException
      08-02 05:26:38.517: ERROR/TiUncaughtHandler(270):     at com.urbanairship.push.PushManager.<init>(Unknown Source)
      08-02 05:26:38.517: ERROR/TiUncaughtHandler(270):     at com.urbanairship.push.PushManager.<clinit>(Unknown Source)
      08-02 05:26:38.517: ERROR/TiUncaughtHandler(270):     ... 12 more
      

      But if I open the application means service works. Why this happen. Any suggestion to solve this issue?

      http://developer.appcelerator.com/question/123588/exceptionininitializererror-at-comurbanairshipcorereceiveronreceiveunknown-source

        Attachments

          Activity

            People

            • Assignee:
              tguntharp Tony Guntharp
              Reporter:
              karthickt karthickt
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Git Integration