Discussion:
[omniORB] problem with jacorb and omniorb
meguiraun001 at ikasle.ehu.es ()
2006-11-13 21:34:00 UTC
Permalink
Hello,
I am trying to connect a client written in python(bezero.py) to a server
written in jacorb. If both of them are in the same computer everything
python bezero.py
Traceback (most recent call last):
File "bezero.py", line 41, in ?
print eo.kalk()
File "/home/josu/Desktop/froga/bi/mik_idl.py", line 66, in kalk
return _omnipy.invoke(self, "kalk", _0_mik.send._d_kalk, args)
omniORB.CORBA.TRANSIENT: Minor: TRANSIENT_ConnectFailed, COMPLETED_NO.
__________
the programs are based on the examples of omniorbpy(2.7) and jacorb(2.2.4).
// mik.idl
module mik {
interface send {
string kalk();
};
};
in sendImpl() class i defined kalk(), it sends a string.
And the server call to this method when the client asks.

I am using omniNames, and i have defined omniorb.cfg as follows:

InitRef = NameService=corbaname:iiop:"myIPaddress":2809
clientTransportRule = * unix,tcp
endPoint = giop:tcp:"myIPaddress":
serverTransportRule = * unix,tcp,ssl

and jacorb:

ORBInitRef.NameService=corbaloc::"myIPaddress":2809/NameService

The rest of the lines i left as they were.

I have change the configuration files many times but i dont have fixed
the problem, Is something missing?

Many thanks in advance,

Mikel Eguiraun Arrieta, University of Basque Country,Bilbao Spain
Thomas Lockhart
2006-11-13 23:25:03 UTC
Permalink
Post by meguiraun001 at ikasle.ehu.es ()
I am trying to connect a client written in python(bezero.py) to a server
written in jacorb. If both of them are in the same computer everything
is ok, but if not...
You almost certainly have a DNS problem. By default, your jacorb server
probably uses the local host name for its CORBA IOR. If that local host
name is not the same as that known to the client when it uses the IOR to
find the server, the server will not be located.

Look at the IOR in omniNames or have your jacorb server print the IOR of
the server object. Then try to use the same name in a DNS lookup on your
client. That will give you some clues to look at. It may be sufficient
to just do a "hostname" on the server and do a "host result" on the
client machine, where "result" is the result of the hostname on the
server. Something will be amiss...

hth

- Tom

Loading...