[omniORB] omniORB4b2, darwin, resolving RootPOA throws exception
Rainer Frohnhoefer
rain_list@arcor.de
Sun Sep 8 23:39:01 2002
Hi,
I'm having trouble wih omniORB4 beta2 on a freshly updated MacOS X
(10.2) system. Build worked like a charm, omniNames is up and running.
When I try to start a tiny test server, it fails at
.....
// Obtain a reference to the root POA.
CORBA::Object_var obj = orb->resolve_initial_references("RootPOA");
cout << "poa here?" << endl;
.....
with a CORBA::Exception.
I've read about this sort of error in the lists and the reason was
trouble with the hostname setup. When run with tracelevel 25, the
address is reported to be 0.0.0.0
It's a machine with a fixed IP address and the /etc/hosts setup (or
rather, its NetInfo counterpart) seems to be OK.
Did I miss something obvious (currently, my primary language is Java
and it takes some time to get back into C++ again)? Does anybody have a
working setup with OS X 10.2?
Any hints, help, pointer appreciated.
Regards,
Rainer.
I attached the trace with tracelevel 25 ....
With tracelevel 25:
levity:omnithread/cxx{42}./omnithread -ORBtraceLevel 25
omniORB: Read from configuration file "/etc/omniORB.cfg".
omniORB: Distribution date: Fri Sep 6 23:21:54 BST 2002 dgrisby
omniORB: My addresses are:
omniORB: 0.0.0.0
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: Information: the omniDynamic library is not linked.
omniORB: Current configuration is as follows:
omniORB: DefaultInitRef =
omniORB: InitRef = NameService=corbaloc::levity:2809/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: principal = [Null]
omniORB: scanGranularity = 5
omniORB: serverCallTimeOutPeriod = 0
omniORB: serverTransportRule = * unix,ssl,tcp
omniORB: strictIIOP = 1
omniORB: supportBootstrapAgent = 0
omniORB: supportCurrent = 1
omniORB: tcAliasExpand = 0
omniORB: threadPerConnectionLowerLimit = 9000
omniORB: threadPerConnectionPolicy = 1
omniORB: threadPerConnectionUpperLimit = 10000
omniORB: threadPoolWatchConnection = 1
omniORB: traceInvocations = 0
omniORB: traceLevel = 25
omniORB: traceThreadId = 0
omniORB: unixTransportDirectory = /tmp/omni-%u
omniORB: unixTransportPermission = 777
omniORB: useTypeCodeIndirections = 1
omniORB: verifyObjectExistsAndType = 1
orb here. [------ that is my error message]
omniORB: resolve_initial_references throws CORBA::ORB::InvalidName
Caught CORBA::Exception. [------ that is my error message]
name : InvalidName [------ that is my error message]
omniORB: ORB not destroyed; no final clean-up.