[omniORB] NameService problem (from Java)
Wernke zur Borg
wernke.zur.borg at vega.de
Wed Jan 11 08:19:27 GMT 2006
I am not sure but since none of the experts have replied, I'll throw my
two cents in:
I think you are mixing up the listener port with the name service
location. org.omg.CORBA.ORBInitialPort specifies the listener port on
your local machine. To tell your Java client the location of the
NameService you should use something like
org.omg.CORBA.NameService=corbaloc::<host>:<port>
Regards, Wernke
> -----Original Message-----
> From: omniorb-list-bounces at omniorb-support.com
> [mailto:omniorb-list-bounces at omniorb-support.com] On Behalf
> Of Lolke B. Dijkstra
> Sent: 10 January 2006 14:52
> To: omniorb
> Subject: [omniORB] NameService problem (from Java)
>
> Hi,
>
> When I start the nameservice:
> omninames -start
>
> and try to access it from a Java client I get a connection
> failure. This
> has to do with the port (900 instead of 2809):
>
> ORB orb = ORB.init(args, null);
> org.omg.CORBA.Object objRef =
> orb.resolve_initial_references("NameService");
>
>
> When I start the nameservice like this:
> omninames -start 900
>
> I no longer get the connection error but instead:
>
> ERROR : org.omg.CORBA.OBJECT_NOT_EXIST: vmcid: OMG minor code: 1
> completed: No
> org.omg.CORBA.OBJECT_NOT_EXIST: vmcid: OMG minor code: 1
> completed: No
> at
> sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> at
> sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
> at
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown
> Source)
> at java.lang.reflect.Constructor.newInstance(Unknown Source)
> at java.lang.Class.newInstance0(Unknown Source)
> at java.lang.Class.newInstance(Unknown Source)
> at
> com.sun.corba.se.impl.protocol.giopmsgheaders.MessageBase.getS
> ystemException(Unknown
> Source)
> at
> com.sun.corba.se.impl.protocol.giopmsgheaders.ReplyMessage_1_0
.getSystemException(Unknown
> Source)
> at
> com.sun.corba.se.impl.protocol.CorbaMessageMediatorImpl.getSys
> temExceptionReply(Unknown
> Source)
> at
> com.sun.corba.se.impl.protocol.CorbaClientRequestDispatcherImp
> l.processResponse(Unknown
> Source)
> at
> com.sun.corba.se.impl.protocol.CorbaClientRequestDispatcherImp
> l.marshalingComplete(Unknown
> Source)
> at
> com.sun.corba.se.impl.protocol.CorbaClientDelegateImpl.invoke(Unknown
> Source)
> at
> com.sun.corba.se.impl.resolver.BootstrapResolverImpl.invoke(Un
> known Source)
> at
> com.sun.corba.se.impl.resolver.BootstrapResolverImpl.resolve(U
> nknown Source)
> at
> com.sun.corba.se.impl.resolver.CompositeResolverImpl.resolve(U
> nknown Source)
> at
> com.sun.corba.se.impl.resolver.CompositeResolverImpl.resolve(U
> nknown Source)
> at
> com.sun.corba.se.impl.resolver.CompositeResolverImpl.resolve(U
> nknown Source)
> at
> com.sun.corba.se.impl.orb.ORBImpl.resolve_initial_references(U
> nknown Source)
>
> Changing the port back to 2809 and using the properties in Java to
> change it:
>
> Properties props = new Properties();
> props.put("org.omg.CORBA.ORBInitialPort", "2809");
> ORB orb = ORB.init(args, props);
>
> has the same effect. (no connection error but the above error)
>
> What can I do about it? Does anybody know?
>
> You help is greatly appreciated.
> Thanks,
> Lolke
>
>
> _______________________________________________
> omniORB-list mailing list
> omniORB-list at omniorb-support.com
> http://www.omniorb-support.com/mailman/listinfo/omniorb-list
>
More information about the omniORB-list
mailing list