Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 140438

Summary: [regression] New AC starts with no errors when configuration file is not generated
Product: z_Archived Reporter: Navid Mehregani <nmehrega>
Component: TPTPAssignee: Igor Alelekov <igor.alelekov>
Status: CLOSED WORKSFORME QA Contact:
Severity: major    
Priority: P1 CC: jkubasta
Version: unspecifiedKeywords: plan
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard: closed460

Description Navid Mehregani CLA 2006-05-05 17:08:51 EDT
New AC doesn't generate any errors if it's started prior to running SetConfig.bat

The user can start RAServer.exe prior to running SetConfig.bat and new AC doesn't seem to complain.  It seems to "start", but nothing can be profiled.

The old RAC use to output the following error message when RAServer.exe was executed prior to SetConfig.bat:

Couldn't load JVM library (null)
Couldn't start Agent Controller
Reason:  Configuration file parsing failed
Resolution:  1. Examine the messages in servicelog.log to determine
             where parsing failed.
             2. Make sure you have created a valid configuration file
             RASERVER_HOME/config/serviceconfig.xml
             by running the SetConfig script.
Comment 1 Karla Callaghan CLA 2006-05-08 15:56:44 EDT
The new AC package includes a default version of serviceconfig.xml with relative path settings, rather than an empty config like the RAC.  Therefore the AC can startup just fine, but only new AC communication channels will be setup.  Hence, anything relying on backwards compatibility will fail.

We can delete the contents of the default config file, forcing the use of SetConfig.bat, but we also need to fix the new AC to report an error if the config file is a) non-existent or b)empty.  Currently either of those cases just result in its exiting, w/o any error to indicate why.

Basicly, if AC returns from configurationManager_readConfigFile() need to display an error - NOT log it since there may not be a log file.

Comment 2 Karla Callaghan CLA 2006-05-08 20:12:51 EDT
Kevin, please make sure the proper errors get displayed in all cases, a separate bugzilla will cover removing the default contents of the config.
Comment 3 Kevin P O'Leary CLA 2006-05-12 16:37:00 EDT
When the serviceconfig file is empty we now do not start the AC and
we print a message warning the user.
Comment 4 Navid Mehregani CLA 2006-06-08 11:01:55 EDT
Verified on TPTP-4.2.0-200606060100
Comment 5 Navid Mehregani CLA 2007-05-09 12:43:48 EDT
I'm experiencing a similar problem with the 4.4 AC.  When there is no configuration file, ACServer doesn't start up, but it doesn't output any error message either.  It use to generate an error message.  Raising severity, since this is a regression.
Comment 6 Igor Alelekov CLA 2007-10-23 10:48:19 EDT
It seems that AC 4.5 is free from this defect.
I had tested it and got the following message if config file is absent: "Error reading the Agent Controller configuration file. Please check for valid configuration".
Resolving as "works for me"
Comment 7 Paul Slauenwhite CLA 2007-12-19 07:58:50 EST
Please change the target to the 4.5 iteration when this Bugzilla was resolved.
Comment 8 Paul Slauenwhite CLA 2009-06-30 12:09:05 EDT
As of TPTP 4.6.0, TPTP is in maintenance mode and focusing on improving quality by resolving relevant enhancements/defects and increasing test coverage through test creation, automation, Build Verification Tests (BVTs), and expanded run-time execution. As part of the TPTP Bugzilla housecleaning process (see http://wiki.eclipse.org/Bugzilla_Housecleaning_Processes), this enhancement/defect is verified/closed by the Project Lead since this enhancement/defect has been resolved and unverified for more than 1 year and considered to be fixed. If this enhancement/defect is still unresolved and reproducible in the latest TPTP release (http://www.eclipse.org/tptp/home/downloads/), please re-open.