Archived
This forum has been archived. Please start a new discussion on GitHub.
Ice::NoEndpointException: no suitable endpoint available for proxy
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.
The registry is started with:
The content of /opt/cmu/registry.cfg is:
I also have a folder created on /opt/cmu/registry/
The server object adapter creation is:
The server is started with:
The content of /opt/cmu/server.cfg is:
The proxy creation in the client is:
The client is started with the comand:
The content of /opt/cmu/client.cfg is:
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.
Do you see the problem?
Thanks in advance,
Carlos
I am receiving this error when executing my client:
Reference.cpp:1585: Ice::NoEndpointException: no suitable endpoint available for proxy `NavigationI -t @ CMUcobotAdapter'
The architecture is a registry, a server and a client using indirect proxy, with everything running on the same machine.
The registry is started with:
icegridregistry --Ice.Config=/opt/cmu/registry.cfg
The content of /opt/cmu/registry.cfg is:
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
I also have a folder created on /opt/cmu/registry/
The server object adapter creation is:
ic = Ice::initialize(argc, argv); Ice::ObjectAdapterPtr adapter = ic->createObjectAdapterWithEndpoints("CMUcobotAdapter", "default -p 10110"); adapter->add(getInstance(), ic->stringToIdentity("NavigationI"));
The server is started with:
./server --Ice.Config=/opt/cmu/server.cfg
The content of /opt/cmu/server.cfg is:
CMUcobotAdapter.AdapterId=CMUcobotAdapter CMUcobotAdapter.Endpoints=tcp Ice.Default.Locator=IceGrid/Locator:tcp -p 4061
The proxy creation in the client is:
Ice::ObjectPrx proxy = ic->stringToProxy("NavigationI@CMUcobotAdapter"); CMU::NavigationIPrx navigationPrx = CMU::NavigationIPrx::checkedCast(proxy);
The client is started with the comand:
./client --Ice.Config=/opt/cmu/client.cfg
The content of /opt/cmu/client.cfg is:
Ice.Default.Locator=IceGrid/Locator:tcp -p 4061
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.
Do you see the problem?
Thanks in advance,
Carlos
0
Comments
-
Hi Carlos,
Which version of Ice are you using?
Overwriting your endpoint configuration with createObjectAdapterWithEndpoints is unusual; why not create your object adapter with:Ice::ObjectAdapterPtr adapter = ic->createObjectAdapter("CMUcobotAdapter");
Do you activate this object adapter?
Best regards,
Bernard0 -
Hi Bernard,
thanks for your early reply.
I've tried your suggestion for creating the object adapter and I get an additional error when I start the server:ObjectAdapterI.cpp:774: Ice::InitializationException: initialization exception: object adapter `CMUcobotAdapter' requires configuration
Do I need to add any extra conf. information inside the server.cfg?
By the way I'am using Ice 3.3.1 and the object adapter is activated (previously I was using direct proxies without problems).
Best,
CarlosHi Carlos,
Which version of Ice are you using?
Overwriting your endpoint configuration with createObjectAdapterWithEndpoints is unusual; why not create your object adapter with:Ice::ObjectAdapterPtr adapter = ic->createObjectAdapter("CMUcobotAdapter");
Best regards,
Bernard0 -
This exception means Ice can't find the CMUcobotAdapter.Endpoints property in the server configuration file--so it does not find AdapterId either, which explains the initial problem.
The argc/argv parameters come directly from your main() function?
Best regards,
Bernard0 -
Bernard,
that was the problem, I was ignoring argc and argv within my code.
Now, it is working.
Thanks as always!
CarlosThis exception means Ice can't find the CMUcobotAdapter.Endpoints property in the server configuration file--so it does not find AdapterId either, which explains the initial problem.
The argc/argv parameters come directly from your main() function?
Best regards,
Bernard0 -
Hi Carlos,
It's good to see you figured it out. You should also consider upgrading to Ice 3.4.2.
Best regards,
Bernard0