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

Bug 332698

Summary: When open eclipse, automatic opening of 1st file results in error. File is in a folder linked to by other projects.
Product: [WebTools] WTP Java EE Tools Reporter: Jeffrey Wexler <bsgcic1776>
Component: jst.j2eeAssignee: jst.j2ee <jst.j2ee-inbox>
Status: CLOSED DUPLICATE QA Contact: Chuck Bridgham <cbridgha>
Severity: normal    
Priority: P3 CC: thatnitind
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
Screenshot of editor pane with file with error on open
none
Error details none

Description Jeffrey Wexler CLA 2010-12-15 20:00:04 EST
Build Identifier: 20100917-0705

Please see attached screenshot and error details.
This seems to happen every time. When closed eclipse last, there were a combination of 9 .xhtml and .java files that had been open. When started eclipse, the 1st one (an .xhtml file) did not open correctly. Instead, there was a round red circle with a horizontal white bar through the middle and the words: "Could not open the editor: An unexpected exception was thrown and a Details button is displayed. The page (as well as all the others that are opened) had been opened from its original location but is in a folder that is linked to by 4 projects. The other pages opened fine; just the 1st one did not. In order to successfully open that 1st file with the error message, must first close it and then re-open it.

Please see attachment for error messages after clicking on the details button.

Reproducible: Always

Steps to Reproduce:
1.Create multiple projects.
2.Create folders in one or more of the projects and link to those folders from the other projects
3.Create multiple files in the folders created in #2
4.Close eclipse with many of the files still open (e.g., 9 files)
5.Shutdown the computer, pause and restart (possibly not necessary)
6.Start eclipse
Comment 1 Jeffrey Wexler CLA 2010-12-15 20:01:40 EST
Created attachment 185281 [details]
Screenshot of editor pane with file with error on open
Comment 2 Jeffrey Wexler CLA 2010-12-15 20:02:16 EST
Created attachment 185282 [details]
Error details
Comment 3 Nitin Dahyabhai CLA 2010-12-15 20:10:32 EST

*** This bug has been marked as a duplicate of bug 329821 ***
Comment 4 Jeffrey Wexler CLA 2010-12-16 14:39:36 EST
I understand that this has been marked as a duplicate of 329821. Just wanted to add another observation in case it might be helpful:
If the 1st open file (the one furthest to the left in the editor pane) is a .css file, then the error will not occur.