[Mono-bugs] [Bug 703910] New: System.Xml.Serialization crash at reading of file
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Tue Jul 5 07:52:45 EDT 2011
https://bugzilla.novell.com/show_bug.cgi?id=703910
https://bugzilla.novell.com/show_bug.cgi?id=703910#c0
Summary: System.Xml.Serialization crash at reading of file
Classification: Mono
Product: Mono: Class Libraries
Version: 2.6.x
Platform: IA64
OS/Version: UNIX Other
Status: NEW
Severity: Critical
Priority: P5 - None
Component: Sys.XML
AssignedTo: atsushi at ximian.com
ReportedBy: jan.kraljic at patware.si
QAContact: mono-bugs at lists.ximian.com
Found By: Development
Blocker: Yes
Created an attachment (id=438314)
--> (http://bugzilla.novell.com/attachment.cgi?id=438314)
Main.cs for testing
Description of Problem:
Steps to reproduce the problem:
1. Compile code
2. Run program
Actual Results:
Unhandled Exception: System.InvalidOperationException: There was an error
reflecting type 'Bum.Glodalci.Krt.registerdocuments'. --->
System.InvalidOperationException: There was an error reflecting field
'registerdocument'. ---> System.InvalidOperationException: There was an error
reflecting type 'Bum.Glodalci.Krt.registerdocument'. --->
System.InvalidOperationException: There was an error reflecting field
'bibliographicdata'. ---> System.InvalidOperationException: There was an error
reflecting type 'Bum.Glodalci.Krt.bibliographicdata'. --->
System.InvalidOperationException: There was an error reflecting field
'parties'. ---> System.InvalidOperationException: There was an error reflecting
type 'Bum.Glodalci.Krt.parties'. ---> System.InvalidOperationException: There
was an error reflecting field 'applicants'. --->
System.InvalidOperationException: There was an error reflecting type
'Bum.Glodalci.Krt.applicants'. ---> System.InvalidOperationException: There was
an error reflecting field 'applicant'. ---> System.InvalidOperationException:
There was an error reflecting type 'Bum.Glodalci.Krt.applicant'. --->
System.InvalidOperationException: There was an error reflecting field
'designatedstates'. ---> System.InvalidOperationException: There was an error
reflecting type 'Bum.Glodalci.Krt.designatedstates'. --->
System.InvalidOperationException: There was an error reflecting field
'country1'. ---> System.InvalidOperationException: The XML element named
'country' from namespace '' is already present in the current scope. Use XML
attributes to specify another XML name or namespace for the element.
at System.Xml.Serialization.ClassMap.AddMember
(System.Xml.Serialization.XmlTypeMapMember member) [0x00000] in <filename
unknown>:0
at System.Xml.Serialization.XmlReflectionImporter.ImportClassMapping
(System.Xml.Serialization.TypeData typeData,
System.Xml.Serialization.XmlRootAttribute root, System.String defaultNamespace)
[0x00000] in <filename unknown>:0
--- End of inner exception stack trace ---
at System.Xml.Serialization.XmlReflectionImporter.ImportClassMapping
(System.Xml.Serialization.TypeData typeData,
System.Xml.Serialization.XmlRootAttribute root, System.String defaultNamespace)
[0x00000] in <filename unknown>:0
at System.Xml.Serialization.XmlReflectionImporter.ImportTypeMapping
(System.Xml.Serialization.TypeData typeData,
System.Xml.Serialization.XmlRootAttribute root, System.String defaultNamespace)
[0x00000] in <filename unknown>:0
--- End of inner exception stack trace ---
at System.Xml.Serialization.XmlReflectionImporter.ImportTypeMapping
(System.Xml.Serialization.TypeData typeData,
System.Xml.Serialization.XmlRootAttribute root, System.String defaultNamespace)
[0x00000] in <filename unknown>:0
at System.Xml.Serialization.XmlReflectionImporter.ImportTypeMapping
(System.Type type, System.Xml.Serialization.XmlRootAttribute root,
System.String defaultNamespace) [0x00000] in <filename unknown>:0
at System.Xml.Serialization.XmlReflectionImporter.ImportElementInfo
(System.Type cls, System.String defaultName, System.String defaultNamespace,
System.Type defaultType, System.Xml.Serialization.XmlTypeMapMemberElement
member, System.Xml.Serialization.XmlAttributes atts) [0x00000] in <filename
unknown>:0
at System.Xml.Serialization.XmlReflectionImporter.CreateMapMember
(System.Type declaringType, System.Xml.Serialization.XmlReflectionMember
rmember, System.String defaultNamespace) [0x00000] in <filename unknown>:0
at System.Xml.Serialization.XmlReflectionImporter.ImportClassMapping
(System.Xml.Serialization.TypeData typeData,
System.Xml.Serialization.XmlRootAttribute root, System.String defaultNamespace)
[0x00000] in <filename unknown>:0
--- End of inner exception stack trace ---
at System.Xml.Serialization.XmlReflectionImporter.ImportClassMapping
(System.Xml.Serialization.TypeData typeData,
System.Xml.Serialization.XmlRootAttribute root, System.String defaultNamespace)
[0x00000] in <filename unknown>:0
at System.Xml.Serialization.XmlReflectionImporter.ImportTypeMapping
(System.Xml.Serialization.TypeData typeData,
System.Xml.Serialization.XmlRootAttribute root, System.String defaultNamespace)
[0x00000] in <filename unknown>:0
--- End of inner exception stack trace ---
at System.Xml.Serialization.XmlReflectionImporter.ImportTypeMapping
(System.Xml.Serialization.TypeData typeData,
System.Xml.Serialization.XmlRootAttribute root, System.String defaultNamespace)
[0x00000] in <filename unknown>:0
at System.Xml.Serialization.XmlReflectionImporter.ImportTypeMapping
(System.Type type, System.Xml.Serialization.XmlRootAttribute root,
System.String defaultNamespace) [0x00000] in <filename unknown>:0
at System.Xml.Serialization.XmlReflectionImporter.ImportElementInfo
(System.Type cls, System.String defaultName, System.String defaultNamespace,
System.Type defaultType, System.Xml.Serialization.XmlTypeMapMemberElement
member, System.Xml.Serialization.XmlAttributes atts) [0x00000] in <filename
unknown>:0
at System.Xml.Serialization.XmlReflectionImporter.CreateMapMember
(System.Type declaringType, System.Xml.Serialization.XmlReflectionMember
rmember, System.String defaultNamespace) [0x00000] in <filename unknown>:0
at System.Xml.Serialization.XmlReflectionImporter.ImportClassMapping
(System.Xml.Serialization.TypeData typeData,
System.Xml.Serialization.XmlRootAttribute root, System.String defaultNamespace)
[0x00000] in <filename unknown>:0
--- End of inner exception stack trace ---
at System.Xml.Serialization.XmlReflectionImporter.ImportClassMapping
(System.Xml.Serialization.TypeData typeData,
System.Xml.Serialization.XmlRootAttribute root, System.String defaultNamespace)
[0x00000] in <filename unknown>:0
at System.Xml.Serialization.XmlReflectionImporter.ImportTypeMapping
(System.Xml.Serialization.TypeData typeData,
System.Xml.Serialization.XmlRootAttribute root, System.String defaultNamespace)
[0x00000] in <filename unknown>:0
--- End of inner exception stack trace ---
at System.Xml.Serialization.XmlReflectionImporter.ImportTypeMapping
(System.Xml.Serialization.TypeData typeData,
System.Xml.Serialization.XmlRootAttribute root, System.String defaultNamespace)
[0x00000] in <filename unknown>:0
at System.Xml.Serialization.XmlReflectionImporter.ImportTypeMapping
(System.Type type, System.Xml.Serialization.XmlRootAttribute root,
System.String defaultNamespace) [0x00000] in <filename unknown>:0
at System.Xml.Serialization.XmlReflectionImporter.ImportElementInfo
(System.Type cls, System.String defaultName, System.String defaultNamespace,
System.Type defaultType, System.Xml.Serialization.XmlTypeMapMemberElement
member, System.Xml.Serialization.XmlAttributes atts) [0x00000] in <filename
unknown>:0
at System.Xml.Serialization.XmlReflectionImporter.CreateMapMember
(System.Type declaringType, System.Xml.Serialization.XmlReflectionMember
rmember, System.String defaultNamespace) [0x00000] in <filename unknown>:0
at System.Xml.Serialization.XmlReflectionImporter.ImportClassMapping
(System.Xml.Serialization.TypeData typeData,
System.Xml.Serialization.XmlRootAttribute root, System.String defaultNamespace)
[0x00000] in <filename unknown>:0
--- End of inner exception stack trace ---
at System.Xml.Serialization.XmlReflectionImporter.ImportClassMapping
(System.Xml.Serialization.TypeData typeData,
System.Xml.Serialization.XmlRootAttribute root, System.String defaultNamespace)
[0x00000] in <filename unknown>:0
at System.Xml.Serialization.XmlReflectionImporter.ImportTypeMapping
(System.Xml.Serialization.TypeData typeData,
System.Xml.Serialization.XmlRootAttribute root, System.String defaultNamespace)
[0x00000] in <filename unknown>:0
--- End of inner exception stack trace ---
at System.Xml.Serialization.XmlReflectionImporter.ImportTypeMapping
(System.Xml.Serialization.TypeData typeData,
System.Xml.Serialization.XmlRootAttribute root, System.String defaultNamespace)
[0x00000] in <filename unknown>:0
at System.Xml.Serialization.XmlReflectionImporter.ImportTypeMapping
(System.Type type, System.Xml.Serialization.XmlRootAttribute root,
System.String defaultNamespace) [0x00000] in <filename unknown>:0
at System.Xml.Serialization.XmlReflectionImporter.ImportElementInfo
(System.Type cls, System.String defaultName, System.String defaultNamespace,
System.Type defaultType, System.Xml.Serialization.XmlTypeMapMemberElement
member, System.Xml.Serialization.XmlAttributes atts) [0x00000] in <filename
unknown>:0
at System.Xml.Serialization.XmlReflectionImporter.CreateMapMember
(System.Type declaringType, System.Xml.Serialization.XmlReflectionMember
rmember, System.String defaultNamespace) [0x00000] in <filename unknown>:0
at System.Xml.Serialization.XmlReflectionImporter.ImportClassMapping
(System.Xml.Serialization.TypeData typeData,
System.Xml.Serialization.XmlRootAttribute root, System.String defaultNamespace)
[0x00000] in <filename unknown>:0
--- End of inner exception stack trace ---
at System.Xml.Serialization.XmlReflectionImporter.ImportClassMapping
(System.Xml.Serialization.TypeData typeData,
System.Xml.Serialization.XmlRootAttribute root, System.String defaultNamespace)
[0x00000] in <filename unknown>:0
at System.Xml.Serialization.XmlReflectionImporter.ImportTypeMapping
(System.Xml.Serialization.TypeData typeData,
System.Xml.Serialization.XmlRootAttribute root, System.String defaultNamespace)
[0x00000] in <filename unknown>:0
--- End of inner exception stack trace ---
at System.Xml.Serialization.XmlReflectionImporter.ImportTypeMapping
(System.Xml.Serialization.TypeData typeData,
System.Xml.Serialization.XmlRootAttribute root, System.String defaultNamespace)
[0x00000] in <filename unknown>:0
at System.Xml.Serialization.XmlReflectionImporter.ImportTypeMapping
(System.Type type, System.Xml.Serialization.XmlRootAttribute root,
System.String defaultNamespace) [0x00000] in <filename unknown>:0
at System.Xml.Serialization.XmlReflectionImporter.ImportElementInfo
(System.Type cls, System.String defaultName, System.String defaultNamespace,
System.Type defaultType, System.Xml.Serialization.XmlTypeMapMemberElement
member, System.Xml.Serialization.XmlAttributes atts) [0x00000] in <filename
unknown>:0
at System.Xml.Serialization.XmlReflectionImporter.CreateMapMember
(System.Type declaringType, System.Xml.Serialization.XmlReflectionMember
rmember, System.String defaultNamespace) [0x00000] in <filename unknown>:0
at System.Xml.Serialization.XmlReflectionImporter.ImportClassMapping
(System.Xml.Serialization.TypeData typeData,
System.Xml.Serialization.XmlRootAttribute root, System.String defaultNamespace)
[0x00000] in <filename unknown>:0
--- End of inner exception stack trace ---
at System.Xml.Serialization.XmlReflectionImporter.ImportClassMapping
(System.Xml.Serialization.TypeData typeData,
System.Xml.Serialization.XmlRootAttribute root, System.String defaultNamespace)
[0x00000] in <filename unknown>:0
at System.Xml.Serialization.XmlReflectionImporter.ImportTypeMapping
(System.Xml.Serialization.TypeData typeData,
System.Xml.Serialization.XmlRootAttribute root, System.String defaultNamespace)
[0x00000] in <filename unknown>:0
--- End of inner exception stack trace ---
at System.Xml.Serialization.XmlReflectionImporter.ImportTypeMapping
(System.Xml.Serialization.TypeData typeData,
System.Xml.Serialization.XmlRootAttribute root, System.String defaultNamespace)
[0x00000] in <filename unknown>:0
at System.Xml.Serialization.XmlReflectionImporter.ImportTypeMapping
(System.Type type, System.Xml.Serialization.XmlRootAttribute root,
System.String defaultNamespace) [0x00000] in <filename unknown>:0
at System.Xml.Serialization.XmlReflectionImporter.ImportElementInfo
(System.Type cls, System.String defaultName, System.String defaultNamespace,
System.Type defaultType, System.Xml.Serialization.XmlTypeMapMemberElement
member, System.Xml.Serialization.XmlAttributes atts) [0x00000] in <filename
unknown>:0
at System.Xml.Serialization.XmlReflectionImporter.CreateMapMember
(System.Type declaringType, System.Xml.Serialization.XmlReflectionMember
rmember, System.String defaultNamespace) [0x00000] in <filename unknown>:0
at System.Xml.Serialization.XmlReflectionImporter.ImportClassMapping
(System.Xml.Serialization.TypeData typeData,
System.Xml.Serialization.XmlRootAttribute root, System.String defaultNamespace)
[0x00000] in <filename unknown>:0
--- End of inner exception stack trace ---
at System.Xml.Serialization.XmlReflectionImporter.ImportClassMapping
(System.Xml.Serialization.TypeData typeData,
System.Xml.Serialization.XmlRootAttribute root, System.String defaultNamespace)
[0x00000] in <filename unknown>:0
at System.Xml.Serialization.XmlReflectionImporter.ImportTypeMapping
(System.Xml.Serialization.TypeData typeData,
System.Xml.Serialization.XmlRootAttribute root, System.String defaultNamespace)
[0x00000] in <filename unknown>:0
--- End of inner exception stack trace ---
at System.Xml.Serialization.XmlReflectionImporter.ImportTypeMapping
(System.Xml.Serialization.TypeData typeData,
System.Xml.Serialization.XmlRootAttribute root, System.String defaultNamespace)
[0x00000] in <filename unknown>:0
at System.Xml.Serialization.XmlReflectionImporter.ImportTypeMapping
(System.Type type, System.Xml.Serialization.XmlRootAttribute root,
System.String defaultNamespace) [0x00000] in <filename unknown>:0
at System.Xml.Serialization.XmlSerializer..ctor (System.Type type,
System.Xml.Serialization.XmlAttributeOverrides overrides, System.Type[]
extraTypes, System.Xml.Serialization.XmlRootAttribute root, System.String
defaultNamespace) [0x00000] in <filename unknown>:0
at System.Xml.Serialization.XmlSerializer..ctor (System.Type type) [0x00000]
in <filename unknown>:0
at Krtina2.MainClass.Main (System.String[] args) [0x0007c] in
/home/jan/zoga/glodalci/krti/krtina2/Krtina2/Main.cs:37
Expected Results:
OUTPUT: NO OPPOSITION FILED WITHIN TIMELIMIT
How often does this happen?
Always
Additional Information:
- The following code works fine in windows
- Attached 2 files for testing
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the mono-bugs
mailing list