[Mono-bugs] [Bug 696088] New: DataSet.ReadXmlSchema errors when trying to read a resource or asset

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed May 25 14:51:05 EDT 2011


https://bugzilla.novell.com/show_bug.cgi?id=696088

https://bugzilla.novell.com/show_bug.cgi?id=696088#c0


           Summary: DataSet.ReadXmlSchema errors when trying to read a
                    resource or asset
    Classification: Mono
           Product: MonoDroid
           Version: SVN
          Platform: 64bit
        OS/Version: Windows 7
            Status: NEW
          Severity: Critical
          Priority: P5 - None
         Component: Class Libraries
        AssignedTo: lluis at novell.com
        ReportedBy: neal at nc-software.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


User-Agent:       Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64;
Trident/5.0)

Hello,

I have an XML file saved to a Resource.Raw (and I tried Assets as well).  I use
either the OpenRawResource or Assets.Open method to access the stream and pass
it to the DataSet.ReadXmlSchema method.  I get an error as shown below from my
log system:

5/25/2011 1:49:48 PM    Message: Invalid data
Exception: System.Xml.XmlException: Invalid data --->
System.ArgumentOutOfRangeException: ArgRange_Array
Parameter name: byteCount
  at System.Text.UTF8Encoding.InternalGetChars (System.Byte[] bytes, Int32
byteIndex, Int32 byteCount, System.Char[] chars, Int32 charIndex,
System.UInt32& leftOverBits, System.UInt32& leftOverCount, System.Object
provider, System.Text.DecoderFallbackBuffer& fallbackBuffer, System.Byte[]&
bufferArg, Boolean flush) [0x00000] in <filename unknown>:0 
  at System.Text.UTF8Encoding+UTF8Decoder.GetChars (System.Byte[] bytes, Int32
byteIndex, Int32 byteCount, System.Char[] chars, Int32 charIndex) [0x00000] in
<filename unknown>:0 
  at System.Xml.NonBlockingStreamReader.ReadBuffer () [0x00000] in <filename
unknown>:0 
  at System.Xml.NonBlockingStreamReader.Read (System.Char[] dest_buffer, Int32
index, Int32 count) [0x00000] in <filename unknown>:0 
  at System.Xml.XmlStreamReader.Read (System.Char[] dest_buffer, Int32 index,
Int32 count) [0x00000] in <filename unknown>:0 
  --- End of inner exception stack trace ---
  at System.Xml.XmlStreamReader.Read (System.Char[] dest_buffer, Int32 index,
Int32 count) [0x00000] in <filename unknown>:0 
  at Mono.Xml2.XmlTextReader.ReadTextReader (Int32 remained) [0x00000] in
<filename unknown>:0 
  at Mono.Xml2.XmlTextReader.PeekChar () [0x00000] in <filename unknown>:0 
  at Mono.Xml2.XmlTextReader.ReadContent () [0x00000] in <filename unknown>:0 
  at Mono.Xml2.XmlTextReader.Read () [0x00000] in <filename unknown>:0 
  at System.Xml.XmlTextReader.Read () [0x00000] in <filename unknown>:0 
  at System.Xml.XmlReader.ReadEndElement () [0x00000] in <filename unknown>:0 
  at System.Data.XmlSchemaDataImporter..ctor (System.Data.DataSet dataset,
System.Xml.XmlReader reader, Boolean forDataSet) [0x00000] in <filename
unknown>:0 
  at System.Data.DataSet.ReadXmlSchema (System.Xml.XmlReader reader) [0x00000]
in <filename unknown>:0 
  at System.Data.DataSet.ReadXmlSchema (System.IO.Stream stream) [0x00000] in
<filename unknown>:0 
  at LogbookPro.SyncActivity.GetChanges () [0x00000] in <filename unknown>:0 
Method: GetChanges

Reproducible: Always

Steps to Reproduce:
1.
2.
3.

-- 
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