Hi,
I am receiving this error when executing my client:
The architecture is a registry, a server and a client using indirect proxy, with everything running on the same machine.Code:Reference.cpp:1585: Ice::NoEndpointException: no suitable endpoint available for proxy `NavigationI -t @ CMUcobotAdapter'
The registry is started with:
The content of /opt/cmu/registry.cfg is:Code:icegridregistry --Ice.Config=/opt/cmu/registry.cfg
I also have a folder created on /opt/cmu/registry/Code:IceGrid.Registry.Client.Endpoints=tcp -p 4061 IceGrid.Registry.Server.Endpoints=tcp IceGrid.Registry.Internal.Endpoints=tcp IceGrid.Registry.AdminPermissionsVerifier=IceGrid/NullPermissionsVerifier IceGrid.Registry.Data=/opt/cmu/registry IceGrid.Registry.DynamicRegistration=1
The server object adapter creation is:
The server is started with:Code:ic = Ice::initialize(argc, argv); Ice::ObjectAdapterPtr adapter = ic->createObjectAdapterWithEndpoints("CMUcobotAdapter", "default -p 10110"); adapter->add(getInstance(), ic->stringToIdentity("NavigationI"));
The content of /opt/cmu/server.cfg is:Code:./server --Ice.Config=/opt/cmu/server.cfg
The proxy creation in the client is:Code:CMUcobotAdapter.AdapterId=CMUcobotAdapter CMUcobotAdapter.Endpoints=tcp Ice.Default.Locator=IceGrid/Locator:tcp -p 4061
The client is started with the comand:Code:Ice::ObjectPrx proxy = ic->stringToProxy("NavigationI@CMUcobotAdapter"); CMU::NavigationIPrx navigationPrx = CMU::NavigationIPrx::checkedCast(proxy);
The content of /opt/cmu/client.cfg is:Code:./client --Ice.Config=/opt/cmu/client.cfg
I cannot see the problem, with direct proxies everything was fine, but when I tried to move to an indirect proxie I get this error.Code:Ice.Default.Locator=IceGrid/Locator:tcp -p 4061
Do you see the problem?
Thanks in advance,
Carlos

Reply With Quote
