[Mono-bugs] [Bug 666410] New: Unexpected exception in XmlDocument SelectNodes() method

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sat Jan 22 16:48:15 EST 2011


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

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


           Summary: Unexpected exception in XmlDocument SelectNodes()
                    method
    Classification: Mono
           Product: MonoDroid
           Version: unspecified
          Platform: x86
        OS/Version: Windows Vista
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Runtime
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: martinpg at javamarket.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: Third Party Developer/Partner
           Blocker: Yes


Environment: Visual Studio 2010, Monodroid 1.0.8980, Android 2.3 emulator
(installed using the Android SDK).

The following code compiles successfully. 

XmlDocument handXmlDocument = new XmlDocument();
XmlDeclaration dec = handXmlDocument.CreateXmlDeclaration("1.0", null, null);
handXmlDocument.AppendChild(dec);
XmlElement root = handXmlDocument.CreateElement("friendslist");
handXmlDocument.AppendChild(root);
XmlElement friendElement = handXmlDocument.CreateElement("friend");
friendElement.SetAttribute("locationx", "35");
friendElement.SetAttribute("locationy", "46");
friendElement.SetAttribute("phone", "4083706803");
root.AppendChild(friendElement);
XmlNodeList friendNodeList =
handXmlDocument.SelectNodes("/friendslist/friend");

Actual Results: When I run it using the Android 2.3 emulator, I get the
following exception:

E/mono ( 365): [0x45eec0:] EXCEPTION handling:
System.TypeInitializationException: An exception was thrown by the type
initializer for System.Console E/FriendsView( 365): Exception parsing XML
document: An exception was thrown by the type initializer for System.Console
E/FriendsView( 365): Inner exception parsing XML document:
System.ExecutionEngineException: SIGILL E/FriendsView( 365): at
System.Console..cctor () [0x00019] in
/Users/plasma/Work/mono-android-trunk/mcs/class/corlib/System/Console.cs:127 

Expected Results: The code should run successfully.

How often does this happen? Every time

Additional Information: Let me know if you need more information.

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list