[Mono-bugs] [Bug 77447][Cri] New - XML serialization doesn't work properly on a given class

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Thu Feb 2 09:09:03 EST 2006


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 luberti at archicoop.it.

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

--- shadow/77447	2006-02-02 09:09:03.000000000 -0500
+++ shadow/77447.tmp.20733	2006-02-02 09:09:03.000000000 -0500
@@ -0,0 +1,184 @@
+Bug#: 77447
+Product: Mono: Class Libraries
+Version: 1.0
+OS: 
+OS Details: XP SP2
+Status: NEW   
+Resolution: 
+Severity: 008 One day
+Priority: Critical
+Component: Sys.XML
+AssignedTo: atsushi at ximian.com                            
+ReportedBy: luberti at archicoop.it               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: XML serialization  doesn't work properly on a given class
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+
+Using the software in the file attached that consume a web service i get
+the following exception.
+
+Moreover the web service client send an empty request (only header no xml)
+
+
+
+Object reference not set to an instance of an object 
+2006-01-31 16:48:19,105 [1084]
+DocProviderWS.ImplementazioneDocProviderWS.getVerbatims(:0)
+DocProviderWS.ImplementazioneDocProviderWS.getVerbatims(:0) [DEBUG{NDC}] -
+in <0x0001d>
+System.Xml.Serialization.XmlSerializationWriterInterpreter:WriteMemberElement
+(System.Xml.Serialization.XmlTypeMapElementInfo elem, System.Object
+memberValue)
+in <0x00205>
+System.Xml.Serialization.XmlSerializationWriterInterpreter:WriteElementMembers
+(System.Xml.Serialization.ClassMap map, System.Object ob, Boolean isValueList)
+in <0x00041>
+System.Xml.Serialization.XmlSerializationWriterInterpreter:WriteObjectElementElements
+(System.Xml.Serialization.XmlTypeMapping typeMap, System.Object ob)
+in <0x000b0>
+System.Xml.Serialization.XmlSerializationWriterInterpreter:WriteObjectElement
+(System.Xml.Serialization.XmlTypeMapping typeMap, System.Object ob,
+System.String element, System.String namesp)
+in <0x0029b>
+System.Xml.Serialization.XmlSerializationWriterInterpreter:WriteObject
+(System.Xml.Serialization.XmlTypeMapping typeMap, System.Object ob,
+System.String element, System.String namesp, Boolean isNullable, Boolean
+needType, Boolean writeWrappingElem)
+in <0x00553>
+System.Xml.Serialization.XmlSerializationWriterInterpreter:WriteMemberElement
+(System.Xml.Serialization.XmlTypeMapElementInfo elem, System.Object
+memberValue)
+in <0x00205>
+System.Xml.Serialization.XmlSerializationWriterInterpreter:WriteElementMembers
+(System.Xml.Serialization.ClassMap map, System.Object ob, Boolean isValueList)
+in <0x00041>
+System.Xml.Serialization.XmlSerializationWriterInterpreter:WriteObjectElementElements
+(System.Xml.Serialization.XmlTypeMapping typeMap, System.Object ob)
+in <0x000b0>
+System.Xml.Serialization.XmlSerializationWriterInterpreter:WriteObjectElement
+(System.Xml.Serialization.XmlTypeMapping typeMap, System.Object ob,
+System.String element, System.String namesp)
+in <0x0029b>
+System.Xml.Serialization.XmlSerializationWriterInterpreter:WriteObject
+(System.Xml.Serialization.XmlTypeMapping typeMap, System.Object ob,
+System.String element, System.String namesp, Boolean isNullable, Boolean
+needType, Boolean writeWrappingElem)
+in <0x00553>
+System.Xml.Serialization.XmlSerializationWriterInterpreter:WriteMemberElement
+(System.Xml.Serialization.XmlTypeMapElementInfo elem, System.Object
+memberValue)
+in <0x00107>
+System.Xml.Serialization.XmlSerializationWriterInterpreter:WriteListContent
+(System.Object container, System.Xml.Serialization.TypeData listType,
+System.Xml.Serialization.ListMap map, System.Object ob,
+System.Text.StringBuilder targetString)
+in <0x003fc>
+System.Xml.Serialization.XmlSerializationWriterInterpreter:WriteMemberElement
+(System.Xml.Serialization.XmlTypeMapElementInfo elem, System.Object
+memberValue)
+in <0x00110>
+System.Xml.Serialization.XmlSerializationWriterInterpreter:WriteElementMembers
+(System.Xml.Serialization.ClassMap map, System.Object ob, Boolean isValueList)
+in <0x00041>
+System.Xml.Serialization.XmlSerializationWriterInterpreter:WriteObjectElementElements
+(System.Xml.Serialization.XmlTypeMapping typeMap, System.Object ob)
+in <0x000b0>
+System.Xml.Serialization.XmlSerializationWriterInterpreter:WriteObjectElement
+(System.Xml.Serialization.XmlTypeMapping typeMap, System.Object ob,
+System.String element, System.String namesp)
+in <0x0029b>
+System.Xml.Serialization.XmlSerializationWriterInterpreter:WriteObject
+(System.Xml.Serialization.XmlTypeMapping typeMap, System.Object ob,
+System.String element, System.String namesp, Boolean isNullable, Boolean
+needType, Boolean writeWrappingElem)
+in <0x00553>
+System.Xml.Serialization.XmlSerializationWriterInterpreter:WriteMemberElement
+(System.Xml.Serialization.XmlTypeMapElementInfo elem, System.Object
+memberValue)
+in <0x00205>
+System.Xml.Serialization.XmlSerializationWriterInterpreter:WriteElementMembers
+(System.Xml.Serialization.ClassMap map, System.Object ob, Boolean isValueList)
+in <0x0002b>
+System.Xml.Serialization.XmlSerializationWriterInterpreter:WriteMembers
+(System.Xml.Serialization.ClassMap map, System.Object ob, Boolean isValueList)
+in <0x00120>
+System.Xml.Serialization.XmlSerializationWriterInterpreter:WriteMessage
+(System.Xml.Serialization.XmlMembersMapping membersMap, System.Object[]
+parameters)
+in <0x001fd>
+System.Xml.Serialization.XmlSerializationWriterInterpreter:WriteRoot
+(System.Object ob)
+in <0x00061> System.Xml.Serialization.XmlSerializer:Serialize
+(System.Object o, System.Xml.Serialization.XmlSerializationWriter writer)
+in <0x000b9> System.Xml.Serialization.XmlSerializer:Serialize
+(System.Xml.XmlWriter writer, System.Object o,
+System.Xml.Serialization.XmlSerializerNamespaces namespaces)
+in <0x00012> System.Xml.Serialization.XmlSerializer:Serialize
+(System.Xml.XmlWriter xmlWriter, System.Object o)
+in <0x000e7>
+System.Web.Services.Protocols.WebServiceHelper:WriteSoapMessage
+(System.Xml.XmlTextWriter xtw, SoapBindingUse methodUse,
+System.Xml.Serialization.XmlSerializer bodySerializer,
+System.Xml.Serialization.XmlSerializer headerSerializer, System.Object
+bodyContent, System.Object[] headers)
+in <0x0007f>
+System.Web.Services.Protocols.WebServiceHelper:WriteSoapMessage
+(System.Xml.XmlTextWriter xtw,
+System.Web.Services.Protocols.SoapMethodStubInfo method,
+SoapHeaderDirection dir, System.Object bodyContent,
+System.Web.Services.Protocols.SoapHeaderCollection headers)
+in <0x00084>
+System.Web.Services.Protocols.SoapHttpClientProtocol:SendRequest
+(System.IO.Stream s, System.Web.Services.Protocols.SoapClientMessage
+message, System.Web.Services.Protocols.SoapExtension[] extensions)
+in <0x0013b> System.Web.Services.Protocols.SoapHttpClientProtocol:Invoke
+(System.String method_name, System.Object[] parameters)
+in <0x0005e> DocProviderWS.wssurveydata.SurveyData:GetData (System.String
+key, DocProviderWS.wssurveydata.TransferDefBase transferDef,
+DocProviderWS.wssurveydata.ResponseToken token)
+in (wrapper remoting-invoke-with-check)
+DocProviderWS.wssurveydata.SurveyData:GetData
+(string,DocProviderWS.wssurveydata.TransferDefBase,DocProviderWS.wssurveydata.ResponseToken)
+in <0x0030e> DocProviderWS.ImplementazioneDocProviderWS:getVerbatims
+(DocProviderWS.Identificatorequestionario idquestionario,
+DocProviderWS.DomandaTestoLibero domanda, DocProviderWS.ParametriQuery
+parametri) 
+
+
+
+
+Steps to reproduce the problem:
+compile the classes in the file attached  and run the program.
+The program prepare data for the web service to be consumed and then 
+call it.
+
+Actual Results:
+
+exfeption reported above is returned and a request vithe empty body is sent.
+This because the XML pacage cant serialize the object
+
+
+Expected Results:
+
+a request is sent with the serialized object in it
+
+an exception caused by invliad session key or anauthorized access is
+returned. This beacuese the "anykey" parameter of the sd.getdata shoul be
+obtained by a previous authencitaion request.
+
+
+How often does this happen? 
+
+every time
+
+Additional Information:
+
+Executig the program compiling and running under the Microsoft .NET
+framework return the expected result.
+That's why I think it's a bug.


More information about the mono-bugs mailing list