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

Bug 197172

Summary: Start/Stop IAC Setting in Eclipse Preferences does not persist across Eclipse restart
Product: z_Archived Reporter: Jonathan West <jgwest>
Component: TPTPAssignee: Bing Xu <xubing>
Status: CLOSED FIXED QA Contact:
Severity: major    
Priority: P1 CC: jkubasta, kendricw
Version: unspecifiedKeywords: plan
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard: closed460

Description Jonathan West CLA 2007-07-19 12:50:03 EDT
Build ID: I20070625-1500

Steps To Reproduce:
1. Observed using Windows IBM Java 1.4.2 SR8:
java version "1.4.2"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2)
Classic VM (build 1.4.2, J2RE 1.4.2 IBM Windows 32 build cn142-20070317 (SR8) (JIT enabled: jitc))

2. Download Eclipse, EMF SDK 2.2.4, and 'All TPTP Plugins' runtime from 4.4.01 TPTP download site. Install.

3. Ensure external agent controller is not running.

3. Start Eclipse and create a new workspace.

4. Open Preferences -> Agent Controller -> Integrated Agent Controller. Click 'Disable' radio button. Click Apply. Click Ok.

5. Reopen Preferences -> Agent Controller -> Integrated Agent Controller. Ensure the start IAC radio button is still at disable. Click Ok.

6. Close Eclipse. Restart Eclipse w/ same workspace.

7. Reopen Preferences -> Agent Controller -> Integrated Agent Controller. 

As you can see, the disable setting has not persisted, as the 'Start/Stop IAC as needed' Enable radio button is back to being selected.

I've been able to reproduce this on two separate machines using the above steps.

More information:
Using TPTP release 4.4.0.1. Have also had success reproducing it with IBM Java 1.5 and EMF 2.3 instead of above.
Comment 1 Eugene Chan CLA 2007-07-19 12:58:44 EDT
Reassign to component owner.
Comment 2 Bing Xu CLA 2007-10-19 13:21:25 EDT
Test with TPTP 4.4.0.3 and TPTP 4.5 code.  Reproduced in 4.4.0.3 but not 4.5.  Further investigation found that this has been fixed indirectly by AdminPlugin.java 1.2 submitted by jptoomey for bug 200027.   

The bug is caused by AutoStartStop.stopIAC(), in which a NullPointerException is thrown when AC is disabled in preference, so the preference is not saved in the file.    When AC is enabled, no NullPointException is thrown so everyting is saved.
Comment 3 Bing Xu CLA 2007-10-19 13:23:11 EDT
Fix for bug 200027 fixed this in 4.5 indirectly.  
Comment 4 Paul Slauenwhite CLA 2007-12-19 07:59:00 EST
Please change the target to the 4.5 iteration when this Bugzilla was resolved.
Comment 5 Paul Slauenwhite CLA 2009-06-30 12:09:51 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.