[Mono-bugs] [Bug 683074] New: Problem with DataSet.ReadXML: Unexpected EOF

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Mar 28 09:54:04 EDT 2011


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

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


           Summary: Problem with DataSet.ReadXML: Unexpected EOF
    Classification: Mono
           Product: MonoTouch
           Version: SVN
          Platform: iPhone
        OS/Version: Apple iOS 4.3
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Class Libraries
        AssignedTo: gnorton 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 a small database requirement so instead of SQLite I am using a simple
DataSet.  I have a schema as a resource of my application and then I just do a
WriteXML (ExcludeSchema) and ReadXML so I'm only reading/writing the data and
not bloating the file output with the schema.

I've had problems since day one with data just disappearing.  I don't know what
the cause is, I've had product update after update trying to rectify this,
today I'm starting a migration to SQLite as I cannot trust the DataSet methods
any longer.

A few releases ago I built in an exception logger and I've related the
following error message to the problem.  It appears your XmlReader may have an
issue with end of file problems, maybe due to an encoding or format issue on
the Apple platform?  Here is the error message logged:

3/23/2011 10:29:29 PM    Message: unexpected end of file. Current depth is 2
file:///private/var/mobile/Applications/DD3D61D5-8F04-4D7E-90BA-A7DBB999154E/Documents/app.db
Line 5194, position 1.
Exception: System.Xml.XmlException: unexpected end of file. Current depth is 2
file:///private/var/mobile/Applications/DD3D61D5-8F04-4D7E-90BA-A7DBB999154E/Documents/app.db
Line 5194, position 1.
  at Mono.Xml2.XmlTextReader.ReadContent () [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.XmlDocument.ReadNodeCore (System.Xml.XmlReader reader)
[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.Data.DataSet.ReadXml (System.Xml.XmlReader reader, XmlReadMode
mode) [0x00000] in <filename unknown>:0 
  at System.Data.DataSet.ReadXml (System.String fileName, XmlReadMode mode)
[0x00000] in <filename unknown>:0 
  at Logbook_Pro_Shared.Database.Load () [0x00000] in <filename unknown>:0 

FYI

Reproducible: Sometimes

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