Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 327206 - AddMappedOutputFoldersParticipant failing when deleting a deployed project
Summary: AddMappedOutputFoldersParticipant failing when deleting a deployed project
Status: RESOLVED FIXED
Alias: None
Product: WTP Common Tools
Classification: WebTools
Component: wst.common (show other bugs)
Version: 3.2   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 3.2.3   Edit
Assignee: Rob Stryker CLA
QA Contact: Carl Anderson CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-07 06:46 EDT by Rob Stryker CLA
Modified: 2010-11-19 03:44 EST (History)
0 users

See Also:
ccc: review+


Attachments
Patch checks that classpath file and project exist (3.73 KB, patch)
2010-10-07 08:01 EDT, Rob Stryker CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Rob Stryker CLA 2010-10-07 06:46:27 EDT
-create a new dynamic web project for JBossAS-6.0M5 (runtime shouldn't matter)
-create some dummy index.jsp file
-run the project on the server
-delete the project including its sources

=> ide log says:

java.io.IOException: Cannot obtain a location URI for L/h/.classpath
at org.eclipse.jdt.internal.core.JavaProject.readFileEntriesWithException(JavaProject.java:2427)
at org.eclipse.jdt.internal.core.JavaProject.readFileEntries(JavaProject.java:2461)
at org.eclipse.jdt.internal.core.JavaProject.readRawClasspath(JavaProject.java:2499)
at org.eclipse.jst.common.jdt.internal.javalite.JavaProjectLite.readRawClasspath(JavaProjectLite.java:116)
at org.eclipse.jst.common.internal.modulecore.AddMappedOutputFoldersParticipant.getMappedJavaOutputContainers(AddMappedOutputFoldersParticipant.java:94)
at org.eclipse.jst.common.internal.modulecore.AddMappedOutputFoldersParticipant.finalize(AddMappedOutputFoldersParticipant.java:74)
at org.eclipse.wst.common.componentcore.internal.flat.FlatVirtualComponent.runFinalizations(FlatVirtualComponent.java:153)
at org.eclipse.wst.common.componentcore.internal.flat.FlatVirtualComponent.cacheResources(FlatVirtualComponent.java:122)
at org.eclipse.wst.common.componentcore.internal.flat.FlatVirtualComponent.getChildModules(FlatVirtualComponent.java:111)
at org.eclipse.wst.web.internal.deployables.FlatComponentDeployable.getExportModelChildren(FlatComponentDeployable.java:172)
at org.eclipse.wst.web.internal.deployables.FlatComponentDeployable.getModules(FlatComponentDeployable.java:183)

Need to check project still exists in this particular participant to prevent such exceptions.
Comment 1 Rob Stryker CLA 2010-10-07 08:01:36 EDT
Created attachment 180415 [details]
Patch checks that classpath file and project exist
Comment 2 Rob Stryker CLA 2010-10-07 08:02:58 EDT
Looking for some delicious approvals
Comment 3 Carl Anderson CLA 2010-11-01 14:21:40 EDT
Approved.
Comment 4 Rob Stryker CLA 2010-11-19 03:44:04 EST
seems i committed this after the approval. Great.