[Mono-bugs] [Bug 388522] New: Regression in System.Runtime.Remoting, erroneous exception

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu May 8 19:19:17 EDT 2008


           Summary: Regression in System.Runtime.Remoting, erroneous
           Product: Mono: Class Libraries
           Version: 1.2.6
          Platform: x86-64
        OS/Version: Linux
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: System
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: jay at jcornwall.me.uk
         QAContact: mono-bugs at lists.ximian.com
          Found By: Development

Created an attachment (id=213767)
 --> (https://bugzilla.novell.com/attachment.cgi?id=213767)
Test case for regression. Throws exception with faulty class libraries.

Between versions 1.2.4 and 1.2.6 of the Mono class libraries (likely, possibly
the runtime) the remoting mechanism began throwing exceptions in apparently
valid code.

The test case attached provides a simple client/server to demonstrate this. The
exception obtained on the client with 1.2.6 and 1.9.1 class libraries is as

Unhandled Exception: System.Runtime.Serialization.SerializationException: The
object with ID 2 could not be resolved
  at System.Runtime.Serialization.ObjectManager.DoFixups () [0x00000] 
  at System.Runtime.Serialization.Formatters.Soap.SoapReader.get_TopObject ()
  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] 
(System.IO.Stream responseStream, ITransportHeaders responseHeaders,
IMethodCallMessage mcm, System.Runtime.Remoting.Channels.SoapMessageFormatter
soapMsgFormatter) [0x00000] 
(IMessage msg) [0x00000] 
  at System.Runtime.Remoting.Proxies.RemotingProxy.Invoke (IMessage request)
  at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke
(System.Runtime.Remoting.Proxies.RealProxy rp, IMessage msg, System.Exception&
exc, System.Object[]& out_args) [0x00000] 

This does not occur if null is returned in the method being called in the
remote object. The problem seems to relate to the type of the object being
returned from the remote method call.

NET 3.5 runs this code successfully.

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