https://bugzilla.novell.com/show_bug.cgi?id=643400
https://bugzilla.novell.com/show_bug.cgi?id=643400#c0 Summary: System.Threading.ThreadPool.QueueUserWorkItem Results in Java.Lang.NoClassDefFoundError Classification: Mono Product: MonoDroid Version: unspecified Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Runtime AssignedTo: mkest...@novell.com ReportedBy: pdbarn...@gmail.com QAContact: mono-bugs@lists.ximian.com Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.10 (KHTML, like Gecko) Chrome/7.0.540.0 Safari/534.10 When using ThreadPool.QueueUserWorkItem, it fails with the following exceptions E/mono ( 903): Unhandled Exception: System.TypeInitializationException: An e xception was thrown by the type initializer for Java.Lang.IRunnableAdapter ---> Java.Lang.NoClassDefFoundError: Exception of type 'Java.Lang.NoClassDefFoundErro r' was thrown. E/mono ( 903): at Android.Runtime.JNIEnv.FindClass (System.String classnam e) [0x00022] in /home/jpobst/Desktop/mondroid/Mono.Android/src/Runtime/JNIEnv.cs :139 E/mono ( 903): at Java.Lang.IRunnableAdapter..cctor () [0x00000] in <filen ame unknown>:0 E/mono ( 903): --- End of inner exception stack trace --- E/mono ( 903): at Java.Lang.Thread+RunnableImplementor..ctor (System.Actio n handler, Boolean removable) [0x00000] in <filename unknown>:0 E/mono ( 903): at Android.OS.Handler.Post (System.Action action) [0x00000] in /home/jpobst/Desktop/mondroid/Mono.Android/src/Android.OS/Handler.cs:10 Reproducible: Always Steps to Reproduce: 1. Call ThreadPool.QueueUserWorkItem(new WaitCallback((state) => { CallSomeMethod(); })); 2. Run the code. 3. Observe the exception. Actual Results: Java.Lang.NoClassDefFoundError Expected Results: No exception -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug. _______________________________________________ mono-bugs maillist - mono-bugs@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-bugs