Bug 2009 - Uncaught handler exception occurred when user RUNs the HelloWorld application on Debug/Release mode.
Summary: Uncaught handler exception occurred when user RUNs the HelloWorld application...
Status: CLOSED DUPLICATE of bug 1929
Alias: None
Product: Android
Classification: Xamarin
Component: Mono runtime / AOT Compiler ()
Version: 1.9.3
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2011-11-11 09:48 UTC by Atin
Modified: 2011-12-22 09:47 UTC (History)
3 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
Image for the bug (120.97 KB, image/png)
2011-11-11 09:48 UTC, Atin
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
CLOSED DUPLICATE of bug 1929

Description Atin 2011-11-11 09:48:24 UTC
Created attachment 876 [details]
Image for the bug

Steps to reproduce:
1. Download the application from "https://github.com/xamarin/monodroid-samples"
link.
2. Launch MonoDevelop.
3. Click on "Start Solution or File" icon.
4. Browse HelloWorld application.
5. Click on Open button.
6. Select Debug /release mode from the drop down.
7. Build the application.
8 Run the application.
9. See the error message appear on the Console.

Actual result:
Uncaught handler exception occurred when user RUNs the HelloWorld application on Debug/Release mode.
Refer the attached screenshot.

Expected Result:
Application should run successfully.

Environment:
MAC Lion10.7
MD 3.0 Beta-1 (2.9)
M4A 1.9.3
Comment 1 Jonathan Pryor 2011-11-11 15:42:00 UTC
Based on the (fraction) of a stack trace visible in the image, this looks like a dup of #1929.

*** This bug has been marked as a duplicate of bug 1929 ***
Comment 2 Atin 2011-11-14 05:42:50 UTC
We RUN MultiResolution on MAC in API 4 in Debug/Release and got below error:

D/AndroidRuntime(  251): Shutting down VM
E/AndroidRuntime(  251): Uncaught handler: thread main exiting due to uncaught exception
E/AndroidRuntime(  251): java.lang.RuntimeException: Unable to get provider mono.MonoRuntimeProvider: java.lang.RuntimeException: Unable to find application Mono.Android.DebugRuntime or Mono.Android.Platform.ApiLevel_7!
E/AndroidRuntime(  251): 	at android.app.ActivityThread.installProvider(ActivityThread.java:4112)
E/AndroidRuntime(  251): 	at android.app.ActivityThread.installContentProviders(ActivityThread.java:3908)
E/AndroidRuntime(  251): 	at android.app.ActivityThread.handleBindApplication(ActivityThread.java:3867)
E/AndroidRuntime(  251): 	at android.app.ActivityThread.access$2800(ActivityThread.java:116)
E/AndroidRuntime(  251): 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1831)
E/AndroidRuntime(  251): 	at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime(  251): 	at android.os.Looper.loop(Looper.java:123)
E/AndroidRuntime(  251): 	at android.app.ActivityThread.main(ActivityThread.java:4203)
E/AndroidRuntime(  251): 	at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime(  251): 	at java.lang.reflect.Method.invoke(Method.java:521)
E/AndroidRuntime(  251): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:791)
E/AndroidRuntime(  251): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:549)
E/AndroidRuntime(  251): 	at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime(  251): Caused by: java.lang.RuntimeException: Unable to find application Mono.Android.DebugRuntime or Mono.Android.Platform.ApiLevel_7!
E/AndroidRuntime(  251): 	at mono.MonoRuntimeProvider.attachInfo(MonoRuntimeProvider.java:30)
E/AndroidRuntime(  251): 	at android.app.ActivityThread.installProvider(ActivityThread.java:4109)
E/AndroidRuntime(  251): 	... 12 more
E/AndroidRuntime(  251): Caused by: android.content.pm.PackageManager$NameNotFoundException: Mono.Android.Platform.ApiLevel_7
E/AndroidRuntime(  251): 	at android.app.ApplicationContext$ApplicationPackageManager.getApplicationInfo(ApplicationContext.java:1655)
E/AndroidRuntime(  251): 	at mono.MonoRuntimeProvider.attachInfo(MonoRuntimeProvider.java:22)
E/AndroidRuntime(  251): 	... 13 more
Comment 3 Atin 2011-11-14 09:06:46 UTC
We RUN the "LabelledSection" application on API 10,14,4 in Debug/Release mode and got the below error:


I/monodroid-gc(  483): environment supports jni NewWeakGlobalRef
I/MonoDroid(  483): UNHANDLED EXCEPTION: Java.Lang.NoSuchMethodError: Exception of type 'Java.Lang.NoSuchMethodError' was thrown.
I/MonoDroid(  483): at Android.Runtime.JNIEnv.GetMethodID (intptr,string,string) <0x0007c>
I/MonoDroid(  483): at Android.Runtime.JNIEnv.CreateInstance (intptr,string,Android.Runtime.JValue[]) <0x00027>
I/MonoDroid(  483): at Android.Runtime.JNIEnv.CreateInstance (System.Type,string,Android.Runtime.JValue[]) <0x0003b>
I/MonoDroid(  483): at Java.Lang.Object..ctor () <0x00053>
I/MonoDroid(  483): at Mono.Samples.LabelledSections.ListItemValue..ctor (string) <0x00017>
I/MonoDroid(  483): at Mono.Samples.LabelledSections.ListWithHeaders.OnCreate (Android.OS.Bundle) <0x00057>
I/MonoDroid(  483): at Android.App.Activity.n_OnCreate_Landroid_os_Bundle_ (intptr,intptr,intptr) <0x00057>
I/MonoDroid(  483): at (wrapper dynamic-method) object.0c7ace60-0041-48d4-91cd-a1b1c6278152 (intptr,intptr,intptr) <0x00033>
I/MonoDroid(  483): 
I/MonoDroid(  483):   --- End of managed exception stack trace ---
I/MonoDroid(  483): java.lang.NoSuchMethodError: no method with name='<init>' signature='()V' in class Lmono/samples/labelledsections/ListItemValue;
I/MonoDroid(  483): 	at mono.samples.labelledsections.ListWithHeaders.n_onCreate(Native Method)
I/MonoDroid(  483): 	at mono.samples.labelledsections.ListWithHeaders.onCreate(ListWithHeaders.java:25)
I/MonoDroid(  483): 	at android.app.Activity.performCreate(Activity.java:4465)
I/MonoDroid(  483): 	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1049)
I/MonoDroid(  483): 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1919)
I/MonoDroid(  483): 	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1980)
I/MonoDroid(  483): 	at android.app.ActivityThread.access$600(ActivityThread.java:122)
I/MonoDroid(  483): 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1146)
I/MonoDroid(  483): 	at android.os.Handler.dispatchMessage(Handler.java:99)
I/MonoDroid(  483): 	at android.os.Looper.loop(Looper.java:137)
I/MonoDroid(  483): 	at android.app.ActivityThread.main(ActivityThread.java:4340)
I/MonoDroid(  483): 	at java.lang.reflect.Method.invokeNative(Native Method)
I/MonoDroid(  483): 	at java.lang.reflect.Method.invoke(Method.java:511)
I/MonoDroid(  483): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
I/MonoDroid(  483): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
I/MonoDroid(  483): 	at dalvik.system.NativeStart.main(Native Method)
I/mono    (  483): Stacktrace:
I/mono    (  483): 
I/mono    (  483):   at Android.Runtime.JNIEnv.NewObject (intptr,intptr) <0x0005b>
I/mono    (  483):   at Java.IO.StringWriter..ctor () <0x0010f>
I/mono    (  483):   at Java.Lang.Throwable.get_StackTrace () <0x00033>
I/mono    (  483):   at System.Exception.ToString () <0x00117>
I/mono    (  483):   at (wrapper runtime-invoke) <Module>.runtime_invoke_object__this__ (object,intptr,intptr,intptr) <0xffffffff>
E/mono    (  483): 
E/mono    (  483): Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object
E/mono    (  483):   at Android.Runtime.JNIEnv.NewObject (IntPtr jclass, IntPtr jmethod) [0x00000] in <filename unknown>:0 
E/mono    (  483):   at Java.IO.StringWriter..ctor () [0x00000] in <filename unknown>:0 
E/mono    (  483):   at Java.Lang.Throwable.get_StackTrace () [0x00000] in <filename unknown>:0 
E/mono    (  483):   at System.Exception.ToString () [0x00000] in <filename unknown>:0 


Environments:
M4A: 1.9.3
MD: 3.0 Beta-1 (2.9)
MAC 10.7
Comment 4 Atin 2011-12-01 11:14:17 UTC
We RUN Contact manager application on API14 on observed that same error has occurred.

Environments:
MAC Lion(10.7)
Mono for Android 4.0-1
Mono Develop2.8.4-1
Comment 5 narayanp 2011-12-22 09:46:21 UTC
Now this issue has been fixed. New issue occurs when we run the App on API7
Bug 2208 - Error appears after setting Target Framework dropdown to Mono for Android 2.1
Hence closing this issue