java.lang.RuntimeException: Unable to resume activity {com.appcelerator.base/ti.modules.titanium.media.TiCameraActivity}: java.lang.NullPointerException

Appcelerator JIRA | Opie Cyrus | 6 years ago
  1. 0

    {html}<div><p>Nexus S crashes when launching preview. Exception received:</p> <pre> <code>E/TiUncaughtHandler( 711): (main) [0,1313] Sending event: exception on thread: main msg:java.lang.RuntimeException: Unable to resume activity {com.appcelerator.base/ti.modules.titanium.media.TiCameraActivity}: java.lang.NullPointerException; Titanium 1.0,N/A,N/A E/TiUncaughtHandler( 711): java.lang.RuntimeException: Unable to resume activity {com.appcelerator.base/ti.modules.titanium.media.TiCameraActivity}: java.lang.NullPointerException E/TiUncaughtHandler( 711): at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2095) E/TiUncaughtHandler( 711): at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:2110) E/TiUncaughtHandler( 711): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1643) E/TiUncaughtHandler( 711): at android.app.ActivityThread.handleRelaunchActivity(ActivityThread.java:2796) E/TiUncaughtHandler( 711): at android.app.ActivityThread.access$1600(ActivityThread.java:117) E/TiUncaughtHandler( 711): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:932) E/TiUncaughtHandler( 711): at android.os.Handler.dispatchMessage(Handler.java:99) E/TiUncaughtHandler( 711): at android.os.Looper.loop(Looper.java:123) E/TiUncaughtHandler( 711): at android.app.ActivityThread.main(ActivityThread.java:3647) E/TiUncaughtHandler( 711): at java.lang.reflect.Method.invokeNative(Native Method) E/TiUncaughtHandler( 711): at java.lang.reflect.Method.invoke(Method.java:507) E/TiUncaughtHandler( 711): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839) E/TiUncaughtHandler( 711): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597) E/TiUncaughtHandler( 711): at dalvik.system.NativeStart.main(Native Method) E/TiUncaughtHandler( 711): Caused by: java.lang.NullPointerException E/TiUncaughtHandler( 711): at ti.modules.titanium.media.TiCameraActivity.onResume(TiCameraActivity.java:89) E/TiUncaughtHandler( 711): at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1149) E/TiUncaughtHandler( 711): at android.app.Activity.performResume(Activity.java:3833) E/TiUncaughtHandler( 711): at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2085) E/TiUncaughtHandler( 711): ... 13 more E/jdwp ( 738): Failed sending reply to debugger: Broken pipe D/dalvikvm( 738): Debugger has detached; object registry had 1 entries E/AndroidRuntime( 711): FATAL EXCEPTION: main E/AndroidRuntime( 711): java.lang.RuntimeException: Unable to resume activity {com.appcelerator.base/ti.modules.titanium.media.TiCameraActivity}: java.lang.NullPointerException E/AndroidRuntime( 711): at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2095) E/AndroidRuntime( 711): at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:2110) E/AndroidRuntime( 711): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1643) E/AndroidRuntime( 711): at android.app.ActivityThread.handleRelaunchActivity(ActivityThread.java:2796) E/AndroidRuntime( 711): at android.app.ActivityThread.access$1600(ActivityThread.java:117) E/AndroidRuntime( 711): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:932) E/AndroidRuntime( 711): at android.os.Handler.dispatchMessage(Handler.java:99) E/AndroidRuntime( 711): at android.os.Looper.loop(Looper.java:123) E/AndroidRuntime( 711): at android.app.ActivityThread.main(ActivityThread.java:3647) E/AndroidRuntime( 711): at java.lang.reflect.Method.invokeNative(Native Method) E/AndroidRuntime( 711): at java.lang.reflect.Method.invoke(Method.java:507) E/AndroidRuntime( 711): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839) E/AndroidRuntime( 711): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597) E/AndroidRuntime( 711): at dalvik.system.NativeStart.main(Native Method) E/AndroidRuntime( 711): Caused by: java.lang.NullPointerException E/AndroidRuntime( 711): at ti.modules.titanium.media.TiCameraActivity.onResume(TiCameraActivity.java:89) E/AndroidRuntime( 711): at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1149) E/AndroidRuntime( 711): at android.app.Activity.performResume(Activity.java:3833) E/AndroidRuntime( 711): at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2085) E/AndroidRuntime( 711): ... 13 more W/ActivityManager( 114): Force finishing activity com.appcelerator.base/ti.modules.titanium.media.TiCameraActivity W/ActivityManager( 114): Force finishing activity com.appcelerator.base/.BaseActivity</code> </pre></div>{html} {code} var overlay = Titanium.UI.createView(); var tag = Titanium.UI.createView({ backgroundColor: '#fff', borderColor: '#000', height: 50, width: 150, top: 100, left: 25 }); var tag_text = Titanium.UI.createLabel({ text: tag.left, color: '#000', textAlign: 'center', width: 140, height: 'auto' }); var button = Titanium.UI.createButton({ bottom: 0, color: '#000', height: 50, title: 'Test', width: 100 }); button.addEventListener('click', function (event) { tag.left = tag.left + 50; tag_text.text = tag.left; }); tag.add(tag_text); overlay.add(tag); overlay.add(button); Titanium.Media.showCamera({ overlay: overlay, showControls: false, mediaTypes: Titanium.Media.MEDIA_TYPE_PHOTO, autohide: false }); {code}

    Appcelerator JIRA | 6 years ago | Opie Cyrus
    java.lang.RuntimeException: Unable to resume activity {com.appcelerator.base/ti.modules.titanium.media.TiCameraActivity}: java.lang.NullPointerException
  2. 0

    {html}<div><p>Nexus S crashes when launching preview. Exception received:</p> <pre> <code>E/TiUncaughtHandler( 711): (main) [0,1313] Sending event: exception on thread: main msg:java.lang.RuntimeException: Unable to resume activity {com.appcelerator.base/ti.modules.titanium.media.TiCameraActivity}: java.lang.NullPointerException; Titanium 1.0,N/A,N/A E/TiUncaughtHandler( 711): java.lang.RuntimeException: Unable to resume activity {com.appcelerator.base/ti.modules.titanium.media.TiCameraActivity}: java.lang.NullPointerException E/TiUncaughtHandler( 711): at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2095) E/TiUncaughtHandler( 711): at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:2110) E/TiUncaughtHandler( 711): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1643) E/TiUncaughtHandler( 711): at android.app.ActivityThread.handleRelaunchActivity(ActivityThread.java:2796) E/TiUncaughtHandler( 711): at android.app.ActivityThread.access$1600(ActivityThread.java:117) E/TiUncaughtHandler( 711): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:932) E/TiUncaughtHandler( 711): at android.os.Handler.dispatchMessage(Handler.java:99) E/TiUncaughtHandler( 711): at android.os.Looper.loop(Looper.java:123) E/TiUncaughtHandler( 711): at android.app.ActivityThread.main(ActivityThread.java:3647) E/TiUncaughtHandler( 711): at java.lang.reflect.Method.invokeNative(Native Method) E/TiUncaughtHandler( 711): at java.lang.reflect.Method.invoke(Method.java:507) E/TiUncaughtHandler( 711): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839) E/TiUncaughtHandler( 711): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597) E/TiUncaughtHandler( 711): at dalvik.system.NativeStart.main(Native Method) E/TiUncaughtHandler( 711): Caused by: java.lang.NullPointerException E/TiUncaughtHandler( 711): at ti.modules.titanium.media.TiCameraActivity.onResume(TiCameraActivity.java:89) E/TiUncaughtHandler( 711): at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1149) E/TiUncaughtHandler( 711): at android.app.Activity.performResume(Activity.java:3833) E/TiUncaughtHandler( 711): at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2085) E/TiUncaughtHandler( 711): ... 13 more E/jdwp ( 738): Failed sending reply to debugger: Broken pipe D/dalvikvm( 738): Debugger has detached; object registry had 1 entries E/AndroidRuntime( 711): FATAL EXCEPTION: main E/AndroidRuntime( 711): java.lang.RuntimeException: Unable to resume activity {com.appcelerator.base/ti.modules.titanium.media.TiCameraActivity}: java.lang.NullPointerException E/AndroidRuntime( 711): at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2095) E/AndroidRuntime( 711): at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:2110) E/AndroidRuntime( 711): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1643) E/AndroidRuntime( 711): at android.app.ActivityThread.handleRelaunchActivity(ActivityThread.java:2796) E/AndroidRuntime( 711): at android.app.ActivityThread.access$1600(ActivityThread.java:117) E/AndroidRuntime( 711): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:932) E/AndroidRuntime( 711): at android.os.Handler.dispatchMessage(Handler.java:99) E/AndroidRuntime( 711): at android.os.Looper.loop(Looper.java:123) E/AndroidRuntime( 711): at android.app.ActivityThread.main(ActivityThread.java:3647) E/AndroidRuntime( 711): at java.lang.reflect.Method.invokeNative(Native Method) E/AndroidRuntime( 711): at java.lang.reflect.Method.invoke(Method.java:507) E/AndroidRuntime( 711): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839) E/AndroidRuntime( 711): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597) E/AndroidRuntime( 711): at dalvik.system.NativeStart.main(Native Method) E/AndroidRuntime( 711): Caused by: java.lang.NullPointerException E/AndroidRuntime( 711): at ti.modules.titanium.media.TiCameraActivity.onResume(TiCameraActivity.java:89) E/AndroidRuntime( 711): at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1149) E/AndroidRuntime( 711): at android.app.Activity.performResume(Activity.java:3833) E/AndroidRuntime( 711): at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2085) E/AndroidRuntime( 711): ... 13 more W/ActivityManager( 114): Force finishing activity com.appcelerator.base/ti.modules.titanium.media.TiCameraActivity W/ActivityManager( 114): Force finishing activity com.appcelerator.base/.BaseActivity</code> </pre></div>{html} {code} var overlay = Titanium.UI.createView(); var tag = Titanium.UI.createView({ backgroundColor: '#fff', borderColor: '#000', height: 50, width: 150, top: 100, left: 25 }); var tag_text = Titanium.UI.createLabel({ text: tag.left, color: '#000', textAlign: 'center', width: 140, height: 'auto' }); var button = Titanium.UI.createButton({ bottom: 0, color: '#000', height: 50, title: 'Test', width: 100 }); button.addEventListener('click', function (event) { tag.left = tag.left + 50; tag_text.text = tag.left; }); tag.add(tag_text); overlay.add(tag); overlay.add(button); Titanium.Media.showCamera({ overlay: overlay, showControls: false, mediaTypes: Titanium.Media.MEDIA_TYPE_PHOTO, autohide: false }); {code}

    Appcelerator JIRA | 6 years ago | Opie Cyrus
    java.lang.RuntimeException: Unable to resume activity {com.appcelerator.base/ti.modules.titanium.media.TiCameraActivity}: 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 ti.modules.titanium.media.TiCameraActivity.onResume()
    2. ti.modules.titanium
      TiCameraActivity.onResume
      1. ti.modules.titanium.media.TiCameraActivity.onResume(TiCameraActivity.java:89)
      1 frame
    3. Android Platform
      ActivityThread.main
      1. android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1149)
      2. android.app.Activity.performResume(Activity.java:3833)
      3. android.app.ActivityThread.performResumeActivity(ActivityThread.java:2085)
      4. android.app.ActivityThread.handleResumeActivity(ActivityThread.java:2110)
      5. android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1643)
      6. android.app.ActivityThread.handleRelaunchActivity(ActivityThread.java:2796)
      7. android.app.ActivityThread.access$1600(ActivityThread.java:117)
      8. android.app.ActivityThread$H.handleMessage(ActivityThread.java:932)
      9. android.os.Handler.dispatchMessage(Handler.java:99)
      10. android.os.Looper.loop(Looper.java:123)
      11. android.app.ActivityThread.main(ActivityThread.java:3647)
      11 frames
    4. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invokeNative(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:507)
      2 frames
    5. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
      2 frames
    6. Android Platform
      NativeStart.main
      1. dalvik.system.NativeStart.main(Native Method)
      1 frame