I updated the name-resolve-server code as you said :
I had the 3 following lines int he main(), just before
etk_get_name_service() :
printf("IOR String = %s\n", argv[2]) ;
printf("ORB ref = %p\n, global_orb) ;
printf("NS Ref = %p\n", string_to_object(global_orb, argv[2], ev))
;
...
I also had in etk_get_name_service(...) from examples_toolkit.c :
...
if (etk_raised_exception(ev))
{
printf("Corba NIL... Noooo!\n") ;
return CORBA_OBJECT_NIL ;
}
...
and the terminal prints :
$./name_resolve_server -ORBInitRef NameService=`cat ~/ior.ref` IOR String : NameService=IOR:010000002800000049444c3a6f6d672e6f72672f436f734e616d696e672f4e616d696e67436f6e746578743a312e300002000000caaedfba54000000010100002b0000002f746d702f6f726269742d646861727465722f6f72622d3132363330333139363834393539393938393600000000000018000000000000009fcc85402dae419601000000b30d3ab5bd3d903a000000003800000001010000100000003139322e3136382e3230322e3134330099cf000018000000000000009fcc85402dae419601000000b30d3ab5bd3d903a
ORB Ref : 0x80512f8
NS Ref : (nil)
Binding service reference at name service against id: Examples/NameResolve/Service
Corba Nil... Nooo !
$cat ~/ior.ref IOR:010000002800000049444c3a6f6d672e6f72672f436f734e616d696e672f4e616d696e67436f6e746578743a312e300002000000caaedfba54000000010100002b0000002f746d702f6f726269742d646861727465722f6f72622d3132363330333139363834393539393938393600000000000018000000000000009fcc85402dae419601000000b30d3ab5bd3d903a000000003800000001010000100000003139322e3136382e3230322e3134330099cf000018000000000000009fcc85402dae419601000000b30d3ab5bd3d903a
The strings are the same... so, I don't understand what happens (or what doesn't happens...) ? Thanks for any help
-------- Message d'origine-------- De: Frank
Rehberger [mailto:Frank Rehberger web de] Date: mer. 09/06/2004
18:43 Ã: Harter Damien Cc: orbit-list gnome org
Objet: Re: Orbit2 Name Service Problems
Harter Damien wrote:
> All, > As I said to
Bill, I've a problem with the Orbit2 name service, the > same as
: > mail.gnome.org/archives/orbit-list/2003-july/msg00049.html. >
I tried to run the Name Resolve example under Redhat 9 and 7.2 : >
*$orbit-name-server > ~/ior.ref* > *$./name-resolve-server
-ORBInitRef NameService=`cat ~/ior.ref`* > *Binding service reference at
name service against id: > Examples/NameResolve/Service* >
** > *** ERROR **: failed binding of service
ODL:omg.org/CORBA/INV_OBJREF:1.0* > *aborting...* >
*abandon* >
This error shows up, if and only if you call
remote operation with NULL-Object, please verify operation
string_to_object returns valid binary object reference.
My feeling
is, the content of ~/ior.ref is not read completely, please can you change
the implementation of *name-resolve-server.c so that it prints read content
to terminal,
Regards, Frank
*
> I've the same issue if
I wrote the name service ior printed by orbit > name server instead of
`cat ~/ior.ref`. > > Here some information that may help
: > *$cat ~/.orbitrc* > *ORBIIOPUSock=1* >
*ORBIIOPIPv4=1* > *ORBIIOPIPv6=0* > ** > *$ior-decode-2 `cat
~/ior.ref`* > *Object ID:
IDL:omg.org/CosNaming/NamingContext:1.0* > *IOP_TAG_INTERNET_IOP: GIOP
1.0 192.168.....143:35454* > *
object_key (24) '00000000d55f34b721a...c3b'* > *$ior-decode `cat
~/ior.ref`* > >*Tags known: >TAG_INTERNET_IOP:
0x0 >TAG_MULTIPLE_COMPONENTS: 0x1 >TAG_ORBIT_SPECIFIC:
0xbadfaeca > >Object ID:
IDL:omg.org/CosNaming/NamingContext:1.0 >Profile count:
1 > >Profile type: TAG_INTERNET_IOP >Object endian:
Little >IIOP version: 1.0 >Host: 192.168.202.143 >Port:
35454 >Object key: "....._4.!.]k.....e..3NL;"* > >Thanks for
help > >Damien > > > > >------------------------------------------------------------------------ > >_______________________________________________ >orbit-list
mailing list >orbit-list gnome org >http://mail.gnome.org/mailman/listinfo/orbit-list > >
|