java.lang.RuntimeException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • {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}
    via by Opie Cyrus,
  • {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}
    via by Opie Cyrus,
    • java.lang.RuntimeException: Unable to resume activity {com.appcelerator.base/ti.modules.titanium.media.TiCameraActivity}: java.lang.NullPointerException at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2095) at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:2110) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1643) at android.app.ActivityThread.handleRelaunchActivity(ActivityThread.java:2796) at android.app.ActivityThread.access$1600(ActivityThread.java:117) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:932) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:123) at android.app.ActivityThread.main(ActivityThread.java:3647) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:507) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597) at dalvik.system.NativeStart.main(Native Method) Caused by: java.lang.NullPointerException at ti.modules.titanium.media.TiCameraActivity.onResume(TiCameraActivity.java:89) at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1149) at android.app.Activity.performResume(Activity.java:3833) at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2085) ... 13 more
    No Bugmate found.