[omniORB] CORBA::BAD_TYPECODE from omniORBpy servant

Bray, Carl cbray@orchestream.com
Fri, 1 Dec 2000 16:19:38 -0000


Are you sure that your passing your time_to_live in from python as a short??

In Python use int(var).

carl



> -----Original Message-----
> From: Harri Pasanen [mailto:harri.pasanen@trema.com]
> Sent: 01 December 2000 16:04
> To: omniORB
> Subject: [omniORB] CORBA::BAD_TYPECODE from omniORBpy servant
> 
> 
> I'm using omniORBpy to write test programs for our internal CORBA
> servers.
> The servers are done using omniORB 2.8. For testing I've tried both
> omniORB 2.8,
> omniORBpy 1.2 and omni3_develop,  omnipy1_develop from CVS, with
> identical results.
> 
> When I create a callback object in omniORBpy and pass that to the
> server, I successfully get some calls back, but most of the time the
> server catches
> CORBA::BAD_TYPECODE exception.
> 
> The message passed to the callback object is:
> 
>   struct Message
>   {
>     unsigned short time_to_live;
>     string source;
>     string subject;
>     any data;
>   };
> 
> If I run with -ORBtraceLevel 1000, I see the following:
> 
> omniORB: throw BAD_TYPECODE from pyTypeCode.cc:2286
> 
> We have a C++ client with omniORB 2.8 that talks successfully to the
> server, so I presume the omniORBpy any handling is somehow at fault.
> 
> Any ideas?   If you want more complete trace info, I'm happy 
> to provide
> that.
> 
> -Harri
>