[omniORB] Strange behavior of omniORB4

ondrej@frcatel.fri.utc.sk ondrej@frcatel.fri.utc.sk
Thu Feb 20 07:04:01 2003


Greetings,

  I have already (re)solved the compiling problem (my fault). But the
problem with unrecognised operation name persists. This is my idl

module Frcko {
	interface Hello {
		string repeatMessage(in string msg);
	};
};

As you can see, it is really the simple one.

This is my Python client

#!/usr/bin/env python

import sys
from omniORB import CORBA
import Frcko

orb = CORBA.ORB_init(sys.argv, CORBA.ORB_ID)

file = open('server.ior','r');
ior = file.readline();
file.close();

print "I have read %s" % ior

obj = orb.string_to_object(ior)

eo = obj._narrow(Frcko.Hello)

if eo is None:
    print "Object reference is not an Frcko::Hello"
    sys.exit(1)

message = "Hello from Python"

result  = eo.repeatMessage(message)

print "I said '%s'. The object said '%s'." % (message,result)

The server dumps its IOR into the file server.ior and each client reads it
(no NamingService for simplicity). This is the result

ondrej@frckoside python]$ ./echoclient.py
I have read
IOR:010000001400000049444c3a4672636b6f2f48656c6c6f3a312e3000010000000000000074000000010102000d00000031302e3233382e31382e36370000a7071d000000ff6563686f5f706f61fe0b7b543e010007eb004563686f5365727665720000000200000000000000080000000100000000545441010000001c00000001000000010001000100000001000105090101000100000009010100

Traceback (most recent call last):
  File "./echoclient.py", line 25, in ?
    result  = eo.repeatMessage(message)
  File "./echo_idl.py", line 46, in repeatMessage
    return _omnipy.invoke(self, "repeatMessage",
_0_Frcko.Hello._d_repeatMessage, args)
omniORB.CORBA.BAD_OPERATION: Minor:
BAD_OPERATION_UnRecognisedOperationName, COMPLETED_NO.
ondrej@frckoside python]$

Any ideas ?

		Ondrej