java.lang.RuntimeException: Unable to create application com.appcelerator.timob8192.Timob8192Application: java.lang.NullPointerException

Appcelerator JIRA | Arthur Evans | 4 years ago
  1. 0

    When trying to test ActionBar tabs in the 4.0.3 emulator, my app was freezing on the splash screen. The following log was showing up, which Josh says is related to the Fastdev process: {code} E/TiApplication( 873): java.lang.RuntimeException: Unable to create application com.appcelerator.timob8192.Timob8192Application: java.lang.NullPointerException E/TiApplication( 873): at android.app.ActivityThread.handleBindApplication(ActivityThread.java:3957) E/TiApplication( 873): at android.app.ActivityThread.access$1300(ActivityThread.java:123) E/TiApplication( 873): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1185) E/TiApplication( 873): at android.os.Handler.dispatchMessage(Handler.java:99) E/TiApplication( 873): at android.os.Looper.loop(Looper.java:137) E/TiApplication( 873): at android.app.ActivityThread.main(ActivityThread.java:4424) E/TiApplication( 873): at java.lang.reflect.Method.invokeNative(Native Method) E/TiApplication( 873): at java.lang.reflect.Method.invoke(Method.java:511) E/TiApplication( 873): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784) E/TiApplication( 873): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551) E/TiApplication( 873): at dalvik.system.NativeStart.main(Native Method) E/TiApplication( 873): Caused by: java.lang.NullPointerException E/TiApplication( 873): at org.appcelerator.kroll.common.TiFastDev.showToast(TiFastDev.java:157) E/TiApplication( 873): at org.appcelerator.kroll.common.TiFastDev.showDisabledWarning(TiFastDev.java:164) E/TiApplication( 873): at org.appcelerator.kroll.common.TiFastDev.connect(TiFastDev.java:147) E/TiApplication( 873): at org.appcelerator.kroll.common.TiFastDev.readDeployData(TiFastDev.java:119) E/TiApplication( 873): at org.appcelerator.kroll.common.TiFastDev.<init>(TiFastDev.java:99) E/TiApplication( 873): at org.appcelerator.kroll.common.TiFastDev.initFastDev(TiFastDev.java:73) E/TiApplication( 873): at org.appcelerator.titanium.TiApplication.postAppInfo(TiApplication.java:372) E/TiApplication( 873): at com.appcelerator.timob8192.Timob8192Application.onCreate(Timob8192Application.java:34) E/TiApplication( 873): at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:969) E/TiApplication( 873): at android.app.ActivityThread.handleBindApplication(ActivityThread.java:3954) E/TiApplication( 873): ... 10 more {code} And then a bit later... {code} W/ActivityManager( 77): Launch timeout has expired, giving up wake lock! W/ActivityManager( 77): Activity idle timeout for ActivityRecord{414f0310 com.appcelerator.timob8192/.Timob8192Activity} I/InputDispatcher( 77): Application is not responding: AppWindowToken{416997f8 token=Token{4163e270 ActivityRecord{414f0310 com.appcelerator.timob8192/.Timob8192Activity}}}. 5008.3ms since event, 5007.4ms since wait started I/WindowManager( 77): Input event dispatching timed out sending to application AppWindowToken{416997f8 token=Token{4163e270 ActivityRecord{414f0310 com.appcelerator.timob8192/.Timob8192Activity}}} {code} Steps to reproduce: 1. Create a new project in Titanium Studio 2. Add this snippet to tiapp.xml {code} <manifest> <uses-sdk android:targetSdkVersion="11"/> </manifest> {code} 3. Run the project on 3.0+ emulator. 4. Observe crash.

    Appcelerator JIRA | 4 years ago | Arthur Evans
    java.lang.RuntimeException: Unable to create application com.appcelerator.timob8192.Timob8192Application: java.lang.NullPointerException
  2. 0

    When trying to test ActionBar tabs in the 4.0.3 emulator, my app was freezing on the splash screen. The following log was showing up, which Josh says is related to the Fastdev process: {code} E/TiApplication( 873): java.lang.RuntimeException: Unable to create application com.appcelerator.timob8192.Timob8192Application: java.lang.NullPointerException E/TiApplication( 873): at android.app.ActivityThread.handleBindApplication(ActivityThread.java:3957) E/TiApplication( 873): at android.app.ActivityThread.access$1300(ActivityThread.java:123) E/TiApplication( 873): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1185) E/TiApplication( 873): at android.os.Handler.dispatchMessage(Handler.java:99) E/TiApplication( 873): at android.os.Looper.loop(Looper.java:137) E/TiApplication( 873): at android.app.ActivityThread.main(ActivityThread.java:4424) E/TiApplication( 873): at java.lang.reflect.Method.invokeNative(Native Method) E/TiApplication( 873): at java.lang.reflect.Method.invoke(Method.java:511) E/TiApplication( 873): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784) E/TiApplication( 873): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551) E/TiApplication( 873): at dalvik.system.NativeStart.main(Native Method) E/TiApplication( 873): Caused by: java.lang.NullPointerException E/TiApplication( 873): at org.appcelerator.kroll.common.TiFastDev.showToast(TiFastDev.java:157) E/TiApplication( 873): at org.appcelerator.kroll.common.TiFastDev.showDisabledWarning(TiFastDev.java:164) E/TiApplication( 873): at org.appcelerator.kroll.common.TiFastDev.connect(TiFastDev.java:147) E/TiApplication( 873): at org.appcelerator.kroll.common.TiFastDev.readDeployData(TiFastDev.java:119) E/TiApplication( 873): at org.appcelerator.kroll.common.TiFastDev.<init>(TiFastDev.java:99) E/TiApplication( 873): at org.appcelerator.kroll.common.TiFastDev.initFastDev(TiFastDev.java:73) E/TiApplication( 873): at org.appcelerator.titanium.TiApplication.postAppInfo(TiApplication.java:372) E/TiApplication( 873): at com.appcelerator.timob8192.Timob8192Application.onCreate(Timob8192Application.java:34) E/TiApplication( 873): at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:969) E/TiApplication( 873): at android.app.ActivityThread.handleBindApplication(ActivityThread.java:3954) E/TiApplication( 873): ... 10 more {code} And then a bit later... {code} W/ActivityManager( 77): Launch timeout has expired, giving up wake lock! W/ActivityManager( 77): Activity idle timeout for ActivityRecord{414f0310 com.appcelerator.timob8192/.Timob8192Activity} I/InputDispatcher( 77): Application is not responding: AppWindowToken{416997f8 token=Token{4163e270 ActivityRecord{414f0310 com.appcelerator.timob8192/.Timob8192Activity}}}. 5008.3ms since event, 5007.4ms since wait started I/WindowManager( 77): Input event dispatching timed out sending to application AppWindowToken{416997f8 token=Token{4163e270 ActivityRecord{414f0310 com.appcelerator.timob8192/.Timob8192Activity}}} {code} Steps to reproduce: 1. Create a new project in Titanium Studio 2. Add this snippet to tiapp.xml {code} <manifest> <uses-sdk android:targetSdkVersion="11"/> </manifest> {code} 3. Run the project on 3.0+ emulator. 4. Observe crash.

    Appcelerator JIRA | 4 years ago | Arthur Evans
    java.lang.RuntimeException: Unable to create application com.appcelerator.timob8192.Timob8192Application: java.lang.NullPointerException
  3. 0

    Android: Saving Map State in Google map

    Stack Overflow | 11 months ago | Junie Negentien
    java.lang.RuntimeException: Unable to resume activity {com.ourThesis.junieNegentien2015/com.ourThesis.junieNegentien2015.MainActivity}: java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at org.appcelerator.kroll.common.TiFastDev.showToast()
    2. org.appcelerator.kroll
      TiFastDev.initFastDev
      1. org.appcelerator.kroll.common.TiFastDev.showToast(TiFastDev.java:157)
      2. org.appcelerator.kroll.common.TiFastDev.showDisabledWarning(TiFastDev.java:164)
      3. org.appcelerator.kroll.common.TiFastDev.connect(TiFastDev.java:147)
      4. org.appcelerator.kroll.common.TiFastDev.readDeployData(TiFastDev.java:119)
      5. org.appcelerator.kroll.common.TiFastDev.<init>(TiFastDev.java:99)
      6. org.appcelerator.kroll.common.TiFastDev.initFastDev(TiFastDev.java:73)
      6 frames
    3. org.appcelerator.titanium
      TiApplication.postAppInfo
      1. org.appcelerator.titanium.TiApplication.postAppInfo(TiApplication.java:372)
      1 frame
    4. com.appcelerator.timob8192
      Timob8192Application.onCreate
      1. com.appcelerator.timob8192.Timob8192Application.onCreate(Timob8192Application.java:34)
      1 frame
    5. Android Platform
      ActivityThread.main
      1. android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:969)
      2. android.app.ActivityThread.handleBindApplication(ActivityThread.java:3954)
      3. android.app.ActivityThread.access$1300(ActivityThread.java:123)
      4. android.app.ActivityThread$H.handleMessage(ActivityThread.java:1185)
      5. android.os.Handler.dispatchMessage(Handler.java:99)
      6. android.os.Looper.loop(Looper.java:137)
      7. android.app.ActivityThread.main(ActivityThread.java:4424)
      7 frames
    6. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invokeNative(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:511)
      2 frames
    7. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
      2 frames
    8. Android Platform
      NativeStart.main
      1. dalvik.system.NativeStart.main(Native Method)
      1 frame