[Mono-list] NullReferenceException at System.Xml.Serialization.XmlSerializer

Dave Curylo curylod at asme.org
Thu Jan 10 02:45:54 UTC 2013


I agree, it smells like a concurrency issue since it comes and goes
sporadically.

I'm running 2.10.8 on Ubuntu 12.04, just the one that ships from their
repos, so I assume this bug fix isn't in their packages.  How would I even
tell?

I can build from source and see if the issue disappears.  If not, maybe
this is the same issue Esben is hitting on 3.0.1.

On Wednesday, January 9, 2013, Andres G. Aragoneses wrote:

>
> Dave, what version of mono are you using?
>
> If you cannot reproduce these problems reliably when dealing with SOAP
> deserialization, you may be hitting a concurrency bug fixed in here:
>
> https://github.com/mono/mono/**commit/9a8ed89<https://github.com/mono/mono/commit/9a8ed89>
>
>
> On 09/01/13 18:18, Dave Curylo wrote:
>
>> For what it's worth, I get these exceptions from time to time
>> deserializing SOAP responses.  It's difficult for me to file a test case
>> for this as the exact same response will not always result in this
>> exception. It's a sporadic issue for me but it seems to be a problem in
>> generating the serializer classes.
>>
>> In most cases, I have to just catch the exception and work around it by
>> retrieving the response data from the service again.
>>
>> Hopefully Esben's case is a little more straight forward and he can
>> reproduce it reliably.
>>
>> On Wednesday, January 9, 2013, Andres G. Aragoneses wrote:
>>
>>     On 09/01/13 17:21, Esben Laursen wrote:
>>
>>         Hi All,
>>
>>         I sometimes get this execption to the console on my app. I have
>> not
>>         really identified what part of my code that is generating the
>>         exception
>>         (I use xml serializers extensively). The app does not crash and I
>> am
>>         fairly sure that I have wrapped all the parts of my code in a
>>         try/catch..
>>
>>         Here is the output to the console.
>>
>>         Serializer could not be generated
>>         System.NullReferenceException: Object reference not set to an
>>         instance
>>         of an object
>>             at System.Xml.Serialization.__**TypeData.ToCSharpName
>>         (System.Type type,
>>         Boolean full) [0x00000] in <filename unknown>:0
>>             at System.Xml.Serialization.__**TypeData.get_CSharpFullName
>> ()
>>         [0x00000]
>>         in <filename unknown>:0
>>             at
>>         System.Xml.Serialization.__**SerializationCodeGenerator.__**
>> GenerateReadObject
>>         (System.Xml.Serialization.__**XmlTypeMapping typeMap) [0x00000]
>> in
>>         <filename
>>         unknown>:0
>>             at
>>         System.Xml.Serialization.__**SerializationCodeGenerator.__**
>> GenerateReader
>>         (System.String readerClassName, System.Collections.ArrayList maps)
>>         [0x00000] in <filename unknown>:0
>>             at
>>         System.Xml.Serialization.__**SerializationCodeGenerator.__**
>> GenerateSerializers
>>         (System.IO.TextWriter writer) [0x00000] in <filename unknown>:0
>>             at
>>         System.Xml.Serialization.__**XmlSerializer.__**
>> GenerateSerializers
>>         (System.Xml.Serialization.__**GenerationBatch batch,
>>         System.CodeDom.Compiler.__**CompilerParameters cp) [0x00000] in
>>         <filename
>>         unknown>:0
>>
>>         I am running mono 3.0.1 complied from source on a Fedora Core..
>>
>>         Can any of you guys identify if this is a "bug" in mono or in my
>>         code..
>>         (and yes I might send something "wrong" into the serializer :-)
>>
>>         Hope you can help..
>>
>>
>>
>>     No matter how wrong you think the value to the serializer is, a
>>     NullReferenceException should never be generated from inside any
>>     class library, so this is likely a mono bug. File it with a minimal
>>     testcase in http://bugzilla.xamarin.com/
>>
>>
>>     ______________________________**___________________
>>     Mono-list maillist  - Mono-list at lists.ximian.com
>>     http://lists.ximian.com/__**mailman/listinfo/mono-list<http://lists.ximian.com/__mailman/listinfo/mono-list>
>>     <http://lists.ximian.com/**mailman/listinfo/mono-list<http://lists.ximian.com/mailman/listinfo/mono-list>
>> >
>>
>>
>>
>> ______________________________**_________________
>> Mono-list maillist  -  Mono-list at lists.ximian.com
>> http://lists.ximian.com/**mailman/listinfo/mono-list<http://lists.ximian.com/mailman/listinfo/mono-list>
>>
>>
>
> ______________________________**_________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/**mailman/listinfo/mono-list<http://lists.ximian.com/mailman/listinfo/mono-list>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-list/attachments/20130109/5fc9e9a3/attachment.html>


More information about the Mono-list mailing list