Posted By:
Hari_Kumar
Posted On:
Friday, December 21, 2007 03:41 PM
Hi all, I am stuck with a Java program. I am trying to connect to an event service and i am getting error when using JBuilder 2006 tries to resolve the rootPOA. It works fine when I run from DOS prompt. // Initialize the ORB Properties p = new Properties(); p.put("org.omg.CORBA.ORBClass", "com.inprise.vbroker.orb.ORB"); org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init(args,p); // get a reference to the root POA POA rootPOA = POAHelper.narrow(orb.resolve_initial_references("RootPOA")); It gives me error at the last line. Error is something like: rg.omg.CORBA.ORBPackage.
More>>
Hi all,
I am stuck with a Java program.
I am trying to connect to an event service and i am getting error when using JBuilder 2006 tries to resolve the rootPOA.
It works fine when I run from DOS prompt.
// Initialize the ORB
Properties p = new Properties();
p.put("org.omg.CORBA.ORBClass", "com.inprise.vbroker.orb.ORB");
org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init(args,p);
// get a reference to the root POA
POA rootPOA = POAHelper.narrow(orb.resolve_initial_references("RootPOA"));
It gives me error at the last line.
Error is something like:
rg.omg.CORBA.ORBPackage.InvalidName: org.omg.CORBA.NO_IMPLEMENT: This is a locally constrained object.
vmcid: 0x0 minor code: 0 completed: No
at com.inprise.vbroker.orb.ORB.resolve_initial_references(Unknown Source)
at App.ClientAlertApp.main(ClientAlertApp.java:80)
Anyone has any idea why I am getting this error.
I am using VM paramter -DORBInitRef=EventService=file:C:events.ior
Has that got anything to do with this??
Pls help. Thanks in advance
Thanks
<<Less