Bug 92144 - [index] FileNotFoundException while deleting project
Summary: [index] FileNotFoundException while deleting project
Status: RESOLVED INVALID
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.1 M7   Edit
Assignee: Kent Johnson CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-20 16:01 EDT by Frederic Fusier CLA
Modified: 2005-04-29 08:54 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Frederic Fusier CLA 2005-04-20 16:01:29 EDT
Using HEAD.

Here's scenario to get this exception:
1) Check-out one project from CVS (org.eclipse.ui.workbench in my sample)
2) When check-out is done close the project. 
3) Now reopen it and delete it *immediately*
4) Look at console, you get lot of FNFE display in it:
...
java.io.FileNotFoundException:
D:\usr\OTI\workspaces\tests\search\Search15\org.eclipse.ui.workbench\Eclipse
UI\org\eclipse\ui\internal\PageSelectionService.java (The system cannot find the
path specified)
	at java.io.FileInputStream.open(Native Method)
	at java.io.FileInputStream.<init>(FileInputStream.java:106)
	at org.eclipse.jdt.internal.compiler.util.Util.getFileCharContent(Util.java:69)
	at
org.eclipse.jdt.internal.core.search.JavaSearchDocument.getCharContents(JavaSearchDocument.java:53)
	at
org.eclipse.jdt.internal.core.search.indexing.SourceIndexer.indexDocument(SourceIndexer.java:73)
	at
org.eclipse.jdt.internal.core.search.JavaSearchParticipant.indexDocument(JavaSearchParticipant.java:72)
	at
org.eclipse.jdt.internal.core.search.indexing.IndexManager.indexDocument(IndexManager.java:289)
	at
org.eclipse.jdt.internal.core.search.indexing.IndexManager$1.execute(IndexManager.java:599)
	at
org.eclipse.jdt.internal.core.search.processing.JobManager.run(JobManager.java:369)
	at java.lang.Thread.run(Thread.java:534)
...
Comment 1 Kent Johnson CLA 2005-04-25 12:33:50 EDT
Did you have verbose mode on?

This is the code for JavaSearchDocument.getCharContents()

public char[] getCharContents() {
  if (this.charContents != null) return this.charContents;
  try {
    return Util.getFileCharContent(getLocation().toFile(), getEncoding());
  } catch (IOException e) {
  if (BasicSearchEngine.VERBOSE || JobManager.VERBOSE) {
    e.printStackTrace();
  }
  return null;
  }
}
Comment 2 Frederic Fusier CLA 2005-04-25 12:56:59 EDT
Yes, I did... Sorry
Comment 3 DJ Houghton CLA 2005-04-29 08:54:46 EDT
*** Bug 93241 has been marked as a duplicate of this bug. ***