[omniORB] can't get rid of omniORB.BAD_PARAM_WrongPythonType

Duncan Grisby duncan at grisby.org
Sat Mar 31 13:26:14 BST 2007


On Friday 30 March, "Daschner, Stefan" wrote:

[...]
> interface myInterface {
>   long transmit(in any mesg);
> };

[...]
> class myIDL_i (myIDL__POA.myInterface):
>     def transmit(self, myInStruct):
>         print "the received object: \n", myInStruct

You haven't returned a value, meaning that transmit() returns None. The
IDL says it must return a long. If you return a value, you'll find you
no longer get the exception.

Cheers,

Duncan.

-- 
 -- Duncan Grisby         --
  -- duncan at grisby.org     --
   -- http://www.grisby.org --



More information about the omniORB-list mailing list