<div dir="ltr"><div><div>Hi,<br><br></div>Did you got the chance to look at this mail. <br><br>Is there anything that can be done in the code/ configuration I pasted above to avoid this exception.<br><br></div>We have not seen this exception anytime in past. This is the first time we saw it, so wondering what could be the possible reason for this and can it be fixed?<br>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, May 31, 2013 at 5:06 PM, sheena kansal <span dir="ltr"><<a href="mailto:sheena.kansal@gmail.com" target="_blank">sheena.kansal@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">the complete configuration of the omniNames server is:<br><br>$ omniORB: My addresses are: <br>omniORB: 127.0.0.1<br>
omniORB: 10.0.2.147<br>omniORB: 10.0.3.147<br>omniORB: ::1<br>omniORB: 11:2233:4455:6677:204:acff:fee3:288c<br>
omniORB: Skip link local address fe80::204:acff:fee3:288c on interface eth0.<br>omniORB: Skip link local address fe80::204:acff:fee3:288d on interface eth1.<br>omniORB: My addresses are: <br>omniORB: 127.0.0.1<br>omniORB: 10.0.2.147<br>
omniORB: 10.0.3.147<br>omniORB: ::1<br>omniORB: 11:2233:4455:6677:204:acff:fee3:288c<br>omniORB: Current configuration is as follows:<br>omniORB: DefaultInitRef (file) = <br>omniORB: DefaultInitRef (args) = <br>omniORB: abortOnInternalError = 0<br>
omniORB: abortOnNativeException = 0<br>omniORB: acceptBiDirectionalGIOP = 0<br>omniORB: acceptMisalignedTcIndirections = 0<br>omniORB: bootstrapAgentHostname = <br>omniORB: bootstrapAgentPort = 900<br>omniORB: clientCallTimeOutPeriod = 0<br>
omniORB: clientConnectTimeOutPeriod = 0<br>omniORB: clientTransportRule = * unix,ssl,tcp,sctp<br>omniORB: configFile = /etc/omniORB.cfg<br>omniORB: connectionWatchImmediate = 0<br>omniORB: connectionWatchPeriod = 1<br>
omniORB: copyValuesInLocalCalls = 1<br>omniORB: diiThrowsSysExceptions = 0<br>omniORB: dumpConfiguration = 1<br>omniORB: endPoint = giop:unix:/tmp/forb.socket.fsp.a.omninames<br>omniORB: endPoint = giop:unix:/tmp/forb.socket.fsp.local.omninames<br>
omniORB: endPoint = giop:tcp::32809<br>omniORB: endPointPublish = giop:unix:/tmp/forb.socket.fsp.a.omninames,giop:tcp<br>:<a href="http://9.6.28.1:32809" target="_blank">9.6.28.1:32809</a>,giop:tcp:<a href="http://9.6.28.2:32809" target="_blank">9.6.28.2:32809</a>,giop:tcp:<a href="http://9.6.24.10:32809" target="_blank">9.6.24.10:32809</a>,giop:tcp:9.6.25<br>
.10:32809<br>omniORB: giopMaxMsgSize = 2097152<br>omniORB: giopTargetAddressMode = KeyAddr<br>omniORB: id = omniORB4<br>omniORB: idleThreadTimeout = 10<br>omniORB: immediateAddressSwitch = 0<br>omniORB: inConScanPeriod = 0<br>
omniORB: lcdMode = 0<br>omniORB: maxGIOPConnectionPerServer = 5<br>omniORB: maxGIOPVersion = 1.2<br>omniORB: maxInterleavedCallsPerConnection = 5<br>omniORB: maxServerThreadPerConnection = 100<br>omniORB: maxServerThreadPoolSize = 100<br>
omniORB: maxSocketRecv = 2147483647<br>omniORB: maxSocketSend = 2147483647<br>omniORB: nativeCharCodeSet = ISO-8859-1<br>omniORB: nativeWCharCodeSet = UTF-16<br>omniORB: objectTableSize = 0<br>omniORB: offerBiDirectionalGIOP = 0<br>
omniORB: oneCallPerConnection = 0<br>omniORB: outConScanPeriod = 0<br>omniORB: poaHoldRequestTimeout = 0<br>omniORB: poaUniquePersistentSystemIds = 1<br>omniORB: principal = [Null]<br>omniORB: resetTimeOutOnRetries = 0<br>
omniORB: scanGranularity = 5<br>omniORB: serverCallTimeOutPeriod = 0<br>omniORB: serverTransportRule = * unix,ssl,tcp,sctp<br>omniORB: socketSendBuffer = -1<br>omniORB: strictIIOP = 1<br>omniORB: supportBootstrapAgent = 0<br>
omniORB: supportCurrent = 1<br>omniORB: supportPerThreadTimeOut = 0<br>omniORB: tcAliasExpand = 0<br>omniORB: threadPerConnectionLowerLimit = 9000<br>omniORB: threadPerConnectionPolicy = 0<br>omniORB: threadPerConnectionUpperLimit = 10000<br>
omniORB: threadPoolWatchConnection = 0<br>omniORB: traceExceptions = 0<br>omniORB: traceFile = [stderr]<br>omniORB: traceInvocationReturns = 0<br>omniORB: traceInvocations = 0<br>omniORB: traceLevel = 1<br>omniORB: traceThreadId = 0<br>
omniORB: traceTime = 0<br>omniORB: unixTransportDirectory = /tmp/omni-%u<br>omniORB: unixTransportPermission = 777<br>omniORB: useTypeCodeIndirections = 1<br>omniORB: validateUTF8 = 0<br>omniORB: verifyObjectExistsAndType = 1<br>
<br></div><div class="gmail_extra"><div><div class="h5"><br><br><div class="gmail_quote">On Fri, May 31, 2013 at 3:00 PM, sheena kansal <span dir="ltr"><<a href="mailto:sheena.kansal@gmail.com" target="_blank">sheena.kansal@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi,<br><br>omniORB-4.1.6, c++<br><br>omniORB config (other than defaults)-<br><br>clientCallTimeOutPeriod = 0<br>
clientConnectTimeOutPeriod = 15000<br>supportPerThreadTimeOut = 0<br>resetTimeOutOnRetries = 0<br>
outConScanPeriod = 30<br>maxGIOPConnectionPerServer = 5<br>oneCallPerConnection = 0<br>serverCallTimeOutPeriod = 0<br>inConScanPeriod = 0<br>threadPerConnectionPolicy = 0<br>maxServerThreadPerConnection = 100<br>maxServerThreadPoolSize = 50<br>
<br>We are hitting the CORBA::PERSIST_STORE exception while trying to add a object reference. <br><br>1. First we are doing bind() for a service, then we got a warning message that object is arleady bound.<br>2. then when adding another object using bind(), then we are seeing PERSIST_STORE exception.<br>
<br>here is the code for reference<br><br> try<br> {<br> // Bind a context<br> CosNaming::Name contextName;<br> contextName.length(1);<br> contextName[0].id = iv_AppName.c_str(); // string copied<br>
contextName[0].kind = iv_Context.c_str(); // string copied<br> CosNaming::NamingContext_var newContext;<br><br> try<br> {<br> // Bind the context to root.<br>
1. newContext = iv_pNSRoot->bind_new_context(contextName);<br> <br> }<br> catch(CosNaming::NamingContext::AlreadyBound& ex)<br> {<br>
CORBA::Object_var obj;<br>2. obj = iv_pNSRoot->resolve(contextName);<br>3. newContext = CosNaming::NamingContext::_narrow(obj);<br>4. if(CORBA::is_nil(newContext))<br>
{<br> cout<< "Failed to narrow naming context:" <<":" <<__FUNCTION__<br> <<__LINE__; <br>
}<br> }<br><br> // Bind objref with input name to the context<br> CosNaming::Name objectName;<br> objectName.length(1);<br> objectName[0].id = "ServerReady"; <br>
objectName[0].kind = iv_Kind.c_str(); <br><br> try<br> {<br> cout<< "register object Name:" << i_ObjectName;<br> <br>
5. newContext->bind(objectName, i_ObjRef);<br> }<br> catch(CosNaming::NamingContext::AlreadyBound& ex)<br> {<br> cout<< "WARNING: Nameservice reports that the object is already "<br>
<< "bound: Reregister object Name:" << i_ObjectName; <<<<<<<<<<<<<<<<<<getting this Warning at first time<br>
6. newContext->rebind(objectName, i_ObjRef);<br> }<br><br> }<br> catch(...)<br> {<br> // Handle all other exceptions<br> pError = handleExceptions(FORB_SERV_REGISTER_OBJECT, false, __LINE__,<br>
0, 0, 0, __FUNCTION__, strlen(__FUNCTION__)); <<<<<<<<<<<<<<<<<<<getting this exception secnd time<br> ForbUDC_STRING_DATA data(i_ObjectName.c_str());<br>
<br> }<br><br>Any idea why we are getting it. We are seeing it for the first time. What should we do to resolve it?<span><font color="#888888"><br><br><br clear="all"><br>-- <br>Regards,<br>
Sheena
</font></span></div>
</blockquote></div><br><br clear="all"><br></div></div><span class="HOEnZb"><font color="#888888">-- <br>Regards,<br>Sheena
</font></span></div>
</blockquote></div><br><br clear="all"><br>-- <br>Regards,<br>Sheena
</div>