Results 1 to 6 of 6

Thread: Ice::NoEndpointException: no suitable endpoint available for proxy

  1. #1
    caguero is offline Registered User
    Name: Carlos Aguero
    Organization: Universidad Rey Juan Carlos
    Project: RoboCup SPL project
    Join Date
    Feb 2011
    Posts
    5

    Ice::NoEndpointException: no suitable endpoint available for proxy

    Hi,

    I am receiving this error when executing my client:

    Code:
    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:
    Code:
    icegridregistry --Ice.Config=/opt/cmu/registry.cfg
    The content of /opt/cmu/registry.cfg is:
    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
    I also have a folder created on /opt/cmu/registry/

    The server object adapter creation is:
    Code:
    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:
    Code:
    ./server --Ice.Config=/opt/cmu/server.cfg
    The content of /opt/cmu/server.cfg is:
    Code:
    CMUcobotAdapter.AdapterId=CMUcobotAdapter
    CMUcobotAdapter.Endpoints=tcp
    Ice.Default.Locator=IceGrid/Locator:tcp -p 4061
    The proxy creation in the client is:
    Code:
    Ice::ObjectPrx proxy = ic->stringToProxy("NavigationI@CMUcobotAdapter");
    CMU::NavigationIPrx navigationPrx = CMU::NavigationIPrx::checkedCast(proxy);
    The client is started with the comand:
    Code:
    ./client --Ice.Config=/opt/cmu/client.cfg
    The content of /opt/cmu/client.cfg is:
    Code:
    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

  2. #2
    bernard's Avatar
    bernard is online now ZeroC Staff
    Name: Bernard Normier
    Organization: ZeroC, Inc.
    Project: Ice
    Join Date
    Feb 2003
    Location
    Palm Beach Gardens, FL
    Posts
    1,294
    Hi Carlos,

    Which version of Ice are you using?

    Overwriting your endpoint configuration with createObjectAdapterWithEndpoints is unusual; why not create your object adapter with:

    Code:
    Ice::ObjectAdapterPtr adapter = ic->createObjectAdapter("CMUcobotAdapter");
    Do you activate this object adapter?

    Best regards,
    Bernard
    Bernard Normier
    ZeroC, Inc.

  3. #3
    caguero is offline Registered User
    Name: Carlos Aguero
    Organization: Universidad Rey Juan Carlos
    Project: RoboCup SPL project
    Join Date
    Feb 2011
    Posts
    5
    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:
    Code:
    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,
    Carlos

    Quote Originally Posted by bernard View Post
    Hi Carlos,

    Which version of Ice are you using?

    Overwriting your endpoint configuration with createObjectAdapterWithEndpoints is unusual; why not create your object adapter with:

    Code:
    Ice::ObjectAdapterPtr adapter = ic->createObjectAdapter("CMUcobotAdapter");
    Best regards,
    Bernard
    Last edited by caguero; 10-09-2011 at 07:03 PM.

  4. #4
    bernard's Avatar
    bernard is online now ZeroC Staff
    Name: Bernard Normier
    Organization: ZeroC, Inc.
    Project: Ice
    Join Date
    Feb 2003
    Location
    Palm Beach Gardens, FL
    Posts
    1,294
    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,
    Bernard
    Bernard Normier
    ZeroC, Inc.

  5. #5
    caguero is offline Registered User
    Name: Carlos Aguero
    Organization: Universidad Rey Juan Carlos
    Project: RoboCup SPL project
    Join Date
    Feb 2011
    Posts
    5
    Bernard,

    that was the problem, I was ignoring argc and argv within my code.

    Now, it is working.

    Thanks as always!

    Carlos

    Quote Originally Posted by bernard View Post
    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,
    Bernard

  6. #6
    bernard's Avatar
    bernard is online now ZeroC Staff
    Name: Bernard Normier
    Organization: ZeroC, Inc.
    Project: Ice
    Join Date
    Feb 2003
    Location
    Palm Beach Gardens, FL
    Posts
    1,294
    Hi Carlos,

    It's good to see you figured it out. You should also consider upgrading to Ice 3.4.2.

    Best regards,
    Bernard
    Bernard Normier
    ZeroC, Inc.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Ice.NoEndpointException
    By pjtait in forum Help Center
    Replies: 8
    Last Post: 06-23-2010, 06:07 PM
  2. no suitable endpoint available for proxy `hello -t'
    By zeronumber in forum Help Center
    Replies: 3
    Last Post: 01-29-2010, 05:02 AM
  3. Ice.NoEndpointException
    By Marthin in forum Help Center
    Replies: 6
    Last Post: 11-07-2007, 07:22 AM
  4. Is Ice suitable for parallel computation?
    By Yunqiao Yin in forum Comments
    Replies: 1
    Last Post: 01-26-2006, 12:44 PM
  5. SSL Proxy Endpoint and -s
    By gsalazar in forum Help Center
    Replies: 11
    Last Post: 06-22-2005, 01:57 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •