[omniORB] No connection to Naming Service from omniORB client
Christoph Thomalla
tho@iitb.fhg.de
Fri Mar 7 15:20:03 2003
Hi,
it seems to me I encountered quite the same problem as Ron (Win2K, VC++6.0).
I tried tnameserv.exe (JDK 1.3) and omniORB name service at different
ports with the same result.
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);
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: Current configuration is as follows:
omniORB: DefaultInitRef =
omniORB: InitRef = NameService=corbaname::PCIITB65
omniORB: InitRef = TradingService=corbaloc:rir:/NameService
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: 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: Creating ref to remote: key<0x4e616d6553657276696365>
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: Scavenger task execute.
omniORB: Client opened connection to giop:tcp:255.255.255.255:65535
omniORB: sendChunk: to giop:tcp:255.255.255.255:65535 100 bytes
4749 4f50 0100 0100 5800 0000 0000 0000 GIOP....X.......
0200 0000 01cd cdcd 0b00 0000 4e61 6d65 ............Name
5365 7276 6963 65cd 0600 0000 5f69 735f Service....._is_
6100 cdcd 0000 0000 2800 0000 4944 4c3a a.......(...IDL:
6f6d 672e 6f72 672f 436f 734e 616d 696e omg.org/CosNamin
672f 4e61 6d69 6e67 436f 6e74 6578 743a g/NamingContext:
312e 3000 1.0.
omniORB: throw giopStream::CommFailure from
giopStream.cc:1078(0,NO,COMM_FAILURE
_MarshalArguments)
omniORB: Client connection refcount = 0
omniORB: Client close connection to giop:tcp:255.255.255.255:65535
omniORB: throw TRANSIENT from omniObjRef.cc:732 (NO,0x41540003)
Is it a problem of parameter settings?
Any hint or work around would be appreciated.
Thanks
Christoph