<!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: vmcid: OMG minor code: 1 completed: Maybe<BR>
org.omg.CORBA.UNKNOWN: vmcid: OMG minor code: 1 completed: Maybe<BR>
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)<BR>
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)<BR>
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)<BR>
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)<BR>
at java.lang.Class.newInstance0(Class.java:350)<BR>
at java.lang.Class.newInstance(Class.java:303)<BR>
at com.sun.corba.se.impl.protocol.giopmsgheaders.MessageBase.getSystemException(MessageBase.java:897)<BR>
at com.sun.corba.se.impl.protocol.giopmsgheaders.ReplyMessage_1_0.getSystemException(ReplyMessage_1_0.java:94)<BR>
at com.sun.corba.se.impl.protocol.CorbaMessageMediatorImpl.getSystemExceptionReply(CorbaMessageMediatorImpl.java:572)<BR>
at com.sun.corba.se.impl.protocol.CorbaClientRequestDispatcherImpl.processResponse(CorbaClientRequestDispatcherImpl.java:430)<BR>
at com.sun.corba.se.impl.protocol.CorbaClientRequestDispatcherImpl.marshalingComplete(CorbaClientRequestDispatcherImpl.java:326)<BR>
at com.sun.corba.se.impl.protocol.CorbaClientDelegateImpl.invoke(CorbaClientDelegateImpl.java:129)<BR>
at com.sun.corba.se.impl.resolver.BootstrapResolverImpl.invoke(BootstrapResolverImpl.java:89)<BR>
at com.sun.corba.se.impl.resolver.BootstrapResolverImpl.resolve(BootstrapResolverImpl.java:107)<BR>
at com.sun.corba.se.impl.resolver.CompositeResolverImpl.resolve(CompositeResolverImpl.java:22)<BR>
at com.sun.corba.se.impl.resolver.CompositeResolverImpl.resolve(CompositeResolverImpl.java:22)<BR>
at com.sun.corba.se.impl.resolver.CompositeResolverImpl.resolve(CompositeResolverImpl.java:22)<BR>
at com.sun.corba.se.impl.orb.ORBImpl.resolve_initial_references(ORBImpl.java:1157)<BR>
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("ORBPolicyManager"));<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 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>
org.omg.CORBA.PolicyManagerHelper.narrow(<BR>
orb.resolve_initial_references("ORBPolicyManager"));<BR>
<BR>
Regards,<BR>
Urban<BR>
<BR>
On Tue, 2011-08-23 at 15:48 +0200, Pitaev, Anna wrote:<BR>
> Dear all,<BR>
><BR>
> I'm trying to set RELATIVE_RT_TIMEOUT_POLICY on the client side by:<BR>
><BR>
> org.omg.CORBA.PolicyManager policyManager = PolicyManagerHelper.narrow( orb.resolve_initial_references("ORBPolicyManager"));<BR>
> Any rrtPolicyAny = orb.create_any();<BR>
> rrtPolicyAny.insert_ulonglong(10000);<BR>
><BR>
> // create a relative roundtrip timeout policy and set this<BR>
> // policy ORB-wide<BR>
> Policy rrtPolicy = orb.create_policy( RELATIVE_RT_TIMEOUT_POLICY_TYPE.value,<BR>
> rrtPolicyAny );<BR>
> policyManager.set_policy_overrides( new Policy[] {rrtPolicy},SetOverrideType.ADD_OVERRIDE);<BR>
><BR>
> When I start my client application, corba failes to resolver reference to ORBPolicyManager.<BR>
> There are some specifics:<BR>
> OS Linux SLES9<BR>
> omniORB-4.0.6_omniORBpy-2.6<BR>
> What could be a problem cause?<BR>
><BR>
> Many thanks in advance!<BR>
><BR>
> Anna Pitaev | Consultant, Space<BR>
> Rheinstrasse 95 64295 Darmstadt | Germany<BR>
> T: +49 6151 36860-121<BR>
> anna.pitaev@logica.com | www.logica.de<BR>
> Logica Deutschland GmbH & Co. KG<BR>
> Unsere Pflichtangaben gemäß § 35a GmbHG / §§ 161, 125a HGB finden Sie unter www.logica.de/pflichtangaben<BR>
><BR>
><BR>
><BR>
> Think green - keep it on the screen.<BR>
><BR>
> 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>
><BR>
><BR>
><BR>
> _______________________________________________<BR>
> omniORB-list mailing list<BR>
> omniORB-list@omniorb-support.com<BR>
> <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>