Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 10-18-2004
griffima griffima is offline
Registered User
 
 
Join Date: Oct 2004
Location: Connecticut, USA
Posts: 17
Debug named profiles

Is there a convenient way to debug a PHP named profile configuration? I get profile not found errors when I run my script so I've obviously misconfigured something but anything that is failing does so silently.

Just for a double check, my configuration is-

httpd.conf contains:
php_value ice.profiles c:/code/www/ice.profiles

ice.profiles:
[Test]
ice.options="--Ice.Trace.Network=1 --Ice.Warn.Connections=1"
ice.slice="-Ic:/code/IceServerTest/src c:/code/IceServerTest/src/TestServer.ice"


then
Ice_loadProfile("Test");
goes Fatal error: profile `Test' not found
Reply With Quote
  #2 (permalink)  
Old 10-18-2004
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: 971
Hi,

I'm afraid there isn't currently a way to trace the profiles. To verify that the Ice extension is even seeing your ice.profiles directive, you could try using an invalid Slice filename in ice.slice. If you don't see any errors, either in the Apache logs or during Apache startup, you might try defining ice.profiles in php.ini instead.

Take care,
- Mark
Reply With Quote
  #3 (permalink)  
Old 10-18-2004
griffima griffima is offline
Registered User
 
 
Join Date: Oct 2004
Location: Connecticut, USA
Posts: 17
Well, I can prove that ICE does not see its directives unless they are in php.ini. However, adding
ice.profiles = "c:\code\www\ice.profiles"
to php.ini results in Apache being unable to load the module again.
Reply With Quote
  #4 (permalink)  
Old 10-18-2004
griffima griffima is offline
Registered User
 
 
Join Date: Oct 2004
Location: Connecticut, USA
Posts: 17
>>> PHP Fatal error: Unable to start ice module in Unknown on line 0 <<<
before the error.log file could be opened.


Nothing in the error log.
Reply With Quote
  #5 (permalink)  
Old 10-18-2004
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: 971
Sorry, there is a mismatch between the documentation and the code. The code expects the directives in the named profiles to omit the ice. prefix. So your file should contain the following:

[Test]
options="--Ice.Trace.Network=1 --Ice.Warn.Connections=1"
slice="-Ic:/code/IceServerTest/src c:/code/IceServerTest/src/TestServer.ice"

I'm not sure whether I should change the documentation to reflect the code, or change the code to reflect the documentation. In either event, it will be fixed by the next release.

Note that when I start Apache in the foreground, I do get the following message:

PHP Fatal error: unknown profile entry in file E:/Apache1/ice.pro:
ice.slice=C:\icephp\Hello.ice
in Unknown on line 0

Thanks,
- Mark
Reply With Quote
  #6 (permalink)  
Old 10-18-2004
griffima griffima is offline
Registered User
 
 
Join Date: Oct 2004
Location: Connecticut, USA
Posts: 17
Documentation mismatch? Ludicrous! Just means we'll be pen pals.

ok, I see this now when I start in the foreground:

PHP Fatal error: no Slice files specified in ice.slice in Unknown on line 0
PHP Fatal error: Unable to start ice module in Unknown on line 0

Is this because I have not specified options for the default profile?
Reply With Quote
  #7 (permalink)  
Old 10-18-2004
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: 971
Quote:
Originally posted by griffima
Is this because I have not specified options for the default profile?
No, you aren't required to specify options for the default profile.

I suspect you need to remove the quotes that enclose your directives. Try this instead:

[Test]
options=--Ice.Trace.Network=1 --Ice.Warn.Connections=1
slice=-Ic:/code/IceServerTest/src c:/code/IceServerTest/src/TestServer.ice


- Mark
Reply With Quote
  #8 (permalink)  
Old 10-18-2004
griffima griffima is offline
Registered User
 
 
Join Date: Oct 2004
Location: Connecticut, USA
Posts: 17
Indeed!
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
activation failure!How to debug icegridnode with gdb? ewiniar Help Center 2 06-08-2006 10:15 PM
Debug runtime errors Deqing Help Center 4 02-14-2006 07:19 PM
How to debug a icebox service . fan Help Center 1 08-23-2005 11:21 PM
Problem w. debug assertion after Ice call Nis Baggesen Help Center 2 03-07-2005 07:38 AM
how to debug ice? clren Help Center 2 09-24-2003 10:55 PM


All times are GMT -4. The time now is 05:22 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.