[Mono-bugs] [Bug 53178][Blo] New - JDF 1.1 schema causes exception on compile
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Wed, 21 Jan 2004 14:17:41 -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 tcabanski@oai.cc.
http://bugzilla.ximian.com/show_bug.cgi?id=53178
--- shadow/53178 2004-01-21 14:17:40.000000000 -0500
+++ shadow/53178.tmp.5765 2004-01-21 14:17:41.000000000 -0500
@@ -0,0 +1,63 @@
+Bug#: 53178
+Product: Mono/Class Libraries
+Version: unspecified
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Blocker
+Component: Sys.XML
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: tcabanski@oai.cc
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: JDF 1.1 schema causes exception on compile
+
+The following simple console program:
+
+XmlSchema schema = XmlSchema.Read(new XmlTextReader("jdf.xsd"), null);
+try
+{
+ schema.Compile(null);
+}
+catch (Exception err)
+{
+ Console.WriteLine(err.ToString());
+}
+Console.WriteLine("done");
+
+produces the following output (assuming JDF.xsd and all included .xsd
+files are in the same folder as the executable) because Mono threw an
+exception:
+
+System.NullReferenceException: A null value was found where an object
+instance was required
+in <0x005bd> System.Xml.Schema.XmlSchemaAttribute:Validate
+(System.Xml.Schema.ValidationEventHandler,System.Xml.Schema.XmlSchema)
+in <0x0050f> System.Xml.Schema.XmlSchemaUtil:ValidateAttributesResolved
+(System.Xml.Schema.XmlSchemaObjectTable,System.Xml.Schema.ValidationEventH
+andler,System.Xml.Schema.XmlSchema,System.Xml.Schema.XmlSchemaObjectCollec
+tion,System.Xml.Schema.XmlSchemaAnyAttribute,System.Xml.Schema.XmlSchemaAn
+yAttribute&,System.Xml.Schema.XmlSchemaAttributeGroup)
+in <0x00143> System.Xml.Schema.XmlSchemaAttributeGroup:Validate
+(System.Xml.Schema.ValidationEventHandler,System.Xml.Schema.XmlSchema)
+in <0x00298> System.Xml.Schema.XmlSchema:Validate
+(System.Xml.Schema.ValidationEventHandler)
+in <0x01463> System.Xml.Schema.XmlSchema:Compile
+(System.Xml.Schema.ValidationEventHandler,System.Collections.Stack,System.
+Xml.Schema.XmlSchema,System.Xml.Schema.XmlSchemaCollection,System.Xml.XmlR
+esolver)
+in <0x0003e> System.Xml.Schema.XmlSchema:Compile
+(System.Xml.Schema.ValidationEventHandler,System.Xml.XmlResolver)
+in <0x00033> System.Xml.Schema.XmlSchema:Compile
+(System.Xml.Schema.ValidationEventHandler)
+in <0x00055> SimpleSchema.Class1:Main (string[])
+
+This was working a few days ago against Mono and still works against
+Microsoft. My version of the JDF schema is modifed slightly to eliminate
+problematic restriction facets and enumeration facets that cause problems
+with the Mono schema compile. I can supply the modified schema as a
+download if needed.