Titanium JIRA Archive
Appcelerator Community (AC)

[AC-2852] ExceptionInInitializerError at at com.urbanairship.CoreReceiver.onReceive(Unknown Source)

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionNeeds more info
Resolution Date2011-09-02T08:24:11.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsAppcelerator Modules, Titanium SDK & CLI
LabelsCoreReceiver, UrbanAirship, android
Reporterkarthickt
AssigneeTony Guntharp
Created2011-08-01T22:52:47.000+0000
Updated2016-03-08T07:47:47.000+0000

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

Comments

  1. Paul Dowsett 2011-08-02

    Thank you for raising this ticket. In order to progress it, please add the missing information, as per the [Jira Ticket Checklist](http://wiki.appcelerator.org/display/guides/Contributing+to+Titanium#ContributingtoTitanium-Summary%3AJiraTicketChecklist). Thank you
  2. Paul Dowsett 2011-08-08

    karthickt Thank you for your update. Please note the changes I have made, so you may follow them the next time that you raise a ticket. Please would you include a simple app.js file that demonstrates the way you load and use the module? Also, please add the Titanium SDK build date and hash to the environment field, which you can find in the log on application launch. Then I will be happy to move the ticket to the correct project. Thanks in advance
  3. Paul Dowsett 2011-09-02

    Karthickt, as there has been no response, I am closing this ticket. However, You are welcome to open it again, if you are willing to provide the requested information. Many thanks
  4. Paul Dowsett 2011-10-07

    Closing due to inactivity.

JSON Source