[omniORB] Pb to connect omniORB client to iona orbix 3.3 serverwith nameserver

CORNE Frederic SCR frederic.corne at wanadoo.com
Fri May 20 11:01:14 BST 2005


Hi,

Thank you for your response.

I tried your hints but the result is same :
I try :
InitRef NameService=corbaname::rivaldo.dt.wanadoo.com:1570
InitRef NameService=corbaloc::rivaldo.dt.wanadoo.com:1570/NameService

and
obj = nsRoot->resolve_str( "echo1" );
obj = nsRoot->resolve_str( "ECHO:echo1" );
obj = nsRoot->resolve_str( "echo1:ECHO" );
obj = nsRoot->resolve_str( ":\rivaldo.dt.wanadoo.com:echo1:ECHO::IR:Echo." );

nothing , I get always :
(...)
Hold of name service: OK
omniORB: AsyncInvoker: thread id = 1 has started. Total threads = 1
omniORB: Client opened connection to giop:tcp:192.168.39.85:1570
omniORB: throw BAD_OPERATION from GIOP_C.cc:241 (NO,0x00002801)
Caught CORBA::SystemException: [omniORB: omniRemoteIdentity deleted.
omniORB: ObjRef() -- deleted.
omniORB: ORB not destroyed; no final clean-up.

the server and the daemon orbix is reachables:
$telnet 192.168.39.85 1570
Trying 192.168.39.85...
Connected to rivaldo (192.168.39.85).
Escape character is '^]'.
HELP
d?óÀÊBÞ T_daemon*rivaldo.dt.wanadoo.comorbixG
                        Connection closed by foreign host.


on the solaris/orbix machine :
the server is bind with "ECHO" as marker and echo1 as :

$ psit
[8965:New Connection (rivaldo.dt.wanadoo.com,IT_daemon,*,orbix,pid=18315,optimised) ]
Active servers at node rivaldo.dt.wanadoo.com are :
Name            Marker  Code    Comms   Port    Launch  PerClient?      OS-pid
------------------------------------------------------------------------------
echo1           *       cdr     tcp     2599    manual  ---             8939
$ lsit
[8998:New Connection (rivaldo.dt.wanadoo.com,IT_daemon,*,orbix,pid=18315,optimised) ]
Root directory
    NS
    echo1

$ catit echo1
[8999:New Connection (rivaldo.dt.wanadoo.com,IT_daemon,*,orbix,pid=18315,optimised) ]


Server details for server  : echo1
   Comms           : tcp
   Code            : cdr
   Activation      : shared 
   Owner           : fcorne
   Launch          : ;all;
   Invoke          : ;all;dfti;

      Marker         Launch Command

      *              -- Persistent Launch Only --

$ 

I am completly blocked

FC


> -----Message d'origine-----
> De : Wernke zur Borg [mailto:Wernke.zur.Borg at vega.de]
> Envoyé : jeudi 19 mai 2005 17:53
> À : CORNE Frederic SCR
> Cc : omniorb-list at omniorb-support.com
> Objet : RE: [omniORB] Pb to connect omniORB client to iona orbix 3.3
> serverwith nameserver
> 
> 
> 
> Hi,
> 
> your initial references are wrong. Using the naming service you should
> specify:
> 
> InitRef NameService=corbaname::rivaldo.dt.wanadoo.com:1570
> or 
> InitRef NameService=corbaloc::rivaldo.dt.wanadoo.com:1570/NameService
> 
> Your object names are then resolved in the second step.
> 
> I have attached the famous echo example modified for the 
> naming service.
> 
> Regards, Wernke
> 
> 
> > 
> > Hello,
> > 
> > I can connect omniorb client to orbix server with IOR but not 
> > with nameserver.
> > I use eg2_clt and eg3_clt exemples.
> > 
> > with eg2 (with IOR in parameter)
> > 
> > on solaris orbix 3.3 I build a server with orbix :
> > 
> > % ./server 
> > 'IOR:000000000000000d49444c3a45636 (...)
> > 
> > % psit 
> > psit 
> > [12839:New Connection 
> > (rivaldo.dt.wanadoo.com,IT_daemon,*,orbix,pid=18315,optimised) ]
> > Active servers at node rivaldo.dt.wanadoo.com are :
> > Name            Marker  Code    Comms   Port    Launch  
> > PerClient?      OS-pid
> > --------------------------------------------------------------
> > ----------------
> > echo1           *       cdr     tcp     2598    manual  ---   
> >           7336
> > 
> > 
> > 
> > on redhat omniORB-4.0.1-2
> > 
> > % ./eg2_clt IOR:000000000000000d49444c3a45636(...)
> > I said, "Hello!".
> > The Echo object replied, "Hello!".
> > I said, "Hello!".
> > The Echo object replied, "Hello!".
> > I said, "Hello!".
> > (etc...) 
> > 
> > it is OK
> > 
> > 
> > % catior.omni IOR:000000000000000d49444c3a45636(...)
> > Type ID: "IDL:Echo:1.0"
> > Profiles:
> > 1. IIOP 1.1 rivaldo.dt.wanadoo.com 1570 
> > ":\rivaldo.dt.wanadoo.com:echo1:ECHO::IR:Echo."
> > 
> > 2. Multiple Component Profile             TAG_ORB_TYPE 0x49545f30
> > 
> > 
> > 
> > Now I try with eg3_clt and the nameserver which run on 
> > solaris on port 1570
> > 
> > in getObjectReference() :
> >   obj = orb->resolve_initial_references("NameService");
> > (...)
> >   CosNaming::Name name;
> >   name.length(2);
> > 
> >   name[0].id   = (const char*) "test";       
> >   name[0].kind = (const char*) "my_context"; 
> >   name[1].id   = (const char*) "Echo";
> >   name[1].kind = (const char*) "Object";
> > 
> >   rootContext->resolve(name);
> > 
> > 
> > in /etc/omniORB.cfg :
> > 
> > InitRef =NameService=corbaloc:iiop:rivaldo.dt.wanadoo.com:1570/echo1
> > or 
> > InitRef =NameService=corbaloc:iiop:rivaldo.dt.wanadoo.com:1570/Echo
> > 
> > 
> > and it don't work in any way.
> > 
> > ./eg3_clt -ORBtraceLevel 20 
> > omniORB: Read from configuration file "/etc/omniORB.cfg".
> > omniORB: Distribution date: Fri Mar 14 11:27:17 GMT 2003 dgrisby
> > omniORB: My addresses are: 
> > omniORB: 127.0.0.1
> > omniORB: 10.234.109.20
> > omniORB: 10.234.108.148
> > omniORB: 172.21.62.20
> > omniORB: Native char code sets: ISO-8859-1 UTF-8.
> > omniORB: Transmission char code sets: ISO-8859-1(1.2) 
> > ISO-8859-1(1.1) ISO-8859-1(1.0) UTF-8(1.2).
> > omniORB: Native wide char code sets: UTF-16.
> > omniORB: Transmission wide char code sets: UTF-16(1.2).
> > omniORB: Initialising omniDynamic library.
> > omniORB: Current configuration is as follows:
> > omniORB:   DefaultInitRef (file) = 
> > omniORB:   DefaultInitRef (args) = 
> > omniORB:   InitRef = 
> > NameService=corbaloc:iiop:192.168.39.85:1570/echo1
> > omniORB:   abortOnInternalError = 0
> > omniORB:   acceptBiDirectionalGIOP = 0
> > omniORB:   acceptMisalignedTcIndirections = 0
> > omniORB:   bootstrapAgentHostname = 
> > omniORB:   bootstrapAgentPort = 900
> > omniORB:   clientCallTimeOutPeriod = 0
> > omniORB:   clientTransportRule = * unix,ssl,tcp
> > omniORB:   diiThrowsSysExceptions = 0
> > omniORB:   dumpConfiguration = 0
> > omniORB:   endPoint = giop:tcp::
> > omniORB:   endPointPublishAllIFs = 0
> > omniORB:   giopMaxMsgSize = 2097152
> > omniORB:   giopTargetAddressMode = KeyAddr
> > omniORB:   id = omniORB4
> > omniORB:   inConScanPeriod = 180
> > omniORB:   lcdMode = 0
> > omniORB:   maxGIOPConnectionPerServer = 5
> > omniORB:   maxGIOPVersion = 1.2
> > omniORB:   maxInterleavedCallsPerConnection = 5
> > omniORB:   maxServerThreadPerConnection = 100
> > omniORB:   maxServerThreadPoolSize = 100
> > omniORB:   nativeCharCodeSet = ISO-8859-1
> > omniORB:   nativeWCharCodeSet = UTF-16
> > omniORB:   objectTableSize = 0
> > omniORB:   offerBiDirectionalGIOP = 0
> > omniORB:   omniORB_27_CompatibleAnyExtraction = 0
> > omniORB:   oneCallPerConnection = 1
> > omniORB:   outConScanPeriod = 120
> > omniORB:   poaHoldRequestTimeout = 0
> > omniORB:   poaUniquePersistentSystemIds = 1
> > omniORB:   principal = [Null]
> > omniORB:   scanGranularity = 5
> > omniORB:   serverCallTimeOutPeriod = 0
> > omniORB:   serverTransportRule = * unix,ssl,tcp
> > omniORB:   strictIIOP = 1
> > omniORB:   supportBootstrapAgent = 0
> > omniORB:   supportCurrent = 1
> > omniORB:   supportPerThreadTimeOut = 0
> > omniORB:   tcAliasExpand = 0
> > omniORB:   threadPerConnectionLowerLimit = 9000
> > omniORB:   threadPerConnectionPolicy = 1
> > omniORB:   threadPerConnectionUpperLimit = 10000
> > omniORB:   threadPoolWatchConnection = 1
> > omniORB:   traceInvocations = 0
> > omniORB:   traceLevel = 20
> > omniORB:   traceThreadId = 0
> > omniORB:   unixTransportDirectory = /tmp/omni-%u
> > omniORB:   unixTransportPermission =  777
> > omniORB:   useTypeCodeIndirections = 1
> > omniORB:   verifyObjectExistsAndType = 1
> > omniORB: Creating ref to remote: key<0x6563686f31>
> >  target id      : IDL:omg.org/CORBA/Object:1.0
> >  most derived id: 
> > omniORB: Initial reference `NameService' resolved from 
> > configuration file.
> > omniORB: AsyncInvoker: thread id = 1 has started. Total threads = 1
> > omniORB: Client opened connection to giop:tcp:192.168.39.85:1570
> > omniORB: throw BAD_OPERATION from GIOP_C.cc:241 (NO,0x00002801)
> > Caught CORBA::SystemException.
> > omniORB: omniRemoteIdentity deleted.
> > omniORB: ObjRef() -- deleted.
> > omniORB: ORB not destroyed; no final clean-up.
> > 
> > 
> > ???
> > 
> > any hint ?
> > 
> > thank you in advance
> > 
> > FC
> > 
> > 
> > _______________________________________________
> > omniORB-list mailing list
> > omniORB-list at omniorb-support.com
> > http://www.omniorb-support.com/mailman/listinfo/omniorb-list
> > 
> > 
> 



More information about the omniORB-list mailing list