<font><span style="background-color:rgba(255,255,255,0)">Hi all,</span></font><div><font><span style="background-color:rgba(255,255,255,0)"><br></span></font></div><div><font><span style="background-color:rgba(255,255,255,0)">I'm currently testing the ZIOP feature. I got it perfectly working by using</span></font></div><div><font><span style="background-color:rgba(255,255,255,0)"><br></span></font></div><div><font><span style="background-color:rgba(255,255,255,0)">omniZIOP::setGlobalPolicies(CORBA::PolicyList()); </span></font></div><div><font><span style="background-color:rgba(255,255,255,0)"><br></span></font></div><div><font><span style="background-color:rgba(255,255,255,0)">in both my client and server and adding ziop to the client/serverTransportRules. But if I want to use the NameService it fails as follows:</span></font></div><div><font><span style="background-color:rgba(255,255,255,0)"><br></span></font></div><div><div><font><span style="background-color:rgba(255,255,255,0)">omniORB: Adding root<1> (activating) to object table.</span></font></div><div><font><span style="background-color:rgba(255,255,255,0)">omniORB: State root<1> (activating) -> active</span></font></div><div><font><span style="background-color:rgba(255,255,255,0)">omniORB: Creating ref to local: root<1></span></font></div><div><font><span style="background-color:rgba(255,255,255,0)"> target id : IDL:RTT/corba/CTaskContext:1.0</span></font></div><div><font><span style="background-color:rgba(255,255,255,0)"> most derived id: IDL:RTT/corba/CTaskContext:1.0</span></font></div><div><font><span style="background-color:rgba(255,255,255,0)">omniORB: Initial reference `NameService' resolved from -ORBInitRef argument / ORB registration.</span></font></div><div><font><span style="background-color:rgba(255,255,255,0)">omniORB: Send ZIOP enabling service context</span></font></div><div><font><span style="background-color:rgba(255,255,255,0)">omniORB: Assertion failed. This indicates a bug in the application</span></font></div><div><font><span style="background-color:rgba(255,255,255,0)">using omniORB, or maybe in omniORB itself.</span></font></div><div><font><span style="background-color:rgba(255,255,255,0)"> file: omniZIOP.cc</span></font></div><div><font><span style="background-color:rgba(255,255,255,0)"> line: 937</span></font></div><div><font><span style="background-color:rgba(255,255,255,0)"> info: pvseq.length() == 2</span></font></div><div><font><span style="background-color:rgba(255,255,255,0)"><br></span></font></div><div><div><font><span style="background-color:rgba(255,255,255,0)">the user-code that triggers the assert looks as follows:</span></font></div><div><font><span style="background-color:rgba(255,255,255,0)"><br></span></font></div><div><div><font><span style="background-color:rgba(255,255,255,0)">CORBA::Object_var rootObj;</span></font></div><div><font><span style="background-color:rgba(255,255,255,0)">CosNaming::NamingContext_var rootNC;</span></font></div><div><font><span style="background-color:rgba(255,255,255,0)">try {</span></font></div><div><font><span style="background-color:rgba(255,255,255,0)"> rootObj = orb->resolve_initial_references("NameService"); //--> this works</span></font></div><div><font><span style="background-color:rgba(255,255,255,0)"> rootNC = CosNaming::NamingContext::_narrow(rootObj); // --> this triggers the assert</span></font></div><div><font><span style="background-color:rgba(255,255,255,0)">} catch (...) {}</span></font></div></div></div><div><font><span style="background-color:rgba(255,255,255,0)"><br></span></font></div><div><font><span style="background-color:rgba(255,255,255,0)"><br></span></font></div><div><font><span style="background-color:rgba(255,255,255,0)">If I disable that specific assert my application works without any problems, including ZIOP. But I was wondering why that assert is there and if it would be safe to disable it permanently?<br></span></font></div><div><font><span style="background-color:rgba(255,255,255,0)"><br></span></font></div><div><font><span style="background-color:rgba(255,255,255,0)">Best regards,</span></font></div><div><font><span style="background-color:rgba(255,255,255,0)"><br></span></font></div><div><font><span style="background-color:rgba(255,255,255,0)">Ruben</span></font></div></div>
<br><br>-- <br>Ruben Smits, CTO<br>+32 479 511 786<br>Intermodalics - Kapeldreef 60, 3001 Heverlee - BELGIUM<br><a href="http://www.intermodalics.eu" target="_blank">www.intermodalics.eu</a><br><br>---------------------------------------------------------------------------------------------------------------------------------------<br>This email and any attached files are confidential and may be legally privileged. Any copy, print or forward of this email, without the agreement of sender or addressee, is strictly prohibited. Misuse is a violation of the law on personal data protection (D. Lgs. 196/2003) and on secrecy of correspondence (art. 616 cp). If you have received this transmission in error please notify the sender immediately and then delete this email and any attached files.<br>