[omniORB] Exception when passing a sequence of structs

Joshua Reynolds joshuar@isogen.com
Fri, 23 Mar 2001 08:38:22 -0600


I am having problems passing a sequence of structs. 
The struct is extremely simple, three string fields.
When I try to pass such a sequence, i receive a Corba.BAD_PARAM
exception

Using omniORBpy 1.3
on NT

IDL fragment:

struct Foo{
    string field1
    string field2
    string field3
    };

typedef sequence <Foo> FooList;

interface Bar{
        void method(in FooList theList);
};

Client Side Code:
client side is in python.

bar = ... get Bar objRef
myFoo = Foo("string1", "string2", "string3")
myFooList = [myFoo]
bar.method(myFooList)

Boom.


Any idea whats going on or what I'm doing wrong


---Joshua



Joshua Reynolds | Software Developer 
1016 La Posada Drive | Suite 240 | Austin TX  78752 
      T 512.380.0347 |  F 512.380.0429 | joshuar@isogen.com 
w w w . d a t a c h a n n e l . c o m