CORBA client & server with Python

Duncan Grisby dgrisby at uk.research.att.com
Thu Nov 8 11:45:50 EST 2001


In article <01c16873$ddd02ce0$06d1178b at mvn40020>,
 Murat Demir <murat.demir at icn.siemens.de> wrote:

>with this example, I compiled the .idl file, there is no problem with it,
>I run the server program, it' OK as well,
>but when I try to run client side program, the message is:
>
>bash-2.03$ python client.py 
>Traceback (most recent call last):
>  File "client.py", line 9, in ?
>    ior = sys.argv[1]
>IndexError: list index out of range

The client expects the IOR for the server on the command line. When
you ran the server, it printed a long hex string. You must give it to
the client. Something like this:

  $ python client.py IOR:010000000e00000049444c3a48656c6c6f3a312e30000
  00001000000000000003200000001010000040000004f692100d20400001e0000005
  76861742061726520796f75206c6f6f6b696e67206865726520666f723f

That string isn't a valid object reference. You must use the reference
for your server.

Cheers,

Duncan.

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



More information about the Python-list mailing list