I am using this function to make IOR of my C++ server object launched by my
orbix daemon.
I say:
makeIOR <host> <port> <server> <interface> (I have tried using IP address
and also .com address for my host machine)
I get the IOR and stick it in my client code(My client uses the JAVA orb).
objRef = orb.string_to_object("IOR:000000000000002549444
c3a435453436f7262612f4f7262506c616e7444617461466163746f72793a312e30000000000
0000
002000000000000006d000100000000000f3133372e3233372e3231372e31330000049400000
0000
04d3a5c3133372e3233372e3231372e31333a544143506c616e7444617461466163746f72794
16e6
169723a303a3a49523a435453436f7262612f4f7262506c616e7444617461466163746f72790
0000
0000000000100000018000100000000000100000000000000080000000049545f30");
OrbPlantDataFactory plantSvrObj = OrbPlantDataFactoryH
elper.narrow((org.omg.CORBA.Object)objRef);
And I try to use this object.
I get the following error while running the java client. Now what is this
exception? INV_OBJREF, minor code 10101??
What am I doing wrong??
Exception occurred during event dispatching:
org.omg.CORBA.INV_OBJREF: minor code: 10101 completed: No
at java.lang.Throwable.fillInStackTrace(Native Method)
at java.lang.Throwable.fillInStackTrace(Compiled Code)
at java.lang.Throwable.<init>(Compiled Code)
at java.lang.Exception.<init>(Exception.java:42)
at java.lang.RuntimeException.<init>(RuntimeException.java:47)
at org.omg.CORBA.SystemException.<init>(SystemException.java:49)
at org.omg.CORBA.INV_OBJREF.<init>(INV_OBJREF.java:72)
at org.omg.CORBA.INV_OBJREF.<init>(INV_OBJREF.java:48)
at org.omg.CORBA.INV_OBJREF.<init>(INV_OBJREF.java:39)
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance0(Compiled Code)
at java.lang.Class.newInstance(Compiled Code)
at
com.sun.CORBA.iiop.ReplyMessage.getSystemException(ReplyMessage.java:75)
at
com.sun.CORBA.iiop.ClientResponseImpl.getSystemException(ClientResponseImpl.
java:85)
at com.sun.CORBA.idl.RequestImpl.doInvocation(Compiled Code)
at com.sun.CORBA.idl.RequestImpl.invoke(RequestImpl.java:219)
at
CTSCorba._OrbPlantDataFactoryStub.login(_OrbPlantDataFactoryStub.java:225)
at CTSCorba.LoginScreen.okAction(LoginScreen.java:93)
at CTSCorba.ButtonHandler.actionPerformed(ButtonHandler.java:21)
at java.awt.Button.processActionEvent(Button.java:308)
at java.awt.Button.processEvent(Button.java:281)
at java.awt.Component.dispatchEventImpl(Compiled Code)
at java.awt.Component.dispatchEvent(Compiled Code)
at java.awt.EventQueue.dispatchEvent(Compiled Code)
at java.awt.EventDispatchThread.pumpOneEvent(Compiled Code)
at java.awt.EventDispatchThread.pumpEvents(Compiled Code)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:83)
Please reply.
Thanks!
Anita Nair
CORBA::Orbix.object_to_string()
on the appropriate object. Actually, the above is a call on the static orb
object, you can also use orb->object_to_string() if you've got an ORB from
orb_init().
MakeIOR is not going to work if you use an incorrect parameter (plus, this
API is Orbix-specific and isn't in later versions like Orbix 2000).
-B
"Anita Nair" <an...@harris.com> wrote in message
news:8bu7em$5pr$1...@infiniti.cpd.harris.com...