[Mono-devel-list] RE: [Remoting-corba-developer] Remoting.Corba on Mono

Kristopher Johnson kris at kristopherjohnson.net
Tue May 20 20:43:15 EDT 2003


Regarding the client-side error, it appears that either (a) an
IiopClientChannel or IiopChannel has not been registered, (b) the Mono
remoting infrastructure is not calling CreateMessageSink for the
registered channel, or (c) for some unknown reason,
IiopClientChannel::CreateMessageSink or IiopChannelBase::Parse doesn't
work right under Mono.

Regarding the server-side error, this appears similar to other errors
that have been reported using R.C with Mono.  Serialization of an IOR
just doesn't seem to work the same way with Mono. 

I don't have Mono installed, so I can't really check into this myself
right now.  A couple of people on the remoting-corba-developer list
are playing with Mono, so maybe they can investigate.

-- Kris


> -----Original Message-----
> From: remoting-corba-developer-admin at lists.sourceforge.net 
> [mailto:remoting-corba-developer-admin at lists.sourceforge.net] 
> On Behalf Of Miguel de Icaza
> Sent: Tuesday, May 20, 2003 7:03 PM
> To: 'Remoting .Corba'
> Cc: mono-devel-list at ximian.com
> Subject: [Remoting-corba-developer] Remoting.Corba on Mono
> 
> 
> Hello,
> 
>    With the CVS version of Mono, am able to get further away 
> with running the clients, here is the current stack trace:
> 
> Exception: System.Runtime.Remoting.RemotingException: Cannot 
> create channel sink to connect to URL 
> corbaloc:iiop:1.0 at localhost:12345/TestObject. An appropriate 
> channel has probably not been registered. in <0x00079> 00 
> System.Runtime.Remoting.RemotingServices:GetClientChannelSinkC
> hain (string,object,string&) in <0x000c9> 00 
> System.Runtime.Remoting.RemotingServices:GetOrCreateClientIden
> tity (System.Runtime.Remoting.ObjRef,System.Type)
> in <0x00017> 00 
> System.Runtime.Remoting.RemotingServices:GetRemoteObject 
> (System.Runtime.Remoting.ObjRef,System.Type)
> in <0x00047> 00 
> System.Runtime.Remoting.RemotingServices:Connect 
> (System.Type,string) in <0x00010> 00 
> System.Activator:GetObject (System.Type,string) in <0x00050> 
> 00 Remoting.Corba.TestClient.TestClient:Main (string[])
> 
>     Servers run into this problem:
> 
> Unhandled Exception: System.InvalidCastException: Cannot cast 
> from source type to destination type in <0x00034> 00 
> Remoting.Corba.Serialization.IdlTypes.IdlSequenceWriter:Serial
> izeIList 
> (Remoting.Corba.Serialization.GiopSerializationContext,object)
> in <0x0005a> 01 
> System.MulticastDelegate:invoke_void_GiopSerializationContext_
> object
(Remoting.Corba.Serialization.GiopSerializationContext,object)
> in <0x0001a> 00 
> Remoting.Corba.Serialization.GiopSerializer:Serialize 
> (Remoting.Corba.Serialization.GiopSerializationContext,object)
> in <0x0005a> 01 
> System.MulticastDelegate:invoke_void_GiopSerializationContext_
> object
(Remoting.Corba.Serialization.GiopSerializationContext,object)
> in <0x0012c> 00 
> Remoting.Corba.Serialization.IdlTypes.IdlSequenceWriter:Serial
> izeIList 
> (Remoting.Corba.Serialization.GiopSerializationContext,object)
> in <0x0005a> 01 
> System.MulticastDelegate:invoke_void_GiopSerializationContext_
> object
(Remoting.Corba.Serialization.GiopSerializationContext,object)
> in <0x0001a> 00 
> Remoting.Corba.Serialization.GiopSerializer:Serialize 
> (Remoting.Corba.Serialization.GiopSerializationContext,object)
> in <0x00121> 00 
> Remoting.Corba.Iiop.IiopProfile:ToTaggedProfile () in 
> <0x00032> 00 Remoting.Corba.Iiop.IiopProfile:ToIor (string) 
> in <0x000ec> 00 
> Remoting.Corba.Channels.Iiop.IiopServerChannel:GetIorForObject
>  (System.MarshalByRefObject) in <0x00014> 00 
> Remoting.Corba.Channels.Iiop.IiopChannel:GetIorForObject 
> (System.MarshalByRefObject) in <0x000e7> 00 
> Remoting.Corba.TestServer.TestServer:Main (string[])
> 
>     Typically an array of bytes is being serialized, but then 
> the serializer invokes the same array-serialization function 
> on a byte, which is the above failure.
> 
>     I also ran the regression test suite with NUnit and found 
> multiple problems.  I guess I need to setup TAO before I can run
this.
> 
>     I have uploaded my source tree with Unix makefiles here:
> 
	http://primates.ximian.com/~miguel/tmp/RemotingCorbaUnix.zip

Miguel.


-------------------------------------------------------
This SF.net email is sponsored by: ObjectStore.
If flattening out C++ or Java code to make your application fit in a
relational database is painful, don't do it! Check out ObjectStore.
Now part of Progress Software. http://www.objectstore.net/sourceforge
_______________________________________________
Remoting-corba-developer mailing list
Remoting-corba-developer at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/remoting-corba-developer




More information about the Mono-devel-list mailing list