Results 1 to 3 of 3

Thread: Ice.Default.Locator and stand-alone IceBox service

  1. #1
    aerskine is offline Registered User
    Name: Allan Erskine
    Organization: Credit Suisse
    Project: Data services
    Join Date
    Feb 2008
    Posts
    2

    Ice.Default.Locator and stand-alone IceBox service

    I am developing a C# IceBox service which accesses some well-known objects on our production IceGrid, and so when I am developing I set

    Ice.Default.Locator=IceGrid/Locator:tcp -h gridnode1 -p 4061

    in my config.servicenet file.

    However, after I have set up all my servant objects for the service, and come to call

    _adapter.activate()

    I get an Ice.UnknownException, containing an "Ice::AdapterAlreadyActiveException" lurking within the "unknown" field.

    This is thrown line 1211 of ObjectAdapterI.cs

    locatorRegistry.setAdapterDirectProxy(_id, proxy);

    The value of locatorRegistry is:
    {IceGrid/LocatorRegistry-Master -t:tcp -h gridnode1 -p 3911}

    Now -- I have a workaround for development, which is to call:

    _adapter.setLocator(null);

    prior to activation; but I need to comment this line out prior to deploying the IceBox service via IceGrid, since it causes problems otherwise.

    Could anyone give me a hint as to what might be happening, and how I may run the same code in development and on the grid without needing to call this setLocator workaround? Many thanks!

  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 Allan,

    You shouldn't configure the <adapter name>.AdapterId property for this object adapter if you don't want to register it with the IceGrid registry. So removing this property from the service configuration should solve your issue.

    Cheers,
    Benoit.

  3. #3
    aerskine is offline Registered User
    Name: Allan Erskine
    Organization: Credit Suisse
    Project: Data services
    Join Date
    Feb 2008
    Posts
    2
    Oops, that was it. Thank you Benoit!

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. about icebox service
    By luis12 in forum Help Center
    Replies: 3
    Last Post: 05-14-2009, 04:37 AM
  2. PHP Stand Alone for ICE
    By catunda in forum Help Center
    Replies: 3
    Last Post: 08-13-2008, 12:14 PM
  3. Specifying a default locator without a config file
    By mefoster in forum Help Center
    Replies: 1
    Last Post: 03-01-2007, 05:10 AM
  4. Replies: 7
    Last Post: 10-19-2005, 08:27 PM
  5. Ice.Default.Locator
    By xdm in forum Help Center
    Replies: 8
    Last Post: 05-31-2005, 08:52 AM

Posting Permissions

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