[Mono-bugs] [Bug 591865] New: System.Xml.XmlException
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Mon Mar 29 09:41:39 EDT 2010
http://bugzilla.novell.com/show_bug.cgi?id=591865
http://bugzilla.novell.com/show_bug.cgi?id=591865#c0
Summary: System.Xml.XmlException
Classification: Mono
Product: Mono: Class Libraries
Version: 2.6.x
Platform: x86-64
OS/Version: openSUSE 11.2
Status: NEW
Severity: Normal
Priority: P5 - None
Component: WPF
AssignedTo: toshok at novell.com
ReportedBy: ustramooner at users.sourceforge.net
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Blocker: ---
Created an attachment (id=351148)
--> (http://bugzilla.novell.com/attachment.cgi?id=351148)
DocumentFormat.OpenXML test files
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/533.2
(KHTML, like Gecko) Chrome/5.0.342.7 Safari/533.2
Something to do with the Package creation sequence causes a failure:
FAILS:
ExtendedFilePropertiesPart extendedFilePropertiesPart1 =
document.AddNewPart<ExtendedFilePropertiesPart>("rId3");
GenerateExtendedFilePropertiesPart1Content(extendedFilePropertiesPart1);
MainDocumentPart mainDocumentPart1 = document.AddMainDocumentPart();
SUCCEEDS:
//ExtendedFilePropertiesPart extendedFilePropertiesPart1 =
//document.AddNewPart<ExtendedFilePropertiesPart>("rId3");
//GenerateExtendedFilePropertiesPart1Content(extendedFilePropertiesPart1);
MainDocumentPart mainDocumentPart1 = document.AddMainDocumentPart();
See attached zip file for more details
Reproducible: Always
Steps to Reproduce:
1. run 'mono Main.exe 1'
2.
3.
Actual Results:
Unhandled Exception: System.Xml.XmlException: Document element did not appear.
Line 1, position 1.
at Mono.Xml2.XmlTextReader.Read () [0x00000] in <filename unknown>:0
at System.Xml.XmlTextReader.Read () [0x00000] in <filename unknown>:0
at Mono.Xml.EntityResolvingXmlReader.Read () [0x00000] in <filename
unknown>:0
at Mono.Xml.DTDValidatingReader.ReadContent () [0x00000] in <filename
unknown>:0
at Mono.Xml.DTDValidatingReader.Read () [0x00000] in <filename unknown>:0
at Mono.Xml.Schema.XsdValidatingReader.Read () [0x00000] in <filename
unknown>:0
at System.Xml.XmlValidatingReader.Read () [0x00000] in <filename unknown>:0
at System.Xml.XmlDocument.ReadNodeCore (System.Xml.XmlReader reader)
[0x00000] in <filename unknown>:0
at System.Xml.XmlDocument.ReadNode (System.Xml.XmlReader reader) [0x00000] in
<filename unknown>:0
at System.Xml.XmlDocument.Load (System.Xml.XmlReader xmlReader) [0x00000] in
<filename unknown>:0
at System.Xml.XmlDocument.Load (System.IO.Stream inStream) [0x00000] in
<filename unknown>:0
at System.IO.Packaging.Package.LoadRelationships () [0x00000] in <filename
unknown>:0
at System.IO.Packaging.Package.get_Relationships () [0x00000] in <filename
unknown>:0
at System.IO.Packaging.Package.CreateRelationship (System.Uri targetUri,
TargetMode targetMode, System.String relationshipType, System.String id,
Boolean loading) [0x00000] in <filename unknown>:0
at System.IO.Packaging.Package.CreateRelationship (System.Uri targetUri,
TargetMode targetMode, System.String relationshipType, System.String id)
[0x00000] in <filename unknown>:0
at DocumentFormat.OpenXml.Packaging.OpenXmlPackage.CreateRelationship
(System.Uri targetUri, TargetMode targetMode, System.String relationshipType,
System.String id) [0x00000] in <filename unknown>:0
at DocumentFormat.OpenXml.Packaging.OpenXmlPartContainer.AttachChild
(DocumentFormat.OpenXml.Packaging.OpenXmlPart part, System.String rId)
[0x00000] in <filename unknown>:0
at
DocumentFormat.OpenXml.Packaging.OpenXmlPartContainer.InitPart[ExtendedFilePropertiesPart]
(DocumentFormat.OpenXml.Packaging.ExtendedFilePropertiesPart newPart,
System.String contentType, System.String id) [0x00000] in <filename unknown>:0
at
DocumentFormat.OpenXml.Packaging.OpenXmlPartContainer.AddNewPartInternal[ExtendedFilePropertiesPart]
(System.String contentType, System.String id) [0x00000] in <filename unknown>:0
at
DocumentFormat.OpenXml.Packaging.OpenXmlPartContainer.AddNewPart[ExtendedFilePropertiesPart]
(System.String id) [0x00000] in <filename unknown>:0
at mono.bug.demo.MainClass.CreateParts
(DocumentFormat.OpenXml.Packaging.WordprocessingDocument document, Boolean
showXmlGenerationException) [0x00000] in <filename unknown>:0
at mono.bug.demo.MainClass.CreatePackage (System.String filePath, Boolean
showXmlGenerationException) [0x00000] in <filename unknown>:0
at mono.bug.demo.MainClass.Main (System.String[] args) [0x00000] in <filename
unknown>:0
Expected Results:
no exception
See README in the zip file for more details, including:
* Main.cs a test program that produces several different problems
* README describes all the bugs I found and how to reproduce
* DocumentFormat.OpenXml.dll the dll I'm running
* expected.docx the expected docx that the Main.cs should create
* WindowsBase.diff: a patch that I applied to my code
--
Configure bugmail: http://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