Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 316043 - FileNotFoundException validating a project after deleting java files
Summary: FileNotFoundException validating a project after deleting java files
Status: CLOSED INVALID
Alias: None
Product: Dali JPA Tools
Classification: WebTools
Component: General (show other bugs)
Version: 2.3   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.1   Edit
Assignee: Karen Butzke CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-07 14:34 EDT by Karen Butzke CLA
Modified: 2011-06-15 08:54 EDT (History)
1 user (show)

See Also:


Attachments
example project (9.48 KB, application/zip)
2010-06-07 14:34 EDT, Karen Butzke CLA
no flags Details
3 exception stack trace (14.25 KB, text/plain)
2010-06-07 14:35 EDT, Karen Butzke CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Karen Butzke CLA 2010-06-07 14:34:42 EDT
Created attachment 171315 [details]
example project

I have not been able to simplify this problem, but with the attached project and the following steps I can reproduce this every time.

1. Import the attached project and set up the JPA user library properly
2. Open the Address.java and then the Child.java in the JPA perspective
3. In the Project Explorer select Child, ChildPK, and Parent and delete them
4. Edit and save the Address.java, doesn't matter what you change.

You will get a FileNotFoundException and 2 NPEs during validation.
Cleaning the project fixes the problems.

If you don't open the Child.java file or if you close it after opening it, the exceptions do not happen.
Comment 1 Karen Butzke CLA 2010-06-07 14:35:12 EDT
Created attachment 171316 [details]
3 exception stack trace
Comment 2 Karen Butzke CLA 2010-06-25 15:22:35 EDT
This smells like a leak, I'm going to investigate along with other leaks
Comment 3 Karen Butzke CLA 2011-06-15 08:54:30 EDT
I can no longer reproduce this issue in head code