[Mono-bugs] [Bug 74453][Nor] New - SOAP response causes System.NullReferenceException

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Wed, 6 Apr 2005 12:37:14 -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 gnome@flowerday.cx.

http://bugzilla.ximian.com/show_bug.cgi?id=74453

--- shadow/74453	2005-04-06 12:37:14.000000000 -0400
+++ shadow/74453.tmp.29657	2005-04-06 12:37:14.000000000 -0400
@@ -0,0 +1,58 @@
+Bug#: 74453
+Product: Mono: Class Libraries
+Version: 1.0
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: Sys.XML
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: gnome@flowerday.cx               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: SOAP response causes System.NullReferenceException
+
+I have a SOAP call, that returns an array of strings (I think it is
+correctly formed), I get an error from the xml serialization stuff:
+
+System.NullReferenceException: Object reference not set to an instance of
+an object
+in <0x002af> System.Xml.Serialization.XmlSerializationReader:ReadList (object&)
+in <0x001eb>
+System.Xml.Serialization.XmlSerializationReader:ReadReferencingElement
+(string,string,bool,string&)
+in <0x00070>
+System.Xml.Serialization.XmlSerializationReader:ReadReferencingElement
+(string&)
+in <0x01115>
+System.Xml.Serialization.XmlSerializationReaderInterpreter:ReadMembers
+(System.Xml.Serialization.ClassMap,object,bool,bool)
+in <0x00268>
+System.Xml.Serialization.XmlSerializationReaderInterpreter:ReadMessage
+(System.Xml.Serialization.XmlMembersMapping)
+in <0x000e3>
+System.Xml.Serialization.XmlSerializationReaderInterpreter:ReadRoot ()
+in <0x0007d> System.Xml.Serialization.XmlSerializer:Deserialize
+(System.Xml.Serialization.XmlSerializationReader)
+in <0x00056> System.Xml.Serialization.XmlSerializer:Deserialize
+(System.Xml.XmlReader)
+in <0x000fd> System.Web.Services.Protocols.WebServiceHelper:ReadSoapMessage
+(System.Xml.XmlTextReader,System.Web.Services.Protocols.SoapTypeStubInfo,System.Web.Services.Description.SoapBindingUse,System.Xml.Serialization.XmlSerializer,object&,System.Web.Services.Protocols.SoapHeaderCollection&)
+in <0x00352>
+System.Web.Services.Protocols.SoapHttpClientProtocol:ReceiveResponse
+(System.Net.WebResponse,System.Web.Services.Protocols.SoapClientMessage,System.Web.Services.Protocols.SoapExtension[])
+in <0x0007d> (wrapper remoting-invoke-with-check)
+System.Web.Services.Protocols.SoapHttpClientProtocol:ReceiveResponse
+(System.Net.WebResponse,System.Web.Services.Protocols.SoapClientMessage,System.Web.Services.Protocols.SoapExtension[])
+in <0x002a9> System.Web.Services.Protocols.SoapHttpClientProtocol:Invoke
+(string,object[])
+in <0x0006b> (wrapper remoting-invoke-with-check)
+System.Web.Services.Protocols.SoapHttpClientProtocol:Invoke (string,object[])
+in <0x00036> ZeusTestService:languages ()
+in <0x00042> HelloWorld:Main (string[])
+
+I'll attach the program that shows the problem, I am using mono 1.0.6