<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7654.12">
<TITLE>RE: [omniORB] failed to resolved  ORBPolicyManager</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->

<P><FONT SIZE=2>Hi Urban,<BR>
<BR>
I'm getting the followinmg error message:<BR>
<BR>
ERROR : org.omg.CORBA.UNKNOWN:&nbsp;&nbsp; vmcid: OMG&nbsp; minor code: 1 completed: Maybe<BR>
org.omg.CORBA.UNKNOWN:&nbsp;&nbsp; vmcid: OMG&nbsp; minor code: 1 completed: Maybe<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at java.lang.reflect.Constructor.newInstance(Constructor.java:494)<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at java.lang.Class.newInstance0(Class.java:350)<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at java.lang.Class.newInstance(Class.java:303)<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at com.sun.corba.se.impl.protocol.giopmsgheaders.MessageBase.getSystemException(MessageBase.java:897)<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at com.sun.corba.se.impl.protocol.giopmsgheaders.ReplyMessage_1_0.getSystemException(ReplyMessage_1_0.java:94)<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at com.sun.corba.se.impl.protocol.CorbaMessageMediatorImpl.getSystemExceptionReply(CorbaMessageMediatorImpl.java:572)<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at com.sun.corba.se.impl.protocol.CorbaClientRequestDispatcherImpl.processResponse(CorbaClientRequestDispatcherImpl.java:430)<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at com.sun.corba.se.impl.protocol.CorbaClientRequestDispatcherImpl.marshalingComplete(CorbaClientRequestDispatcherImpl.java:326)<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at com.sun.corba.se.impl.protocol.CorbaClientDelegateImpl.invoke(CorbaClientDelegateImpl.java:129)<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at com.sun.corba.se.impl.resolver.BootstrapResolverImpl.invoke(BootstrapResolverImpl.java:89)<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at com.sun.corba.se.impl.resolver.BootstrapResolverImpl.resolve(BootstrapResolverImpl.java:107)<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at com.sun.corba.se.impl.resolver.CompositeResolverImpl.resolve(CompositeResolverImpl.java:22)<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at com.sun.corba.se.impl.resolver.CompositeResolverImpl.resolve(CompositeResolverImpl.java:22)<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at com.sun.corba.se.impl.resolver.CompositeResolverImpl.resolve(CompositeResolverImpl.java:22)<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at com.sun.corba.se.impl.orb.ORBImpl.resolve_initial_references(ORBImpl.java:1157)<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at HelloClient.main(HelloClient.java:31)<BR>
<BR>
<BR>
Where HelloClient.java:31 is<BR>
org.omg.CORBA.PolicyManager policyManager = PolicyManagerHelper.narrow( orb.resolve_initial_references(&quot;ORBPolicyManager&quot;));<BR>
<BR>
<BR>
<BR>
<BR>
Many thanks for your help!<BR>
<BR>
Anna<BR>
<BR>
<BR>
<BR>
<BR>
-----Original Message-----<BR>
From: Urban Purkat [<A HREF="mailto:urban.purkat@topit.si">mailto:urban.purkat@topit.si</A>]<BR>
Sent: Wed 24/08/2011 08:59<BR>
To: Pitaev, Anna<BR>
Cc: omniorb-list@omniorb-support.com<BR>
Subject: Re: [omniORB] failed to resolved&nbsp; ORBPolicyManager<BR>
<BR>
Hi!<BR>
<BR>
How do you see the failure?<BR>
<BR>
The following line should do the trick:<BR>
org.omg.CORBA.PolicyManager policyManager =<BR>
&nbsp; org.omg.CORBA.PolicyManagerHelper.narrow(<BR>
&nbsp; orb.resolve_initial_references(&quot;ORBPolicyManager&quot;));<BR>
<BR>
Regards,<BR>
Urban<BR>
<BR>
On Tue, 2011-08-23 at 15:48 +0200, Pitaev, Anna wrote:<BR>
&gt; Dear all,<BR>
&gt;<BR>
&gt; I'm trying to set RELATIVE_RT_TIMEOUT_POLICY on the client side by:<BR>
&gt;<BR>
&gt; org.omg.CORBA.PolicyManager policyManager = PolicyManagerHelper.narrow( orb.resolve_initial_references(&quot;ORBPolicyManager&quot;));<BR>
&gt; Any rrtPolicyAny = orb.create_any();<BR>
&gt; rrtPolicyAny.insert_ulonglong(10000);<BR>
&gt;<BR>
&gt; // create a relative roundtrip timeout policy and set this<BR>
&gt; // policy ORB-wide<BR>
&gt; Policy rrtPolicy = orb.create_policy( RELATIVE_RT_TIMEOUT_POLICY_TYPE.value,<BR>
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; rrtPolicyAny );<BR>
&gt; policyManager.set_policy_overrides( new Policy[] {rrtPolicy},SetOverrideType.ADD_OVERRIDE);<BR>
&gt;<BR>
&gt; When I start my client application, corba failes to resolver reference to ORBPolicyManager.<BR>
&gt; There are some specifics:<BR>
&gt; OS Linux SLES9<BR>
&gt; omniORB-4.0.6_omniORBpy-2.6<BR>
&gt; What could be a problem cause?<BR>
&gt;<BR>
&gt; Many thanks in advance!<BR>
&gt;<BR>
&gt; Anna Pitaev | Consultant, Space<BR>
&gt; Rheinstrasse 95 64295 Darmstadt | Germany<BR>
&gt; T: +49 6151 36860-121<BR>
&gt; anna.pitaev@logica.com | www.logica.de<BR>
&gt; Logica Deutschland GmbH &amp; Co. KG<BR>
&gt; Unsere Pflichtangaben gemäß § 35a GmbHG / §§ 161, 125a HGB finden Sie unter www.logica.de/pflichtangaben<BR>
&gt;<BR>
&gt;<BR>
&gt;<BR>
&gt; Think green - keep it on the screen.<BR>
&gt;<BR>
&gt; This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.<BR>
&gt;<BR>
&gt;<BR>
&gt;<BR>
&gt; _______________________________________________<BR>
&gt; omniORB-list mailing list<BR>
&gt; omniORB-list@omniorb-support.com<BR>
&gt; <A HREF="http://www.omniorb-support.com/mailman/listinfo/omniorb-list">http://www.omniorb-support.com/mailman/listinfo/omniorb-list</A><BR>
<BR>
<BR>
<BR>
</FONT>
</P>

<br clear=all> Think green - keep it on the screen.

This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.

</BODY>
</HTML>