[omniORB] Connecting to the remote server

Evelin Halling evelin@solo.ee
Tue Feb 11 22:46:01 2003


Hi,

I am new to corba and 
i'm trying to connect to the remote server 
with client written in python
using omniORB4.0 and omniORBpy2.0

I have server's idl files, which i compiled
using omniidl -python file.idl

I configured
InitRef = Pank=corbaname::ip_address:14300
in omniORB.cfg

client code:
<--
import sys
from omniORB import CORBA
import VHLMsgRecvModule

orb = CORBA.ORB_init(sys.argv, CORBA.ORB_ID)
obj = orb.resolve_initial_references("Pank")
eo = obj._narrow(VHLMsgRecvModule.IVHLMsgRecv)

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

result = eo.ConnectionTest()
print result
-->

and i get the following error message:

omniORB: Distribution date: Sun Sep 22 22:06:56 BST 2002 dgrisby
omniORB: Information: the omniDynamic library is not linked.
omniORB: omniORBpy distribution date: Sun Sep 22 22:09:08 BST 2002 dgrisby
omniORB: Creating ref to remote: key<0x4e616d6553657276696365>
 target id      : IDL:omg.org/CORBA/Object:1.0
 most derived id:
omniORB: Initial reference `Pank' resolved from configuration file.
omniORB: Creating Python ref to remote: key<0x4e616d6553657276696365>
 target id      : IDL:omg.org/CORBA/Object:1.0
 most derived id:
omniORB: Invoke '_is_a' on remote: key<0x4e616d6553657276696365>
omniORB: AsyncInvoker: thread id = 2 has started. Total threads = 1
omniORB: throw giopStream::CommFailure from giopStream.cc:1045(0,NO,TRANSIENT_ConnectFailed)
omniORB: throw TRANSIENT from omniObjRef.cc:732 (NO,TRANSIENT_ConnectFailed)
Traceback (most recent call last):
  File "test.py", line 8, in ?
    eo = obj._narrow(VHLMsgRecvModule.IVHLMsgRecv)
  File "/usr/local/lib/python2.1/site-packages/CORBA.py", line 640, in _narrow
    sys.modules["CORBA"] = omniORB.CORBA
omniORB.CORBA.TRANSIENT: Minor: TRANSIENT_ConnectFailed, COMPLETED_NO.


what i'm doing wrong?
Please point me to the right direction.


Thanx,

evelin

Saada nr-le 1711 sõna SALM - Vastu saad ilusa ARMASTUSLUULETUSE!
Väga suur valik valentiniteemalisi e-kaarte Delfist!
http://www.delfi.ee/kaart/index.php?cat=valentine

Ütle, et 'Ma armastan sind...' http://1699.delfi.ee/?id=14