[Mono-bugs] [Bug 70554][Cri] New - XML Serialization problem

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Tue, 14 Dec 2004 11:32:54 -0500 (EST)


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 paulo.pires@vodafone.pt.

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

--- shadow/70554	2004-12-14 11:32:54.000000000 -0500
+++ shadow/70554.tmp.26786	2004-12-14 11:32:54.000000000 -0500
@@ -0,0 +1,58 @@
+Bug#: 70554
+Product: Mono: Runtime
+Version: 1.0
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Critical
+Component: misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: paulo.pires@vodafone.pt               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: XML Serialization problem
+
+Description of Problem:
+I have two objects: Fase and Semaphore.
+As in my app I'm going to have an undefined number of Fase and Semaphore
+instances, I've created two other objects derived from ArrayList: FaseList
+and SemaphoreList.
+
+FaseList has Fase objects
+Each Fase has a SemaphoreList object
+SemaphoreList has Semaphore objects
+
+So what I want is to serialize FaseList to a XML file. I've created a
+XmlData class which is responsible for writing/loading data to/from a XML file.
+
+
+Actual Results:
+After a successful compilation, I run it returning this:
+Unhandled Exception: System.ArgumentException: Key duplication when adding:
+ArrayOfAnyType/
+in [0x00159] (at
+/usr/local/src/mcs-1.0.5/class/corlib/System.Collections/Hashtable.cs:671)
+System.Collections.Hashtable:PutImpl (object,object,bool)
+in [0x00004] (at
+/usr/local/src/mcs-1.0.5/class/corlib/System.Collections/Hashtable.cs:360)
+System.Collections.Hashtable:Add (object,object)
+
+(... and so on!!)
+
+
+Expected Results:
+Full working serialization
+
+
+How often does this happen? 
+Always
+
+
+Additional Information:
+I've spoken to eno @ #mono @ irc.gnome.org , who has compiled and ran my
+app successfully with svn mono version and MS .NET. I'm running mono-1.0.5
+compiled from source.