[omniORB] Sequence of empty sequences gives BAD_PARAM

Attila.Pletyak@anemo.com Attila.Pletyak@anemo.com
Wed, 27 Jun 2001 03:28:02 +0200


Hello,

  I've just tried the sequence of sequences and got an interesting thing. I
do not know if it is the correct behaviour, or not.

  One of the methods in my interface has a return value with a type
StringSeqSeq, where StringSeqSeq is a typedef to the sequence<
sequence<string> > type.

  Inside the application I do the following:
StringSeqSeq* myImpl::myfunct()
{
  StringSeqSeq_var retSeq = new StringSeqSeq();
  retSeq->length(5);

  for (unsigned int i=0; i < 5; ++i)
    {
      ...

      retSeq[i].length(1);

      ...

      if ( ... )
         retSeq[i].length(0);
    }

  return retSeq._retn();
}

Now, this code is causing me a CORBA::BAD_PARAM on the caller side. Is it
the expected behaviour of a CORBA system, or is it an omniORB specific
thing?

Thanks in advance,

Attila Pletyak
Anemo Ltd.