resolve_initial_reference error
Yong Chen <[email protected]> Fri, 3 May 2002 11:37:53 -0700
| Newsgroups | gmane.comp.corba.openorb.devel |
|---|---|
| Message-ID | <B4DFCB7CDE2DD4118F690008C786941603F3455D@tahoe.allegronetworks.com> |
Hi,
I'm trying to use resolve_initial_reference to get references to
notification service and interface repository service, but can't get them
back. I'm using OpenORB1.3.0.
I start notification service with -bindNaming option, (for IR, I guess it
binds to NamingService automatically, so -bindNaming option is not
applicable).
I modified org.openorb.CORBA.ORB.java to print out stack trace, as
following. Basically it says the object can't be found. (for both
NotificationService and InterfaceRepository). I think it has something to do
with InitialReferences.
java.lang.reflect.InvocationTargetException:
org.omg.CosNaming.NamingContextPackage.NotFound:
IDL:omg.org/CosNaming/NamingContext/NotFound:1.0
at
org.omg.CosNaming.NamingContextPackage.NotFoundHelper.read(Unknown Source)
at org.omg.CosNaming._NamingContextExtStub.resolve_str(Unknown
Source)
at java.lang.reflect.Method.invoke(Native Method)
at org.openorb.CORBA.ORB.scan_url_name(ORB.java:1551)
at org.openorb.CORBA.ORB.string_to_object(ORB.java:731)
at org.openorb.CORBA.ORB.resolve_initial_references(ORB.java:379)
at com.an.mrs.orb.ORB.startInterfaceRepositoryService(ORB.java:488)
at com.an.mrs.orb.ORB.<init>(ORB.java:127)
at com.an.mrs.orb.ORB.init(ORB.java:21)
at com.an.mrs.rm.nbcorba.Main.main(Main.java:81)
Another question is, in file
org/openorb/iiop/IIOPTransportServerInitializer.java, I found a note saying
-ORBport is not being used, it puts Bugtracker #509463 in the comments. I
wonder if this bug is fixed. Otherwise, it seems to me if I don't have
iiop.port set in configuration file, then port is defaulted to a random free
port (even if I've -ORBPort set in command line).
Any help/hint appreciated.
Yong Chen
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[email protected] with a subject of:
unsubscribe openorb-dev