Go Back   ZeroC Forums > Patches

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 07-25-2006
hellocyf hellocyf is offline
Registered User
 
 
Join Date: Jun 2004
Location: shanghai,China
Posts: 26
Send a message via MSN to hellocyf
-->
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();
}
}
}
}
Reply With Quote
  #2 (permalink)  
Old 07-25-2006
matthew's Avatar
matthew matthew is offline
ZeroC Staff
 
Name: Matthew Newhook
Organization: ZeroC, Inc.
Project: Internet Communications Engine
 
Join Date: Feb 2003
Location: NL, Canada
Posts: 1,027
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?
Reply With Quote
  #3 (permalink)  
Old 07-26-2006
hellocyf hellocyf is offline
Registered User
 
 
Join Date: Jun 2004
Location: shanghai,China
Posts: 26
Send a message via MSN to hellocyf
-->
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
Reply With Quote
  #4 (permalink)  
Old 07-26-2006
hellocyf hellocyf is offline
Registered User
 
 
Join Date: Jun 2004
Location: shanghai,China
Posts: 26
Send a message via MSN to hellocyf
-->
I have fill out mysignature information

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



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
IcePatch2 - Decompressor panchubi Help Center 1 01-31-2007 02:21 PM
Icepatch2 in java panchubi Help Center 1 01-24-2007 07:38 PM
Using IcePatch2 with Java zhi Help Center 1 12-18-2006 01:13 AM
How to modify server properties on the fly? ymcao_cn Help Center 4 07-26-2006 09:10 PM
a problem about how to modify a value at the iterator’s current position! fw_csha Help Center 1 03-01-2005 10:34 AM


All times are GMT -4. The time now is 12:49 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0
(c) 2008 ZeroC, Inc.