[omniORB] failed to resolved ORBPolicyManager
Pitaev, Anna
anna.pitaev at logica.com
Wed Aug 24 10:15:27 BST 2011
Hi Urban,
I'm getting the followinmg error message:
ERROR : org.omg.CORBA.UNKNOWN: vmcid: OMG minor code: 1 completed: Maybe
org.omg.CORBA.UNKNOWN: vmcid: OMG minor code: 1 completed: Maybe
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at java.lang.Class.newInstance0(Class.java:350)
at java.lang.Class.newInstance(Class.java:303)
at com.sun.corba.se.impl.protocol.giopmsgheaders.MessageBase.getSystemException(MessageBase.java:897)
at com.sun.corba.se.impl.protocol.giopmsgheaders.ReplyMessage_1_0.getSystemException(ReplyMessage_1_0.java:94)
at com.sun.corba.se.impl.protocol.CorbaMessageMediatorImpl.getSystemExceptionReply(CorbaMessageMediatorImpl.java:572)
at com.sun.corba.se.impl.protocol.CorbaClientRequestDispatcherImpl.processResponse(CorbaClientRequestDispatcherImpl.java:430)
at com.sun.corba.se.impl.protocol.CorbaClientRequestDispatcherImpl.marshalingComplete(CorbaClientRequestDispatcherImpl.java:326)
at com.sun.corba.se.impl.protocol.CorbaClientDelegateImpl.invoke(CorbaClientDelegateImpl.java:129)
at com.sun.corba.se.impl.resolver.BootstrapResolverImpl.invoke(BootstrapResolverImpl.java:89)
at com.sun.corba.se.impl.resolver.BootstrapResolverImpl.resolve(BootstrapResolverImpl.java:107)
at com.sun.corba.se.impl.resolver.CompositeResolverImpl.resolve(CompositeResolverImpl.java:22)
at com.sun.corba.se.impl.resolver.CompositeResolverImpl.resolve(CompositeResolverImpl.java:22)
at com.sun.corba.se.impl.resolver.CompositeResolverImpl.resolve(CompositeResolverImpl.java:22)
at com.sun.corba.se.impl.orb.ORBImpl.resolve_initial_references(ORBImpl.java:1157)
at HelloClient.main(HelloClient.java:31)
Where HelloClient.java:31 is
org.omg.CORBA.PolicyManager policyManager = PolicyManagerHelper.narrow( orb.resolve_initial_references("ORBPolicyManager"));
Many thanks for your help!
Anna
-----Original Message-----
From: Urban Purkat [mailto:urban.purkat at topit.si]
Sent: Wed 24/08/2011 08:59
To: Pitaev, Anna
Cc: omniorb-list at omniorb-support.com
Subject: Re: [omniORB] failed to resolved ORBPolicyManager
Hi!
How do you see the failure?
The following line should do the trick:
org.omg.CORBA.PolicyManager policyManager =
org.omg.CORBA.PolicyManagerHelper.narrow(
orb.resolve_initial_references("ORBPolicyManager"));
Regards,
Urban
On Tue, 2011-08-23 at 15:48 +0200, Pitaev, Anna wrote:
> Dear all,
>
> I'm trying to set RELATIVE_RT_TIMEOUT_POLICY on the client side by:
>
> org.omg.CORBA.PolicyManager policyManager = PolicyManagerHelper.narrow( orb.resolve_initial_references("ORBPolicyManager"));
> Any rrtPolicyAny = orb.create_any();
> rrtPolicyAny.insert_ulonglong(10000);
>
> // create a relative roundtrip timeout policy and set this
> // policy ORB-wide
> Policy rrtPolicy = orb.create_policy( RELATIVE_RT_TIMEOUT_POLICY_TYPE.value,
> rrtPolicyAny );
> policyManager.set_policy_overrides( new Policy[] {rrtPolicy},SetOverrideType.ADD_OVERRIDE);
>
> When I start my client application, corba failes to resolver reference to ORBPolicyManager.
> There are some specifics:
> OS Linux SLES9
> omniORB-4.0.6_omniORBpy-2.6
> What could be a problem cause?
>
> Many thanks in advance!
>
> Anna Pitaev | Consultant, Space
> Rheinstrasse 95 64295 Darmstadt | Germany
> T: +49 6151 36860-121
> anna.pitaev at logica.com | www.logica.de
> Logica Deutschland GmbH & Co. KG
> Unsere Pflichtangaben gemäß § 35a GmbHG / §§ 161, 125a HGB finden Sie unter www.logica.de/pflichtangaben
>
>
>
> 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.
>
>
>
> _______________________________________________
> omniORB-list mailing list
> omniORB-list at omniorb-support.com
> http://www.omniorb-support.com/mailman/listinfo/omniorb-list
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.omniorb-support.com/pipermail/omniorb-list/attachments/20110824/42922977/attachment.htm
More information about the omniORB-list
mailing list