Results 1 to 5 of 5

Thread: createObjectAdapterWithEndpoints problem

  1. #1
    leoang is offline Registered User
    Join Date
    Jun 2006
    Location
    klang
    Posts
    21

    Cool createObjectAdapterWithEndpoints problem

    Hallo, I am new in IceE. I have a problem with createObjectAdapterWithEndpoints. Here is my code.

    //server
    Ice::ObjectPtr object = new PingI;
    Ice::ObjectAdapterPtr adapter = communicator->createObjectAdapterWithEndpoints("Latency","tcp -h 192.168.250.73 -p 10003" );

    adapter->add(object, Ice::stringToIdentity("ping123"));
    adapter->activate();
    communicator->waitForShutdown();
    return EXIT_SUCCESS;

    //client
    string proxy = "ping123::tcp -h 192.168.250.73 -p 10003";
    Ice::ObjectPrx base = communicator->stringToProxy(proxy);
    PingPrx ping = PingPrx::checkedCast(base);
    if(!ping)
    {
    fprintf(stderr, "%s: invalid proxy\n", argv[0]);
    return EXIT_FAILURE;
    }

    while i run the client, error will occour. Here is the error messege.

    [root@localhost latency2]# ./client
    ../../src/TcpTransport/EndpointFactory.cpp:40: Ice::EndpointParseException:
    error while parsing endpoint `'

    which part of code i should edit.

  2. #2
    mes's Avatar
    mes
    mes is online now ZeroC Staff
    Name: Mark Spruiell
    Organization: ZeroC, Inc.
    Project: Ice Developer
    Join Date
    Feb 2003
    Location
    California
    Posts
    1,441
    Welcome to the forum!

    Please update your signature as described in this announcement regarding our support policy on the forum.

    Take care,
    - Mark

  3. #3
    leoang is offline Registered User
    Join Date
    Jun 2006
    Location
    klang
    Posts
    21
    Thanks mes.
    I had upgrade my signature
    Leo Ang
    Multimedia University (http://www.mmu.edu.my)
    Latency test.

  4. #4
    mes's Avatar
    mes
    mes is online now ZeroC Staff
    Name: Mark Spruiell
    Organization: ZeroC, Inc.
    Project: Ice Developer
    Join Date
    Feb 2003
    Location
    California
    Posts
    1,441
    Quote Originally Posted by leoang
    string proxy = "ping123::tcp -h 192.168.250.73 -p 10003";
    You have an extra colon after the identity in your proxy. Try changing ping123::tcp to ping123:tcp.

    - Mark

  5. #5
    leoang is offline Registered User
    Join Date
    Jun 2006
    Location
    klang
    Posts
    21
    thanks, i resolve my problem
    Leo Ang
    Multimedia University (http://www.mmu.edu.my)
    Latency test.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. createObjectAdapterWithEndpoints in php
    By deStrO in forum Help Center
    Replies: 0
    Last Post: 09-08-2010, 06:14 AM
  2. Replies: 1
    Last Post: 12-14-2005, 04:09 PM
  3. Replies: 2
    Last Post: 08-15-2005, 03:01 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
  •