[Mono-bugs] [Bug 56259][Nor] New - Serialization Exception with System.Collections.Queue
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Tue, 30 Mar 2004 15:49:58 -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 gmiyake@carter-inc.com.
http://bugzilla.ximian.com/show_bug.cgi?id=56259
--- shadow/56259 2004-03-30 15:49:58.000000000 -0500
+++ shadow/56259.tmp.8573 2004-03-30 15:49:58.000000000 -0500
@@ -0,0 +1,213 @@
+Bug#: 56259
+Product: Mono: Runtime
+Version: unspecified
+OS: Red Hat 9.0
+OS Details: Client: Red Hat 9.0, Mono 0.31.99, Server: WinXP, .NET 1.1
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: misc
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: gmiyake@carter-inc.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Serialization Exception with System.Collections.Queue
+
+Please fill in this template when reporting a bug, unless you know what
+you are doing.
+Description of Problem:
+When using remoting to transfer a System.Collections.Queue object I got a
+Serialization Exception. This is with Mono 0.31.99.
+
+Steps to reproduce the problem:
+1. Request a System.Collections.Queue object from server to client using
+remoting.
+2. Client will get a Serialization Exception
+3.
+
+Actual Results:
+###################################
+RemotingClient caught Exception :
+System.Runtime.Serialization.SerializationExce
+ption: Field "_array" not found in class System.Collections.Queue
+
+Server stack trace:
+in [0x0024b]
+(at /home/gmiyake/mono/monoDist/monoAnonCVS/mcs/class/corlib/System
+.Runtime.Serialization.Formatters.Binary/ObjectReader.cs:444)
+System.Runtime.Ser
+ialization.Formatters.Binary.ObjectReader:ReadTypeMetadata
+(System.IO.BinaryRead
+er,bool)
+in [0x0000c]
+(at /home/gmiyake/mono/monoDist/monoAnonCVS/mcs/class/corlib/System
+.Runtime.Serialization.Formatters.Binary/ObjectReader.cs:208)
+System.Runtime.Ser
+ialization.Formatters.Binary.ObjectReader:ReadObjectInstance
+(System.IO.BinaryRe
+ader,bool,long&,object&,System.Runtime.Serialization.SerializationInfo&)
+in [0x0006c]
+(at /home/gmiyake/mono/monoDist/monoAnonCVS/mcs/class/corlib/System
+.Runtime.Serialization.Formatters.Binary/ObjectReader.cs:130)
+System.Runtime.Ser
+ialization.Formatters.Binary.ObjectReader:ReadObject
+(System.Runtime.Serializati
+on.Formatters.Binary.BinaryElement,System.IO.BinaryReader,long&,object&,Sy
+stem.R
+untime.Serialization.SerializationInfo&)
+in [0x00039]
+(at /home/gmiyake/mono/monoDist/monoAnonCVS/mcs/class/corlib/System
+.Runtime.Serialization.Formatters.Binary/ObjectReader.cs:102)
+System.Runtime.Ser
+ialization.Formatters.Binary.ObjectReader:ReadNextObject
+(System.IO.BinaryReader
+)
+in [0x00045]
+(at /home/gmiyake/mono/monoDist/monoAnonCVS/mcs/class/corlib/System
+.Runtime.Serialization.Formatters.Binary/ObjectReader.cs:83)
+System.Runtime.Seri
+alization.Formatters.Binary.ObjectReader:ReadObjectGraph
+(System.IO.BinaryReader
+,bool,object&,System.Runtime.Remoting.Messaging.Header[]&)
+in [0x00101]
+(at /home/gmiyake/mono/monoDist/monoAnonCVS/mcs/class/corlib/System
+.Runtime.Serialization.Formatters.Binary/MessageFormatter.cs:291)
+System.Runtime
+.Serialization.Formatters.Binary.MessageFormatter:ReadMethodCall
+(System.IO.Bina
+ryReader,bool,System.Runtime.Remoting.Messaging.HeaderHandler,System.Runti
+me.Ser
+ialization.Formatters.Binary.BinaryFormatter)
+in [0x00058]
+(at /home/gmiyake/mono/monoDist/monoAnonCVS/mcs/class/corlib/System
+.Runtime.Serialization.Formatters.Binary/BinaryFormatter.cs:131)
+System.Runtime.
+Serialization.Formatters.Binary.BinaryFormatter:Deserialize
+(System.IO.Stream,Sy
+stem.Runtime.Remoting.Messaging.HeaderHandler)
+in [0x00050]
+(at /home/gmiyake/mono/monoDist/monoAnonCVS/mcs/class/System.Runtim
+e.Remoting/System.Runtime.Remoting.Channels/BinaryServerFormatterSink.cs:9
+7) Sys
+tem.Runtime.Remoting.Channels.BinaryServerFormatterSink:ProcessMessage
+(System.R
+untime.Remoting.Channels.IServerChannelSinkStack,System.Runtime.Remoting.M
+essagi
+ng.IMessage,System.Runtime.Remoting.Channels.ITransportHeaders,System.IO.S
+tream,
+System.Runtime.Remoting.Messaging.IMessage&,System.Runtime.Remoting.Channe
+ls.ITr
+ansportHeaders&,System.IO.Stream&)
+
+
+Exception rethrown at [0]:
+ at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage
+(IMessage req
+Msg, IMessage retMsg)
+ at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke
+(MessageData& msgDa
+ta, Int32 type)
+ at RemotingTest.ServerList.SetXferBlock(XferBlock xBlock) in
+c:\amadeus\dev\m
+ono\monotest\remotingobject\remotingobject\remoteobject.cs:line 114
+ at RemotingTest.RemotingClient.Main() in
+c:\amadeus\dev\mono\monotest\remotin
+gclient\remotingclient.cs:line 135
+
+Server stack trace:
+in [0x0024b]
+(at /home/gmiyake/mono/monoDist/monoAnonCVS/mcs/class/corlib/System
+.Runtime.Serialization.Formatters.Binary/ObjectReader.cs:444)
+System.Runtime.Ser
+ialization.Formatters.Binary.ObjectReader:ReadTypeMetadata
+(System.IO.BinaryRead
+er,bool)
+in [0x0000c]
+(at /home/gmiyake/mono/monoDist/monoAnonCVS/mcs/class/corlib/System
+.Runtime.Serialization.Formatters.Binary/ObjectReader.cs:208)
+System.Runtime.Ser
+ialization.Formatters.Binary.ObjectReader:ReadObjectInstance
+(System.IO.BinaryRe
+ader,bool,long&,object&,System.Runtime.Serialization.SerializationInfo&)
+in [0x0006c]
+(at /home/gmiyake/mono/monoDist/monoAnonCVS/mcs/class/corlib/System
+.Runtime.Serialization.Formatters.Binary/ObjectReader.cs:130)
+System.Runtime.Ser
+ialization.Formatters.Binary.ObjectReader:ReadObject
+(System.Runtime.Serializati
+on.Formatters.Binary.BinaryElement,System.IO.BinaryReader,long&,object&,Sy
+stem.R
+untime.Serialization.SerializationInfo&)
+in [0x00039]
+(at /home/gmiyake/mono/monoDist/monoAnonCVS/mcs/class/corlib/System
+.Runtime.Serialization.Formatters.Binary/ObjectReader.cs:102)
+System.Runtime.Ser
+ialization.Formatters.Binary.ObjectReader:ReadNextObject
+(System.IO.BinaryReader
+)
+in [0x00045]
+(at /home/gmiyake/mono/monoDist/monoAnonCVS/mcs/class/corlib/System
+.Runtime.Serialization.Formatters.Binary/ObjectReader.cs:83)
+System.Runtime.Seri
+alization.Formatters.Binary.ObjectReader:ReadObjectGraph
+(System.IO.BinaryReader
+,bool,object&,System.Runtime.Remoting.Messaging.Header[]&)
+in [0x00101]
+(at /home/gmiyake/mono/monoDist/monoAnonCVS/mcs/class/corlib/System
+.Runtime.Serialization.Formatters.Binary/MessageFormatter.cs:291)
+System.Runtime
+.Serialization.Formatters.Binary.MessageFormatter:ReadMethodCall
+(System.IO.Bina
+ryReader,bool,System.Runtime.Remoting.Messaging.HeaderHandler,System.Runti
+me.Ser
+ialization.Formatters.Binary.BinaryFormatter)
+in [0x00058]
+(at /home/gmiyake/mono/monoDist/monoAnonCVS/mcs/class/corlib/System
+.Runtime.Serialization.Formatters.Binary/BinaryFormatter.cs:131)
+System.Runtime.
+Serialization.Formatters.Binary.BinaryFormatter:Deserialize
+(System.IO.Stream,Sy
+stem.Runtime.Remoting.Messaging.HeaderHandler)
+in [0x00050]
+(at /home/gmiyake/mono/monoDist/monoAnonCVS/mcs/class/System.Runtim
+e.Remoting/System.Runtime.Remoting.Channels/BinaryServerFormatterSink.cs:9
+7) Sys
+tem.Runtime.Remoting.Channels.BinaryServerFormatterSink:ProcessMessage
+(System.R
+untime.Remoting.Channels.IServerChannelSinkStack,System.Runtime.Remoting.M
+essagi
+ng.IMessage,System.Runtime.Remoting.Channels.ITransportHeaders,System.IO.S
+tream,
+System.Runtime.Remoting.Messaging.IMessage&,System.Runtime.Remoting.Channe
+ls.ITr
+ansportHeaders&,System.IO.Stream&)
+
+
+Exception rethrown at [0]:
+ at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage
+(IMessage req
+Msg, IMessage retMsg)
+ at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke
+(MessageData& msgDa
+ta, Int32 type)
+ at RemotingTest.ServerList.SetXferBlock(XferBlock xBlock) in
+c:\amadeus\dev\m
+ono\monotest\remotingobject\remotingobject\remoteobject.cs:line 114
+ at RemotingTest.RemotingClient.Main() in
+c:\amadeus\dev\mono\monotest\remotin
+gclient\remotingclient.cs:line 135
+###################################
+
+Expected Results:
+Expected Queue to be serialized.
+
+How often does this happen?
+Always.
+
+Additional Information:
+
+Thanks for fixing the previous Serialization problem with
+System.Collections.CollectionBase.