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

Bug 197177

Summary: Eclipse Security Certificate functions throw error when keystore.dat is a zero-byte file.
Product: z_Archived Reporter: Jonathan West <jgwest>
Component: TPTPAssignee: Bing Xu <xubing>
Status: CLOSED FIXED QA Contact:
Severity: major    
Priority: P1 CC: jkubasta, samwai
Version: unspecifiedKeywords: plan
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard: closed460
Attachments:
Description Flags
Error Message Screenshot
none
Eclipse patch file for the fix. none

Description Jonathan West CLA 2007-07-19 13:23:01 EDT
1. Start Eclipse and create a new workspace.
2. Move to Preferences->Agent Controller->Security Certificate. Click Apply. Close window. Close eclipse.
3. Open the workspace directory, and replace .metadata\.plugins\org.eclipse.tptp.platform.common.ui\keystore.dat with a zero byte file. 
4. Reopen eclipse with the workspace. Select Preferences->Agent Controller->Security Certificate.

An error message dialog pops up, 'Error Message: IWAT0108E Failed to load key store' along with additional text and an EOF exception. Same error message also pops up under the profiling dialog when attempting to use security. I've attached the screenshot of the full error message. This defect occurs in real world use as at times Eclipse has created this zero-byte keystore file in my workspace on its own. 

Using 4.4.0.1 release and IBM Java 1.5.
Comment 1 Jonathan West CLA 2007-07-19 13:28:15 EDT
Created attachment 74170 [details]
Error Message Screenshot
Comment 2 Bing Xu CLA 2007-10-19 16:31:32 EDT
Created attachment 80801 [details]
Eclipse patch file for the fix.
Comment 3 Bing Xu CLA 2007-10-19 16:33:48 EDT
Samson, can you review my patch attached.  Code base is 4.5.
Comment 4 Samson Wai CLA 2007-11-27 09:30:32 EST
Hi Bing. I have transferred my bugs to you for triage. Thanks.
Comment 5 Samson Wai CLA 2007-11-28 14:24:10 EST
The patch looks good.
Comment 6 jkubasta CLA 2008-01-09 09:06:57 EST
changes committed to Head
Comment 7 jkubasta CLA 2008-01-09 09:07:28 EST
Jonathan, please verify the fix with tomorow's build. Thanks.
Comment 8 Jonathan West CLA 2008-02-06 10:56:58 EST
Realized I didn't mark bug as VERIFIED after confirming the fix.
Comment 9 Paul Slauenwhite CLA 2009-06-30 12:09:52 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.