Results 1 to 5 of 5

Thread: Ice grid / starting server by program.

  1. #1
    Laurent is offline Registered User
    Name: Laurent Carcagno
    Organization: ISIS-MPP
    Project: Distributed simulator
    Join Date
    Mar 2010
    Posts
    12

    Ice grid / starting server by program.

    Hi,
    I'm trying to admin an IceGrid registry programmatically.

    So, inspired by IceGridNode, I'm developing a node that automatically
    register itself and its available server.
    One of the node uses collocation to handle the registry.
    The servers are in charge to register their adapters.

    When the node try to activate the server by itself using startServer,
    I don't know why but a _stop Command is fired during the load step.

    The same thing seems to happen when I try to activate the server through the IceGridGUI.

    Code:
    -- 04/12/10 20:33:52.308 O3SNode: Activator: activating server `RTS2Server'
       path = C:\Projects\Techniware\O3SRT\O3S\O3SServer.exe
       pwd = C:\Projects\Techniware\O3SRT\O3S
       args = C:\Projects\Techniware\O3SRT\O3S\O3SServer.exe --Ice.Config=C:\\Projects\\Techniware\\O3SRT\\O3S/nodedata/serv
    ers/RTS2Server/config/config
    -- 04/12/10 20:33:52.772 O3SNode: Locator: registered server `RTS2Server' process proxy: `2e6e62a4-b0ef-4d0f-bc63-0aae63
    d11a90/admin -f Process -t:tcp -h 127.0.0.1 -p 60401'
    -- 04/12/10 20:33:52.853 O3SNode: Session: admin session `RTS2Admin' created
    -- 04/12/10 20:33:52.921 O3SNode: Adapter: added adapter `RTS2Adapter'
    -- 04/12/10 20:33:52.926 O3SNode: Object: added allocatable object `RTS2VariablesProvider'
    -- 04/12/10 20:33:52.932 O3SNode: Object: added allocatable object `RTS2MessagesProvider'
    [12-04-2010  18:34:02.935] 3:Error PORTABLE o3s.extension.remote.variables : ObjectAdapterI.cpp:1327: Ice::NotRegistered
    Exception:
     no object adapter with id `RTS2Adapter' is registered
    This error is strange to me because the node says :
    RTS2Adapter has been added
    and when calling activate on the adapter, the server got the error no object adapter with id `RTS2Adapter' is registered .

    But when I activate the server from the command line, it works.
    Except that only the adapters appears to be active on the GUI
    (not the server).



    Thanks,
    Laurent

  2. #2
    benoit's Avatar
    benoit is offline ZeroC Staff
    Name: Benoit Foucher
    Organization: ZeroC, Inc.
    Project: Ice
    Join Date
    Feb 2003
    Location
    Rennes, France
    Posts
    2,196
    Hi,

    It's really not clear to me what you're trying to do. It sounds like your server creates an administrative session with the registry to add programmatically its object adapter and allocatable objects?

    If that's the case, this won't work because updating the server deployment information in such a way requires the server to be re-started. Why don't you register the object adapter prior to the server startup?

    Please also specify with platform and Ice version you are using.

    Cheers,
    Benoit.

  3. #3
    Laurent is offline Registered User
    Name: Laurent Carcagno
    Organization: ISIS-MPP
    Project: Distributed simulator
    Join Date
    Mar 2010
    Posts
    12
    Hi Benoit,

    You're right, it wasn't really clear, sorry ;-)

    Effectively, the server creates an administrative session to register programmatically its object adapter and allocatable objects (because
    only it knows about them at runtime).

    So if I understand well your answer, if a server is started by a node, the adapter and allocatable objects of this server must be known before to
    start the server.

    I'm using Windows 7, Mac OSX and Linux platform with Ice 3.4.
    (Programming language are C++ & Python)

    Thanks for your answer,
    Best Regards
    Laurent.

  4. #4
    benoit's Avatar
    benoit is offline ZeroC Staff
    Name: Benoit Foucher
    Organization: ZeroC, Inc.
    Project: Ice
    Join Date
    Feb 2003
    Location
    Rennes, France
    Posts
    2,196
    Hi,

    Correct. If you try to modify the server deployment while the server is running, IceGrid will require a restart of the server. So you can't modify this information from the server itself. You need some other process to setup correctly the server deployment before the server is started.

    Cheers,
    Benoit.

  5. #5
    Laurent is offline Registered User
    Name: Laurent Carcagno
    Organization: ISIS-MPP
    Project: Distributed simulator
    Join Date
    Mar 2010
    Posts
    12
    Hi Benoit,
    Thanks for your help.
    Laurent

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Starting Publisher server program from IceGrid
    By pjtait in forum Help Center
    Replies: 1
    Last Post: 06-24-2010, 04:26 AM
  2. Program delayed in ICE-Grid, Help!
    By shenhongzhou in forum Help Center
    Replies: 3
    Last Post: 12-28-2007, 08:12 PM
  3. Error Starting Server via icegridadmin
    By kishore in forum Help Center
    Replies: 8
    Last Post: 04-12-2007, 03:41 PM
  4. Replies: 4
    Last Post: 03-31-2004, 08:45 PM
  5. Replies: 3
    Last Post: 03-31-2004, 07:13 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
  •