[omniORB] No connection to Naming Service from omniORB client

Christoph Thomalla tho@iitb.fhg.de
Tue Mar 11 17:35:02 2003


Hi,

it seems it's not a problem of connecting to the Naming Service but 
rather of bind using the java Naming Service (Win2K, VC++6.0, 
tnameserv.exe (JDK 1.3)). The other way, using omniORB Naming Service 
from java looks even worse.
I am doing things like:

CORBA::ORB_var orb = CORBA::ORB_init(argc,argv);
R2_Servant* R2_Ref = new R2_Servant("R2ping");
CORBA::Object_var objRef = orb->resolve_initial_references("NameService");
CosNaming::NamingContext_var ncRef =
CosNaming::NamingContext::_narrow(objRef);
CosNaming::Name nc;
nc.length(1);
nc[0].id   = CORBA::string_dup("R2ping");
nc[0].kind = CORBA::string_dup("");
try { ncRef -> bind(nc, R2_Ref->_this());}
catch(CosNaming::NamingContext::AlreadyBound& ex) {
	ncRef -> rebind(nc, R2_Ref->_this());	}		

The trace is:
omniORB: Read from configuration file 
"C:\Programme\omniORB-4.0.0\omniORB.cfg".
omniORB: Distribution date: Sun Sep 22 22:06:56 BST 2002 dgrisby
omniORB: My addresses are:
omniORB: 10.1.1.55
omniORB: 127.0.0.1
omniORB: Maximum supported GIOP version is 1.2
omniORB: Native char code sets: UTF-8 ISO-8859-1.
omniORB: Transmission char code sets: UTF-8(1.2) ISO-8859-1(1.2) 
ISO-8859-1(1.1)
  ISO-8859-1(1.0).
omniORB: Native wide char code sets: UTF-16.
omniORB: Transmission wide char code sets: UTF-16(1.2).
omniORB: Initialising omniDynamic library.
omniORB: Creating ref to remote: key<0x494e4954>
  target id      : omg.org/CORBA/InitialReferences:1.0
  most derived id: omg.org/CORBA/InitialReferences:1.0
omniORB: Current configuration is as follows:
omniORB:   DefaultInitRef =
omniORB:   abortOnInternalError = 0
omniORB:   acceptBiDirectionalGIOP = 0
omniORB:   acceptMisalignedTcIndirections = 0
omniORB:   bootstrapAgentHostname = 10.1.1.55
omniORB:   bootstrapAgentPort = 1050
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:   principal = [Null]
omniORB:   scanGranularity = 5
omniORB:   serverCallTimeOutPeriod = 0
omniORB:   serverTransportRule = * unix,ssl,tcp
omniORB:   strictIIOP = 1
omniORB:   supportBootstrapAgent = 1
omniORB:   supportCurrent = 1
omniORB:   tcAliasExpand = 0
omniORB:   threadPerConnectionLowerLimit = 9000
omniORB:   threadPerConnectionPolicy = 1
omniORB:   threadPerConnectionUpperLimit = 10000
omniORB:   threadPoolWatchConnection = 1
omniORB:   traceInvocations = 0
omniORB:   traceLevel = 40
omniORB:   traceThreadId = 0
omniORB:   unixTransportDirectory = /tmp/omni-%u
omniORB:   unixTransportPermission =  777
omniORB:   useTypeCodeIndirections = 1
omniORB:   verifyObjectExistsAndType = 1
omniORB: Trying to resolve initial reference `NameService'
  with boot agent: 
IOR:01000000240000006f6d672e6f72672f434f5242412f496e697469616c
5265666572656e6365733a312e300001000000000000001c000000010100000a00000031302e312e
312e3535001a0404000000494e4954
omniORB: AsyncInvoker: thread id = 1 has started. Total threads = 1
omniORB: Scavenger task execute.
omniORB: Client opened connection to giop:tcp:10.1.1.55:1050
omniORB: sendChunk: to giop:tcp:10.1.1.55:1050 60 bytes
4749 4f50 0100 0100 3000 0000 0000 0000 GIOP....0.......
0200 0000 01cd cdcd 0400 0000 494e 4954 ............INIT
0400 0000 6765 7400 0000 0000 0c00 0000 ....get.........
4e61 6d65 5365 7276 6963 6500           NameService.
omniORB: inputMessage: from giop:tcp:10.1.1.55:1050 328 bytes
4749 4f50 0100 0001 0000 013c 0000 0002 GIOP.......<....
0000 0006 0000 0090 0000 0000 0000 0028 ...............(
4944 4c3a 6f6d 672e 6f72 672f 5365 6e64 IDL:omg.org/Send
696e 6743 6f6e 7465 7874 2f43 6f64 6542 ingContext/CodeB
6173 653a 312e 3000 0000 0001 0000 0000 ase:1.0.........
0000 0054 0001 0100 0000 000a 3130 2e31 ...T........10.1
2e31 2e35 3500 0ce6 0000 0019 afab caff .1.55...........
0000 0002 62f5 89f1 0000 0008 0000 0001 ....b...........
0000 0000 0100 0000 0000 0001 0000 0001 ................
0000 0014 0000 0000 0001 0020 0000 0000 ........... ....
0001 0100 0000 0000 4e45 4f00 0000 0002 ........NEO.....
0003 0000 0000 0002 0000 0000 0000 0028 ...............(
4944 4c3a 6f6d 672e 6f72 672f 436f 734e IDL:omg.org/CosN
616d 696e 672f 4e61 6d69 6e67 436f 6e74 aming/NamingCont
6578 743a 312e 3000 0000 0001 0000 0000 ext:1.0.........
0000 0054 0001 0100 0000 000a 3130 2e31 ...T........10.1
2e31 2e35 3500 0ce6 0000 0019 afab caff .1.55...........
0000 0002 62f5 89f1 0000 0008 0000 0000 ....b...........
0000 0000 0100 0000 0000 0001 0000 0001 ................
0000 0014 0000 0000 0001 0020 0000 0000 ........... ....
0001 0100 0000 0000                     ........
omniORB: Creating ref to remote: 
key<0xafabcaff0000000262f589f100000008000000000
000000001>
  target id      : IDL:omg.org/CORBA/Object:1.0
  most derived id: IDL:omg.org/CosNaming/NamingContext:1.0
omniORB: Initial reference `NameService' resolved with boot agent.
omniORB: Initialising incoming endpoints.
omniORB: Scan for idle connections (1047394932,573000000)
omniORB: Scavenger reduce idle count for strand 00932870 to 23
omniORB: Scan for idle connections done (1047394932,573000000).
omniORB: Starting serving incoming endpoints.
omniORB: Adding root<0> (activating) to object table.
omniORB: State root<0> (activating) -> active
omniORB: Creating ref to local: root<0>
  target id      : IDL:PPModule/R2Object:1.0
  most derived id: IDL:PPModule/R2Object:1.0
omniORB: LocateRequest to remote: 
key<0xafabcaff0000000262f589f100000008000000000000000001>
omniORB: Client opened connection to giop:tcp:10.1.1.55:3302
omniORB: sendChunk: to giop:tcp:10.1.1.55:3302 45 bytes
4749 4f50 0101 0103 2100 0000 0200 0000 GIOP....!.......
1900 0000 afab caff 0000 0002 62f5 89f1 ............b...
00omniORB: AsyncInvoker: thread id = 2 has started. Total threads = 2
omniORB: giopRendezvouser task execute for giop:tcp:10.1.1.55:3332
00 0008 0000 0000 0000 0000 01        .............
omniORB: inputMessage: from giop:tcp:10.1.1.55:3302 20 bytes
4749 4f50 0100 0004 0000 0008 0000 0002 GIOP............
0000 0001                               ....
omniORB: From endpoint: giop:tcp:10.1.1.55:3302. Detected GIOP 1.1 
protocol error in input message. Connection is closed.
omniORB: throw giopStream::CommFailure from 
giopImpl11.cc:1001(0,MAYBE,COMM_FAILURE_WaitingForReply)
omniORB: Client connection refcount = 0
omniORB: Client close connection to giop:tcp:10.1.1.55:3302

Is there a way to see what actually happens?

Thanks

Christoph