<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-&gt;bind_new_context(contextName);<br>                        <br>                }<br>                catch(CosNaming::NamingContext::AlreadyBound&amp; ex)<br>                {<br>
                        CORBA::Object_var obj;<br>2.                      obj = iv_pNSRoot-&gt;resolve(contextName);<br>3.                      newContext = CosNaming::NamingContext::_narrow(obj);<br>4.                      if(CORBA::is_nil(newContext))<br>
                        {<br>                                cout&lt;&lt; &quot;Failed to narrow naming context:&quot; &lt;&lt;&quot;:&quot; &lt;&lt;__FUNCTION__<br>                                &lt;&lt;__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   = &quot;ServerReady&quot;;   <br>
                objectName[0].kind = iv_Kind.c_str(); <br><br>                try<br>                {<br>                        cout&lt;&lt; &quot;register object Name:&quot; &lt;&lt; i_ObjectName;<br>                        <br>
5.                       newContext-&gt;bind(objectName, i_ObjRef);<br>                }<br>                catch(CosNaming::NamingContext::AlreadyBound&amp; ex)<br>                {<br>                        cout&lt;&lt; &quot;WARNING: Nameservice reports that the object is already &quot;<br>
                                &lt;&lt; &quot;bound: Reregister object Name:&quot; &lt;&lt; i_ObjectName;                &lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;getting this Warning at first time<br>
6.                        newContext-&gt;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__));                       &lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;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?<br><br><br clear="all"><br>-- <br>Regards,<br>Sheena
</div>