[Mono-bugs] [Bug 49986][Wis] New - Activator.CreateInstance fails on generated types
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Wed, 22 Oct 2003 01:53:33 -0400 (EDT)
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by orphennui@yahoo.com.
http://bugzilla.ximian.com/show_bug.cgi?id=49986
--- shadow/49986 2003-10-22 01:53:32.000000000 -0400
+++ shadow/49986.tmp.11364 2003-10-22 01:53:33.000000000 -0400
@@ -0,0 +1,99 @@
+Bug#: 49986
+Product: Mono/Runtime
+Version: unspecified
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Wishlist
+Component: misc
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: orphennui@yahoo.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Activator.CreateInstance fails on generated types
+
+Using the cookcomputing xmlrpc library
+(http://www.xml-rpc.net/release/xml-rpc.net.0.8.1.zip), I get crashes in
+Activator.CreateInstance() called from proxy objects whose types are
+dynamically generated by XmlRpcProxyGen....
+
+
+
+Unhandled Exception: System.Reflection.TargetInvocationException: Exception
+has been thrown by the target of an invocation. --->
+System.NullReferenceException: A null value was found where an object
+instance was required
+in (unmanaged) /lib/i686/libc.so.6 [0x420748d0]
+in (unmanaged) /lib/i686/libc.so.6(malloc+0xa1) [0x42073d81]
+in (unmanaged) /usr/lib/libglib-2.0.so.0(g_malloc+0x2e) [0x401992ba]
+in (unmanaged) /usr/lib/libmono.so.0(mono_mb_new+0x85) [0x40095be5]
+in (unmanaged) /usr/lib/libmono.so.0(mono_marshal_get_native_wrapper+0xcf)
+[0x4009aeab]
+in (unmanaged) /usr/lib/libmono.so.0(mono_arch_create_jit_trampoline+0x15f)
+[0x40079ebf]
+in (unmanaged) /usr/lib/libmono.so.0(mono_class_vtable+0x20e) [0x40085f1e]
+in (unmanaged) /usr/lib/libmono.so.0(mono_array_new_full+0x10c) [0x400877c8]
+in (unmanaged) /usr/lib/libmono.so.0 [0x4008c059]
+in [0x00033] (at
+/gnome/head/mono/mcs/class/corlib/System.Reflection/MonoMethod.cs:198)
+System.Reflection.MonoCMethod:Invoke
+(object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo)
+--- End of inner exception stack trace ---
+
+in [0x00052] (at
+/gnome/head/mono/mcs/class/corlib/System.Reflection/MonoMethod.cs:202)
+System.Reflection.MonoCMethod:Invoke
+(object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo)
+in [0x00007] (at
+/gnome/head/mono/mcs/class/corlib/System.Reflection/MonoMethod.cs:207)
+System.Reflection.MonoCMethod:Invoke
+(System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo)
+in [0x000d8] (at /gnome/head/mono/mcs/class/corlib/System/Activator.cs:221)
+System.Activator:CreateInstance
+(System.Type,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo,object[])
+in [0x0000c] (at /gnome/head/mono/mcs/class/corlib/System/Activator.cs:180)
+System.Activator:CreateInstance
+(System.Type,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo)
+in [0x00277] (at /gnome/head/blog/xmlrpc/src/XmlRpcSerializer.cs:683)
+CookComputing.XmlRpc.XmlRpcSerializer:ParseArray
+(System.Xml.XmlNode,System.Type,CookComputing.XmlRpc.XmlRpcSerializer/ParseStack,CookComputing.XmlRpc.MappingAction)
+in [0x000b2] (at /gnome/head/blog/xmlrpc/src/XmlRpcSerializer.cs:536)
+CookComputing.XmlRpc.XmlRpcSerializer:ParseValue
+(System.Xml.XmlNode,System.Type,CookComputing.XmlRpc.XmlRpcSerializer/ParseStack,CookComputing.XmlRpc.MappingAction,System.Type&,System.Type&)
+in [0x0000a] (at /gnome/head/blog/xmlrpc/src/XmlRpcSerializer.cs:492)
+CookComputing.XmlRpc.XmlRpcSerializer:ParseValue
+(System.Xml.XmlNode,System.Type,CookComputing.XmlRpc.XmlRpcSerializer/ParseStack,CookComputing.XmlRpc.MappingAction)
+in [0x00146] (at /gnome/head/blog/xmlrpc/src/XmlRpcSerializer.cs:319)
+CookComputing.XmlRpc.XmlRpcSerializer:DeserializeResponse
+(System.IO.TextReader,System.Type)
+in [0x00015] (at /gnome/head/blog/xmlrpc/src/XmlRpcSerializer.cs:249)
+CookComputing.XmlRpc.XmlRpcSerializer:DeserializeResponse
+(System.IO.Stream,System.Type)
+in [0x0005d] (at /gnome/head/blog/xmlrpc/src/XmlRpcClientProtocol.cs:214)
+CookComputing.XmlRpc.XmlRpcClientProtocol:ReadResponse
+(CookComputing.XmlRpc.XmlRpcRequest,System.Net.WebResponse,System.IO.Stream,System.Type)
+in <0x000a6> (wrapper remoting-invoke-with-check)
+CookComputing.XmlRpc.XmlRpcClientProtocol:ReadResponse
+(CookComputing.XmlRpc.XmlRpcRequest,System.Net.WebResponse,System.IO.Stream,System.Type)
+in [0x000ba] (at /gnome/head/blog/xmlrpc/src/XmlRpcClientProtocol.cs:94)
+CookComputing.XmlRpc.XmlRpcClientProtocol:Invoke (object,string,object[])
+in <0x00094> (wrapper remoting-invoke-with-check)
+CookComputing.XmlRpc.XmlRpcClientProtocol:Invoke (object,string,object[])
+in [0x00004] (at /gnome/head/blog/xmlrpc/src/XmlRpcClientProtocol.cs:57)
+CookComputing.XmlRpc.XmlRpcClientProtocol:Invoke (string,object[])
+in <0x0007b> .XmlRpcProxy817f7406-8557-4b1a-892e-43e1bb417468:getUsersBlogs
+(string,string,string)
+in [0x00041] (at /gnome/head/blog/daybook/BackendBlogger.cs:355)
+Daybook.BackendBlogger:Initialize (Daybook.UserToken)
+in [0x0007b] (at /gnome/head/blog/daybook/BackendManager.cs:148)
+Daybook.BackendManager:LoadBackends (System.Collections.ArrayList)
+in [0x00010] (at /gnome/head/blog/daybook/BackendManager.cs:105)
+Daybook.BackendManager:.ctor ()
+in [0x00007] (at /gnome/head/blog/daybook/Daybook.cs:61)
+Daybook.Daybook:.ctor ()
+in [0x0001c] (at /gnome/head/blog/daybook/Daybook.cs:52)
+Daybook.Daybook:Main (string[])