зеркало из https://github.com/mono/mail-archives.git
232 строки
8.0 KiB
HTML
232 строки
8.0 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
|
|
<HTML>
|
|
<HEAD>
|
|
<TITLE> [Mono-bugs] [Bug 475803] New: Deserialization using a SoapFormatter fails and Throw an Exception.
|
|
</TITLE>
|
|
<LINK REL="Index" HREF="index.html" >
|
|
<LINK REL="made" HREF="mailto:mono-bugs%40lists.ximian.com?Subject=%5BMono-bugs%5D%20%5BBug%20475803%5D%20New%3A%20Deserialization%20using%20a%20SoapFormatter%0A%20fails%20and%20Throw%20an%20Exception.&In-Reply-To=">
|
|
<META NAME="robots" CONTENT="index,nofollow">
|
|
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
|
|
<LINK REL="Previous" HREF="086154.html">
|
|
<LINK REL="Next" HREF="086035.html">
|
|
</HEAD>
|
|
<BODY BGCOLOR="#ffffff">
|
|
<H1>[Mono-bugs] [Bug 475803] New: Deserialization using a SoapFormatter fails and Throw an Exception.</H1>
|
|
<B>bugzilla_noreply at novell.com</B>
|
|
<A HREF="mailto:mono-bugs%40lists.ximian.com?Subject=%5BMono-bugs%5D%20%5BBug%20475803%5D%20New%3A%20Deserialization%20using%20a%20SoapFormatter%0A%20fails%20and%20Throw%20an%20Exception.&In-Reply-To="
|
|
TITLE="[Mono-bugs] [Bug 475803] New: Deserialization using a SoapFormatter fails and Throw an Exception.">bugzilla_noreply at novell.com
|
|
</A><BR>
|
|
<I>Fri Feb 13 13:13:23 EST 2009</I>
|
|
<P><UL>
|
|
<LI>Previous message: <A HREF="086154.html">[Mono-bugs] [Bug 475746] mdoc always exits with exit-code 0
|
|
</A></li>
|
|
<LI>Next message: <A HREF="086035.html">[Mono-bugs] [Bug 475803] Deserialization using a SoapFormatter fails and Throw an Exception.
|
|
</A></li>
|
|
<LI> <B>Messages sorted by:</B>
|
|
<a href="date.html#86034">[ date ]</a>
|
|
<a href="thread.html#86034">[ thread ]</a>
|
|
<a href="subject.html#86034">[ subject ]</a>
|
|
<a href="author.html#86034">[ author ]</a>
|
|
</LI>
|
|
</UL>
|
|
<HR>
|
|
<!--beginarticle-->
|
|
<PRE><A HREF="https://bugzilla.novell.com/show_bug.cgi?id=475803">https://bugzilla.novell.com/show_bug.cgi?id=475803</A>
|
|
|
|
|
|
Summary: Deserialization using a SoapFormatter fails and Throw
|
|
an Exception.
|
|
Classification: Mono
|
|
Product: Mono: Class Libraries
|
|
Version: 2.0.x
|
|
Platform: All
|
|
OS/Version: Debian Potato
|
|
Status: NEW
|
|
Severity: Major
|
|
Priority: P5 - None
|
|
Component: System
|
|
AssignedTo: <A HREF="http://lists.ximian.com/mailman/listinfo/mono-bugs">mono-bugs at lists.ximian.com</A>
|
|
ReportedBy: <A HREF="http://lists.ximian.com/mailman/listinfo/mono-bugs">solutionsntb at videotron.ca</A>
|
|
QAContact: <A HREF="http://lists.ximian.com/mailman/listinfo/mono-bugs">mono-bugs at lists.ximian.com</A>
|
|
Found By: ---
|
|
|
|
|
|
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; fr; rv:1.9.0.6)
|
|
Gecko/2009011913 Firefox/3.0.6 (.NET CLR 3.5.30729)
|
|
|
|
In fact the problem is that Deserialization dosent stop after it has done
|
|
reading an object, so when the second object comes by it throw an exception
|
|
because it has two root xml elements.
|
|
|
|
Reproducible: Always
|
|
|
|
Steps to Reproduce:
|
|
wget <A HREF="http://kiss.my.ass.x-dating.nl/SoapBug.zip">http://kiss.my.ass.x-dating.nl/SoapBug.zip</A>
|
|
unzip SoapBug.zip
|
|
cd ConsoleApplication1/ClassLibrary1/
|
|
gmcs -target:library -out:MySharedLib.dll MySharedLib.cs
|
|
Properties/AssemblyInfo.cs -r:System.Core -r:System.Xml.Linq
|
|
-r:System.Data.DataSetExtensions -r:System.Data -r:System.Xml
|
|
cd ../ConsoleApplication1
|
|
gmcs -out:MyApp.exe Program.cs Properties/AssemblyInfo.cs
|
|
-r:../ClassLibrary1/MySharedLib.dll -r:System.Core
|
|
-r:System.Runtime.Serialization.Formatters.Soap -r:System.Xml.Linq
|
|
-r:System.Data.DataSetExtensions -r:System.Data -r:System.Xml
|
|
MONO_PATH=../ConsoleApplication1/ClassLibrary1/:$MONO_PATH mono MyApp.exe
|
|
Actual Results:
|
|
Sent: MySharedLib.TestStruct
|
|
Sent: MySharedLib.TestStruct
|
|
System.Xml.XmlException: Multiple document element was detected. Line 7,
|
|
position 22.
|
|
at Mono.Xml2.XmlTextReader.ReadStartTag () [0x00000]
|
|
at Mono.Xml2.XmlTextReader.ReadContent () [0x00000]
|
|
at Mono.Xml2.XmlTextReader.Read () [0x00000]
|
|
at System.Xml.XmlTextReader.Read () [0x00000]
|
|
at System.Xml.XmlReader.ReadEndElement () [0x00000]
|
|
at System.Runtime.Serialization.Formatters.Soap.SoapReader.Deserialize
|
|
(System.IO.Stream inStream, ISoapMessage soapMessage) [0x00000]
|
|
at System.Runtime.Serialization.Formatters.Soap.SoapFormatter.Deserialize
|
|
(System.IO.Stream serializationStream,
|
|
System.Runtime.Remoting.Messaging.HeaderHandler handler) [0x00000]
|
|
at System.Runtime.Serialization.Formatters.Soap.SoapFormatter.Deserialize
|
|
(System.IO.Stream serializationStream) [0x00000]
|
|
at MyApp.Program.Main (System.String[] args) [0x00000] : Multiple document
|
|
element was detected. Line 7, position 22.
|
|
|
|
Expected Results:
|
|
Sent: MySharedLib.TestStruct
|
|
Sent: MySharedLib.TestStruct
|
|
Got: MySharedLib.TestStruct
|
|
Got: MySharedLib.TestStruct
|
|
|
|
<A HREF="http://lists.ximian.com/mailman/listinfo/mono-bugs">shockcore at armada</A>:/tmp/ConsoleApplication1/ClassLibrary1$ gmcs -target:library
|
|
-out:MySharedLib.dll MySharedLib.cs Properties/AssemblyInfo.cs -r:System.Core
|
|
-r:System.Xml.Linq -r:System.Data.DataSetExtensions -r:System.Data
|
|
-r:System.Xml
|
|
<A HREF="http://lists.ximian.com/mailman/listinfo/mono-bugs">shockcore at armada</A>:/tmp/ConsoleApplication1/ClassLibrary1$ cd
|
|
./ConsoleApplication1
|
|
<A HREF="http://lists.ximian.com/mailman/listinfo/mono-bugs">shockcore at armada</A>:/tmp/ConsoleApplication1/ConsoleApplication1$ gmcs
|
|
-out:MyApp.exe Program.cs Properties/AssemblyInfo.cs
|
|
-r:../ClassLibrary1/MySharedLib.dll -r:System.Core
|
|
-r:System.Runtime.Serialization.Formatters.Soap -r:System.Xml.Linq
|
|
-r:System.Data.DataSetExtensions -r:System.Data -r:System.Xml
|
|
Program.cs(18,20): warning CS0219: The variable `c' is assigned but its value
|
|
is never used
|
|
Program.cs(42,15): warning CS0414: The private field `MyApp.Client.timer' is
|
|
assigned but its value is never used
|
|
Compilation succeeded - 2 warning(s)
|
|
<A HREF="http://lists.ximian.com/mailman/listinfo/mono-bugs">shockcore at armada</A>:/tmp/ConsoleApplication1/ConsoleApplication1$
|
|
MONO_PATH=../ClassLibrary1/:$MONO_PATH mono MyApp.exe
|
|
Sent: MySharedLib.TestStruct
|
|
Sent: MySharedLib.TestStruct
|
|
System.Xml.XmlException: Multiple document element was detected. Line 7,
|
|
position 22.
|
|
at Mono.Xml2.XmlTextReader.ReadStartTag () [0x00000]
|
|
at Mono.Xml2.XmlTextReader.ReadContent () [0x00000]
|
|
at Mono.Xml2.XmlTextReader.Read () [0x00000]
|
|
at System.Xml.XmlTextReader.Read () [0x00000]
|
|
at System.Xml.XmlReader.ReadEndElement () [0x00000]
|
|
at System.Runtime.Serialization.Formatters.Soap.SoapReader.Deserialize
|
|
(System.IO.Stream inStream, ISoapMessage soapMessage) [0x00000]
|
|
at System.Runtime.Serialization.Formatters.Soap.SoapFormatter.Deserialize
|
|
(System.IO.Stream serializationStream,
|
|
System.Runtime.Remoting.Messaging.HeaderHandler handler) [0x00000]
|
|
at System.Runtime.Serialization.Formatters.Soap.SoapFormatter.Deserialize
|
|
(System.IO.Stream serializationStream) [0x00000]
|
|
at MyApp.Program.Main (System.String[] args) [0x00000] : Multiple document
|
|
element was detected. Line 7, position 22.
|
|
|
|
--
|
|
Configure bugmail: <A HREF="https://bugzilla.novell.com/userprefs.cgi?tab=email">https://bugzilla.novell.com/userprefs.cgi?tab=email</A>
|
|
------- You are receiving this mail because: -------
|
|
You are the QA contact for the bug.
|
|
You are the assignee for the bug.
|
|
</PRE>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!--endarticle-->
|
|
<HR>
|
|
<P><UL>
|
|
<!--threads-->
|
|
<LI>Previous message: <A HREF="086154.html">[Mono-bugs] [Bug 475746] mdoc always exits with exit-code 0
|
|
</A></li>
|
|
<LI>Next message: <A HREF="086035.html">[Mono-bugs] [Bug 475803] Deserialization using a SoapFormatter fails and Throw an Exception.
|
|
</A></li>
|
|
<LI> <B>Messages sorted by:</B>
|
|
<a href="date.html#86034">[ date ]</a>
|
|
<a href="thread.html#86034">[ thread ]</a>
|
|
<a href="subject.html#86034">[ subject ]</a>
|
|
<a href="author.html#86034">[ author ]</a>
|
|
</LI>
|
|
</UL>
|
|
|
|
<hr>
|
|
<a href="http://lists.ximian.com/mailman/listinfo/mono-bugs">More information about the mono-bugs
|
|
mailing list</a><br>
|
|
</body></html>
|