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

Bug 321166

Summary: When importing a team project set (psf) over an existing workspace I get an error on different projects related to error while deleting resource
Product: [Eclipse Project] Platform Reporter: Paul Christopher <christopher.paul>
Component: CVSAssignee: platform-cvs-inbox <platform-cvs-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: christopher.paul, kazm, sptaszkiewicz, tomasz.zarna
Version: 3.4.2   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
PSF that fails none

Description Paul Christopher CLA 2010-07-28 14:32:26 EDT
Build Identifier: 20100617-1415

This leaves the project in question in an inconsistant state and detached from CVS.  In addition there is a stack trace in the logs.  This also fails in RAD 7.5.5.1 using eclipse 3.4.2 and I also downloaded 3.5.2.  All give the same error.  This feature used to work in RAD 7.0.0.7 which used an eclipse 2.x build.

!ENTRY org.eclipse.jst.j2ee 4 0 2010-07-28 11:23:01.176
!MESSAGE 
!STACK 0
java.lang.NullPointerException
	at org.eclipse.jst.j2ee.project.EarUtilities.getReferencingEARProjects(EarUtilities.java:193)
	at org.eclipse.jst.j2ee.componentcore.J2EEModuleVirtualComponent.calculateManifestReferences(J2EEModuleVirtualComponent.java:318)
	at org.eclipse.jst.j2ee.componentcore.J2EEModuleVirtualComponent.cacheManifestReferences(J2EEModuleVirtualComponent.java:308)
	at org.eclipse.jst.j2ee.componentcore.J2EEModuleVirtualComponent.getReferences(J2EEModuleVirtualComponent.java:151)
	at org.eclipse.jst.j2ee.internal.common.classpath.J2EEComponentClasspathContainer.requiresUpdate(J2EEComponentClasspathContainer.java:120)
	at org.eclipse.jst.j2ee.internal.common.classpath.J2EEComponentClasspathContainer.refresh(J2EEComponentClasspathContainer.java:426)
	at org.eclipse.jst.j2ee.internal.common.classpath.J2EEComponentClasspathUpdater$ModuleUpdateJob.processModules(J2EEComponentClasspathUpdater.java:302)
	at org.eclipse.jst.j2ee.internal.common.classpath.J2EEComponentClasspathUpdater$ModuleUpdateJob.access$4(J2EEComponentClasspathUpdater.java:286)
	at org.eclipse.jst.j2ee.internal.common.classpath.J2EEComponentClasspathUpdater$ModuleUpdateJob$1.run(J2EEComponentClasspathUpdater.java:327)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
	at org.eclipse.jst.j2ee.internal.common.classpath.J2EEComponentClasspathUpdater$ModuleUpdateJob.run(J2EEComponentClasspathUpdater.java:312)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

Reproducible: Always

Steps to Reproduce:
In our case we import 200+ projects
1. Import head of all projects into empty workspace.
2. Import a full psf of those projects (tagged).  Somehwere during the process it will fail with error deleting resource.
3.view the workspace and you will notice one of the projects are detached from CVS in an inconsistant state.
Comment 1 Paul Christopher CLA 2010-08-02 17:42:57 EDT
Created attachment 175734 [details]
PSF that fails

In addition these projects are setup in cvs repo as seperate modules of the cvsroot.
Comment 2 Tomasz Zarna CLA 2010-09-01 04:25:02 EDT

*** This bug has been marked as a duplicate of bug 301223 ***
Comment 3 John Arthorne CLA 2010-09-02 10:21:07 EDT
Was there any further information in the log in this case? It would be interesting to know what file it failed to delete, to see if there is a pattern here. The usual cause of this error is that some thread or process has an open file handle that is preventing the deletion.
Comment 4 Paul Christopher CLA 2010-09-02 11:11:59 EDT
Fails on different files.  Sometimes it fails on the first few projects and sometimes it fails 5-10 minutes down the road.

No pattern that I can see.

PC
Comment 5 Szymon Ptaszkiewicz CLA 2010-09-03 10:06:04 EDT
The stack trace given in comment 0 is not correct for this bug. Correct stack traces and screen shots are attached to bug 301223.