<br />
Hi,<br />
<br />
I had build the omniORB library on INTEGRITY and i tried to run the simple echo example over it(client and server collocated). The application is running but, i am not getting any output. For the debugging purpose i set the traceLevel = 25. Can someone figure out from the output <br />
<br />
I/O: omniORB: My addresses are: <br />
I/O: omniORB: Maximum supported GIOP version is 1.2<br />
I/O: omniORB: Native char code sets: ISO-8859-1 UTF-8.<br />
I/O: omniORB: Transmission char code sets: ISO-8859-1(1.2) ISO-8859-1(1.1) ISO-8859-1(1.0) UTF-8(1.2) UTF-8(1.1).<br />
I/O: omniORB: Native wide char code sets: UTF-16.<br />
I/O: omniORB: Transmission wide char code sets: UTF-16(1.2).<br />
I/O: omniORB: Information: the omniDynamic library is not linked.<br />
I/O: omniORB: Current configuration is as follows:<br />
I/O: omniORB: DefaultInitRef (file) = <br />
I/O: omniORB: DefaultInitRef (args) = <br />
I/O: omniORB: abortOnInternalError = 0<br />
I/O: omniORB: abortOnNativeException = 0<br />
I/O: omniORB: acceptBiDirectionalGIOP = 0<br />
I/O: omniORB: acceptMisalignedTcIndirections = 0<br />
I/O: omniORB: bootstrapAgentHostname = <br />
I/O: omniORB: bootstrapAgentPort = 900<br />
I/O: omniORB: clientCallTimeOutPeriod = 0<br />
I/O: omniORB: clientConnectTimeOutPeriod = 0<br />
I/O: omniORB: clientTransportRule = * unix,ssl,tcp<br />
I/O: omniORB: configFile = <br />
I/O: omniORB: connectionWatchImmediate = 0<br />
I/O: omniORB: connectionWatchPeriod = 50000<br />
I/O: omniORB: copyValuesInLocalCalls = 1<br />
I/O: omniORB: diiThrowsSysExceptions = 0<br />
I/O: omniORB: dumpConfiguration = 0<br />
I/O: omniORB: endPoint = giop:tcp::<br />
I/O: omniORB: endPointPublish = addr<br />
I/O: omniORB: giopMaxMsgSize = 2097152<br />
I/O: omniORB: giopTargetAddressMode = KeyAddr<br />
I/O: omniORB: id = omniORB4<br />
I/O: omniORB: idleThreadTimeout = 10<br />
I/O: omniORB: immediateAddressSwitch = 0<br />
I/O: omniORB: inConScanPeriod = 180<br />
I/O: omniORB: lcdMode = 0<br />
I/O: omniORB: maxGIOPConnectionPerServer = 5<br />
I/O: omniORB: maxGIOPVersion = 1.2<br />
I/O: omniORB: maxInterleavedCallsPerConnection = 5<br />
I/O: omniORB: maxServerThreadPerConnection = 100<br />
I/O: omniORB: maxServerThreadPoolSize = 100<br />
I/O: omniORB: maxSocketRecv = 2147483647<br />
I/O: omniORB: maxSocketSend = 2147483647<br />
I/O: omniORB: nativeCharCodeSet = ISO-8859-1<br />
I/O: omniORB: nativeWCharCodeSet = UTF-16<br />
I/O: omniORB: objectTableSize = 0<br />
I/O: omniORB: offerBiDirectionalGIOP = 0<br />
I/O: omniORB: oneCallPerConnection = 1<br />
I/O: omniORB: outConScanPeriod = 120<br />
I/O: omniORB: poaHoldRequestTimeout = 0<br />
I/O: omniORB: poaUniquePersistentSystemIds = 1<br />
I/O: omniORB: principal = [Null]<br />
I/O: omniORB: resetTimeOutOnRetries = 0<br />
I/O: omniORB: scanGranularity = 5<br />
I/O: omniORB: serverCallTimeOutPeriod = 0<br />
I/O: omniORB: serverTransportRule = * unix,ssl,tcp<br />
I/O: omniORB: socketSendBuffer = -1<br />
I/O: omniORB: strictIIOP = 1<br />
I/O: omniORB: supportBootstrapAgent = 0<br />
I/O: omniORB: supportCurrent = 1<br />
I/O: omniORB: supportPerThreadTimeOut = 0<br />
I/O: omniORB: tcAliasExpand = 0<br />
I/O: omniORB: threadPerConnectionLowerLimit = 9000<br />
I/O: omniORB: threadPerConnectionPolicy = 1<br />
I/O: omniORB: threadPerConnectionUpperLimit = 10000<br />
I/O: omniORB: threadPoolWatchConnection = 1<br />
I/O: omniORB: traceExceptions = 1<br />
I/O: omniORB: traceFile = [stderr]<br />
I/O: omniORB: traceInvocationReturns = 0<br />
I/O: omniORB: traceInvocations = 0<br />
I/O: omniORB: traceLevel = 25<br />
I/O: omniORB: traceThreadId = 0<br />
I/O: omniORB: traceTime = 0<br />
I/O: omniORB: unixTransportDirectory = /tmp/omni-%u<br />
I/O: omniORB: unixTransportPermission = 777<br />
I/O: omniORB: useTypeCodeIndirections = 1<br />
I/O: omniORB: validateUTF8 = 0<br />
I/O: omniORB: verifyObjectExistsAndType = 1<br />
I/O: omniORB: Initialising incoming endpoints.<br />
I/O: omniORB: Instantiate endpoint 'giop:tcp::0'<br />
I/O: omniORB: Unable to create pipe for SocketCollection.<br />
I/O: omniORB: Bind to address 0.0.0.0 ephemeral port.<br />
I/O: omniORB: Failed to bind to address 0.0.0.0 ephemeral port.<br />
I/O: omniORB: Error: Unable to create an endpoint of this description: giop:tcp::0<br />
I/O: omniORB: throw INITIALIZE from objectAdapter.cc:436 (NO,INITIALIZE_TransportError)<br />
I/O: Caught CORBA::INITIALIZE<br />
I/O: omniORB: ORB not destroyed; no final clean-up.<br />
<br />
that what is going wrong here.<br />
<br />
Regards<br />
Binod Pal<br />
<br />
<br />
On Thu, 09 Sep 2010 19:11:50 +0530 wrote<br />
><br />
<br />
On Thu, Sep 9, 2010 at 8:29 AM, binod pal <binod_pal@rediffmail.com> wrote:<br />
<br />
<br />
Hi,<br />
<br />
I would like to clarify that UserException is not a macro, it is a class. I had tried two options<br />
<br />
<br />
<br />
UserException is a macro in INTEGRITY_error.h, at least in the INTEGRITY that I am using (5.0.11 and 5.0.10).<br />
<br />
I suspect this macro is colliding with a class in omniORB (and any other ORB). In my version of INTEGRITY_error.h they have it wrapped in an #ifdef like so:<br />
<br />
/* Unfortunately, ORBExpress defines a class UserException which causes */<br />
/* compilation failures, so this macro/API must be disabled. */<br />
#ifndef ORBEXPRESS<br />
# define UserException(TheTask, Type) <br />
<br />
__UserException(TheTask, Type, __FILE__, sizeof(__FILE__), __LINE__)<br />
#endif<br />
<br />
You could try #defining ORBEXPRESS or adding another check for omniORB.<br />
<br />
BN<br />
<br />
<br><br><br><Table border=0 Width=644 Height=57 cellspacing=0 cellpadding=0 style="font-family:Verdana;font-size:11px;line-height:15px;"><TR><td><A HREF="http://sigads.rediff.com/RealMedia/ads/click_nx.ads/www.rediffmail.com/signatureline.htm@Middle?" target="_blank"><IMG SRC="http://sigads.rediff.com/RealMedia/ads/adstream_nx.ads/www.rediffmail.com/signatureline.htm@Middle"></A></td></TR></Table>