[Mono-bugs] [Bug 58702][Nor] New - An exception is thrown when trying to load and validate a XML document with XSD schema.

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Wed, 19 May 2004 09:29:43 -0400 (EDT)


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 oferb@mainsoft.com.

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

--- shadow/58702	2004-05-19 09:29:43.000000000 -0400
+++ shadow/58702.tmp.6214	2004-05-19 09:29:43.000000000 -0400
@@ -0,0 +1,59 @@
+Bug#: 58702
+Product: Mono: Class Libraries
+Version: unspecified
+OS: All
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: Unknown
+Priority: Normal
+Component: Sys.XML
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: oferb@mainsoft.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Summary: An exception is thrown when trying to load and validate a XML document with XSD schema.
+
+An exception is thrown when trying to load and validate a XML document 
+with XSD schema.
+
+1. Read a XML document using XmlReader.
+2. Using that reader define a XmlValidatingReader and add it the desired 
+XSD schema.
+3. Invoke the XmlDocument read method on the reader 
+
+Actual Results: an exception will be thrown:
+
+tried to access method clr.System.ObjectStaticWrapper.clone
+(Ljava/lang/Object;)Ljava/lang/Object; from class 
+Mono.Xml.Schema.XsdValidatingReader$XsdValidationContext
+        at 
+Mono.Xml.Schema.XsdValidatingReader$XsdValidationContext.PushScope
+(XsdValidatingReader.cs:1780)
+        at 
+Mono.Xml.Schema.XsdValidatingReader.AssessStartElementSchemaValidity
+(XsdValidatingReader.cs:891)
+        at Mono.Xml.Schema.XsdValidatingReader.Read
+(XsdValidatingReader.cs:1656)
+        at system.Xml.XmlValidatingReader.Read(XmlValidatingReader.cs:412)
+        at system.Xml.XmlDocument.ReadNode(XmlDocument.cs:727)
+        at system.Xml.XmlDocument.Load(XmlDocument.cs:604)
+        at TestClass.run(execlass.cs:108)
+        at TestClass.$Main$(execlass.cs:56)
+        at Class3.$Main$(mainclass.cs:39)
+        at Class3.main(mainclass.cs)
+
+Expected Results:
+no exception is thrown, the XMLDocument will be validate using the XSD. 
+(work fine in C#)
+
+
+How often does this happen? 
+always
+
+Additional Information: see attached files for example
+
+p.s. The attached example is part of SUN XML Test suite (called XMLMark) 
+in which they are comparing performance for XML in C# and Java (see 
+http://java.sun.com/developer/codesamples/webservices.html#Performance)