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

Bug 343893

Summary: Adding more than one existing project gives overlapping exception
Product: [Eclipse Project] Platform Reporter: Henry <hleong25>
Component: ResourcesAssignee: Platform-Resources-Inbox <platform-resources-inbox>
Status: RESOLVED NOT_ECLIPSE QA Contact:
Severity: normal    
Priority: P3 CC: Michael_Rennie
Version: 3.6.2   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
Screenshot none

Description Henry CLA 2011-04-26 14:41:37 EDT
I'm taking an Android class and the professor gives sample projects.  I would download them and add them to the workspace.  The first one works fine, but if I add another, it will fail and give an "overlap" error.  The workaround I found is to exit Eclipse, start Eclipse and readd the other project.  I can provide a screenshot of the error if you want.


-- Configuration Details --
Product: Eclipse 1.3.2.20110218-0812 (org.eclipse.epp.package.java.product)
Installed Features:
 org.eclipse.platform 3.6.2.r362_v20110210-9gF78Gs1FrIGnHDHWkEcopoN8AmxeZflGDGKQi
Comment 1 Michael Rennie CLA 2011-04-26 14:58:25 EDT
Can you attach the exception?
Comment 2 Henry CLA 2011-04-26 16:28:05 EDT
Created attachment 194102 [details]
Screenshot

I tried to get the exception message, but all I can get is the screenshot.
Comment 3 Henry CLA 2011-04-26 16:31:40 EDT
This is the exception.

java.lang.reflect.InvocationTargetException                                                                                                                                                                                                  
        at com.android.ide.eclipse.adt.internal.wizards.newproject.NewProjectWizard.createProjectAsync(NewProjectWizard.java:595)                                                                                                            
        at com.android.ide.eclipse.adt.internal.wizards.newproject.NewProjectWizard.access$0(NewProjectWizard.java:562)                                                                                                                      
        at com.android.ide.eclipse.adt.internal.wizards.newproject.NewProjectWizard$1.execute(NewProjectWizard.java:379)                                                                                                                     
        at org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(WorkspaceModifyOperation.java:106)                                                                                                                                          
        at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1975)                                                                                                                                                            
        at org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOperation.java:118)                                                                                                                                            
        at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)                                                                                                                                            
Caused by: org.eclipse.core.internal.resources.ResourceException: Invalid project description.                                                                                                                                               
        at org.eclipse.core.internal.resources.Project.checkDescription(Project.java:162)                                                                                                                                                    
        at org.eclipse.core.internal.resources.Project.assertCreateRequirements(Project.java:52)                                                                                                                                             
        at org.eclipse.core.internal.resources.Project.create(Project.java:274)                                                                                                                                                              
        at org.eclipse.core.internal.resources.Project.create(Project.java:256)                                                                                                                                                              
        at com.android.ide.eclipse.adt.internal.wizards.newproject.NewProjectWizard.createEclipseProject(NewProjectWizard.java:629)
        at com.android.ide.eclipse.adt.internal.wizards.newproject.NewProjectWizard.createProjectAsync(NewProjectWizard.java:571)
        ... 6 more
Comment 4 John Arthorne CLA 2011-04-26 16:57:03 EDT
This failure is specific to the Android SDK. This works fine in plain Eclipse SDK. Please report the failure to the Android SDK project, giving this stack trace:

Caused by: org.eclipse.core.internal.resources.ResourceException: Invalid
project description.                                                            
        at
org.eclipse.core.internal.resources.Project.checkDescription(Project.java:162)  
        at
org.eclipse.core.internal.resources.Project.assertCreateRequirements(Project.java:52) 
        at org.eclipse.core.internal.resources.Project.create(Project.java:274) 
        at org.eclipse.core.internal.resources.Project.create(Project.java:256) 
        at
com.android.ide.eclipse.adt.internal.wizards.newproject.NewProjectWizard.createEclipseProject(NewProjectWizard.java:629)
        at
com.android.ide.eclipse.adt.internal.wizards.newproject.NewProjectWizard.createProjectAsync(NewProjectWizard.java:571)
        ... 6 more