Results 1 to 4 of 4

Thread: IcePatch2 modify

  1. #1
    hellocyf is offline Registered User
    Join Date
    Jun 2004
    Location
    shanghai,China
    Posts
    26

    Smile IcePatch2 modify

    I have config IceGrid as windows service with icepatch2.
    It is throws exception when we use icegrid patchs application,
    after check code,I found error cause when invoke OS::mkdir(path) and
    path is root,so I add a condition . It's works fine



    icepatch2 util.cpp

    void
    IcePatch2::createDirectoryRecursive(const string& pa)
    {
    const string path = simplify(pa);
    string dir = getDirname(path);
    if(!dir.empty())
    {
    createDirectoryRecursive(dir);
    }

    if(!isRoot(path+"/")) //add this condision
    {
    if(OS::mkdir(path, 0777) == -1)
    {
    if(errno != EEXIST)
    {
    throw "cannot create directory `" + path + "':\n" + lastError();
    }
    }
    }
    }

  2. #2
    matthew's Avatar
    matthew is offline ZeroC Staff
    Name: Matthew Newhook
    Organization: ZeroC, Inc.
    Project: Internet Communications Engine
    Join Date
    Feb 2003
    Location
    NL, Canada
    Posts
    1,458
    Thanks for the bug report.

    What IcePatch configuration are you using? You are trying to use the root directory of a drive as your IcePatch repository?

    Can you please also fill out your signature information as described in the link contained in my signature?

  3. #3
    hellocyf is offline Registered User
    Join Date
    Jun 2004
    Location
    shanghai,China
    Posts
    26

    icegrid

    icegridnode inclue icepatch client function,
    when icegridnode run as windows services(current work dir diff from run as application) so IceGrid.Node.Data should set ad "IceGrid.Node.Data=D:\DemoGrid\db\node"
    (original is db/node).

    then createDirectoryRecursive(..) will Recursive until path="d:"
    OS::mkdir("d:" , 0777) thows exception


    IceGrid.InstanceName=DemoGrid

    #
    # The IceGrid locator proxy.
    #
    Ice.Default.Locator=DemoGrid/Locator:default -p 12000

    #
    # IceGrid registry configuration.
    #
    IceGrid.Registry.Client.Endpoints=default -p 12000
    IceGrid.Registry.Server.Endpoints=default
    IceGrid.Registry.Internal.Endpoints=default
    IceGrid.Registry.Admin.Endpoints=default
    IceGrid.Registry.Data=D:\DemoGrid\db\registry
    IceGrid.Registry.PermissionsVerifier=DemoGrid/NullPermissionsVerifier
    IceGrid.Registry.AdminPermissionsVerifier=DemoGrid/NullPermissionsVerifier

    #
    # IceGrid node configuration.
    #
    IceGrid.Node.Name=localhost
    IceGrid.Node.Endpoints=default
    IceGrid.Node.Data=D:\DemoGrid\db\node
    IceGrid.Node.CollocateRegistry=1
    #IceGrid.Node.Output=db
    #IceGrid.Node.RedirectErrToOut=1

    #
    # Trace properties.
    #
    IceGrid.Node.Trace.Activator=1
    IceGrid.Node.Trace.Patch=1
    #IceGrid.Node.Trace.Adapter=2
    #IceGrid.Node.Trace.Server=3

  4. #4
    hellocyf is offline Registered User
    Join Date
    Jun 2004
    Location
    shanghai,China
    Posts
    26

    I have fill out mysignature information

    I have fill out mysignature information
    yuefeng chen
    http://www.mengdy.net
    attention to ice grid

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Howto modify connection timeout for AdminPrx?
    By jharriot in forum Help Center
    Replies: 3
    Last Post: 08-19-2010, 05:53 PM
  2. Replies: 1
    Last Post: 07-11-2007, 07:44 PM
  3. Using IcePatch2 with Java
    By zhi in forum Help Center
    Replies: 1
    Last Post: 12-18-2006, 01:13 AM
  4. How to modify server properties on the fly?
    By ymcao_cn in forum Help Center
    Replies: 4
    Last Post: 07-26-2006, 09:10 PM
  5. Replies: 1
    Last Post: 03-01-2005, 10:34 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
  •