[omniORB] omniORB.CORBA.BAD_PARAM

Duncan Grisby dgrisby@uk.research.att.com
Wed, 14 Nov 2001 17:43:30 +0000


On Wednesday 14 November, Paul Brannan wrote:

>     struct Bar {
>       char str[10];
>     };

[...]
>   b = Test.Bar('testing')

[...]
>   omniORB.CORBA.BAD_PARAM: Minor: 0, Completed: COMPLETED_NO.

You have defined the member str to be an array of 10 chars. You have
passed an array of 7 chars. Hence, the parameter to the operation is
bad, and you get a BAD_PARAM exception.

Perhaps you should define your struct as

     struct Bar {
       string str;
     };

Cheers,

Duncan.

-- 
 -- Duncan Grisby  \  Research Engineer  --
  -- AT&T Laboratories Cambridge          --
   -- http://www.uk.research.att.com/~dpg1 --