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

Bug 327849

Summary: ServerPreferenceModifyListener producing "[Fatal Error]..." log output, but there are no actual perceived failures.
Product: [WebTools] WTP ServerTools Reporter: Ian Trimble <ian.trimble>
Component: wst.serverAssignee: Angel Vera <arvera>
Status: RESOLVED FIXED QA Contact: Angel Vera <arvera>
Severity: normal    
Priority: P2 CC: carlin.rogers, raghunathan.srinivasan
Version: 3.2   
Target Milestone: 3.2.3   
Hardware: PC   
OS: Windows XP   
URL: ORACLE_P3
See Also: https://git.eclipse.org/r/109013
Whiteboard:
Attachments:
Description Flags
v1.0 none

Description Ian Trimble CLA 2010-10-15 00:00:56 EDT
While running JSF Tools JUnit tests (many of the suites), org.eclipse.wst.server.core.internal.ServerPreferenceModifyListener.removeLockedServerRuntimePreference(Preferences) is writing "[Fatal Error] :1:1: Premature end of file." to syserr. However, there are no perceived failures or errors. It's possibly due to an attempted parse of a non-existent file (I debugged only so far). It may be harmless noise, I am not certain.
Comment 1 Angel Vera CLA 2010-10-15 09:52:40 EDT
This should be a harmless failure.. but I can see how a annoying it could be. This was introduced by bug# 267188
Comment 2 Ian Trimble CLA 2010-10-15 12:07:50 EDT
It does seem to be harmless - but repeatedly spitting "Fatal Error" to stderr doesn't give anyone a warm, fuzzy feeling.
Comment 3 Angel Vera CLA 2011-01-07 14:45:57 EST
Created attachment 186305 [details]
v1.0

The following patch will resolve the problem. 

I can simplify the code a little more and avoid creating the InputSource and StringReader, but to avoid regression testing for now (as I there no JUnit that cover this area) I will leave it as is and come back to it later.
Comment 4 Angel Vera CLA 2011-01-07 14:50:19 EST
changes committed to 32M
Comment 5 Angel Vera CLA 2011-01-07 14:51:38 EST
changes released to 32M
Comment 6 Angel Vera CLA 2011-01-07 15:07:12 EST
changes committed to HEAD
Comment 7 Angel Vera CLA 2011-01-07 15:11:26 EST
changes released to HEAD
Comment 8 Eclipse Genie CLA 2017-10-11 16:35:29 EDT
New Gerrit change created: https://git.eclipse.org/r/109013