CosNaming bind problem



Hello,

     I work with orbit 0.5.8-4.
     I wrote a program with a server, a client and a Naming Service.
     When all run on one machine, it's ok. But, when I run Naming
     Service on one machine and the server on another one, server
     found the Naming Server with the IOR but I got a error message
     "<IDL:CORBA/COMM_FAILURE:1.0>" when the server bind into the
     naming server.

     I active the option -ORBIIOPIPv4 = 1 and -ORBIIOPIPUSock = 0 with
     the server and the client and I use NFS to read the IOR of the
     Naming Service (Classic ...)

     So, what's the problem ...
     
     ----------------------------------------------------------------------
        CORBA_exception_init(ev);

        if((orb = CORBA_ORB_init(&dummy_argc,dummy_argv,"orbit-local-orb",ev))==NULL){
                printf("ORB introuvable\n");exit(-1);
        }
        
        /*declaration, obtention et activation du Portable Object Adapter*/     
        root_poa =
(PortableServer_POA)CORBA_ORB_resolve_initial_references(orb,"RootPOA",ev);
        pm = PortableServer_POA__get_the_POAManager(root_poa,ev);
        PortableServer_POAManager_activate(pm,ev);
        
        printf("find the name service\n");
        /*obtenir le service de nommage*/
        name_svr =
(CosNaming_NamingContext)CORBA_ORB_resolve_initial_references(orb,"NameService",ev);
        if(ev->_major != CORBA_NO_EXCEPTION){
                printf("Exception <%s> signale\n",CORBA_exception_id(ev)); exit(1);
        }
        else printf("name server found\n");
        
        printf("create objet ATCGfind\n");
        atcgfind = impl_ATCGfind__create(root_poa,ev);
                        
        printf("initialisation CosNamingName\n");
        /*creation du nom et inscription au service de nommage*/
        obj_name = create_name(argv[1]);
        printf("bind name\n");
        CosNaming_NamingContext_bind(name_svr,obj_name,atcgfind,ev);
        if(ev->_major != CORBA_NO_EXCEPTION){ -> PROBLEM IS HERE
                printf("bind problem\n");
                printf("Exception <%s> signale\n",CORBA_exception_id(ev)); exit(1);
        }
        else printf("ready to service request\n");      
        CORBA_ORB_run(orb,ev);
     
      -----------------------------------------------------------------------


Best Regards and Have a good day

        Jean




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]