Bug 40734 - Java Model Exception "<project> does not exist" when creating a new project
Summary: Java Model Exception "<project> does not exist" when creating a new project
Status: RESOLVED DUPLICATE of bug 40322
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 3.0 M3   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-07-24 16:59 EDT by Albert Lin CLA
Modified: 2003-07-25 05:32 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 Albert Lin CLA 2003-07-24 16:59:37 EDT
Using Eclipse 3.0 M2

This bug seems to occur on both Windows XP and Mac OS X.

This bug does NOT seem to occur on Eclipse 2.1.1 or Eclipse 3.0 M1.

I have an existing set of code that I've checked out using CVS (using the CVS 
command-line, not using Eclipse).  When I try to create a new Java project 
whose project contents point to this existing directory, I get an error when 
creating the project.  For some reason, this error only seems to occur when I 
change the project contents to an existing directory under CVS control; other 
directories work fine.  But I'm not 100% sure that it is the CVS control that 
is the problem or something else.

1) Go to File > New Project.  Select Java project.  Click Next.

2) Enter a project name (I used "sonata-common").  Uncheck the "Use default" 
checkbox under Project Contents, and instead enter the existing directory.  
Click next.

3) The following dialog appears:
An error occurred while creating project.  Check log for details.  Reason: 
sonata-common does not exist.

The exception from the log is:

!SESSION Jul 24, 2003 13:28:58.35 ---------------------------------------------
-
java.version=1.4.1_02
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Command-line arguments: -os win32 -ws win32 -arch x86 -install file:C:/Program 
Files/eclipse3m2/
!ENTRY org.eclipse.jdt.ui 4 10001 Jul 24, 2003 13:28:58.35
!MESSAGE Internal Error
!STACK 1
Java Model Exception: Java Model Status [sonata-common does not exist.]
	at org.eclipse.jdt.internal.core.JavaElement.newNotPresentException
(JavaElement.java:437)
	at 
org.eclipse.jdt.internal.core.JavaModelManager.getPerProjectInfoCheckExistence
(JavaModelManager.java:848)
	at org.eclipse.jdt.internal.core.JavaProject.getPerProjectInfo
(JavaProject.java:1544)
	at org.eclipse.jdt.internal.core.JavaProject.getResolvedClasspath
(JavaProject.java:1635)
	at org.eclipse.jdt.internal.core.JavaProject.getResolvedClasspath
(JavaProject.java:1621)
	at org.eclipse.jdt.internal.core.JavaProject.buildStructure
(JavaProject.java:217)
	at org.eclipse.jdt.internal.core.Openable.generateInfos
(Openable.java:198)
	at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed
(JavaElement.java:448)
	at org.eclipse.jdt.internal.core.JavaElement.getElementInfo
(JavaElement.java:269)
	at org.eclipse.jdt.internal.core.JavaElement.getElementInfo
(JavaElement.java:255)
	at org.eclipse.jdt.internal.core.JavaProject.getJavaProjectElementInfo
(JavaProject.java:1282)
	at org.eclipse.jdt.internal.core.JavaProject.getNameLookup
(JavaProject.java:1290)
	at org.eclipse.jdt.internal.core.CompilationUnit.reconcile
(CompilationUnit.java:1004)
	at org.eclipse.jdt.internal.core.CompilationUnit.reconcile
(CompilationUnit.java:988)
	at org.eclipse.jdt.internal.core.CompilationUnit.reconcile
(CompilationUnit.java:981)
	at 
org.eclipse.jdt.internal.ui.wizards.ClassPathDetector.visitCompilationUnit
(ClassPathDetector.java:216)
	at org.eclipse.jdt.internal.ui.wizards.ClassPathDetector.visit
(ClassPathDetector.java:273)
	at org.eclipse.core.internal.resources.Resource$1.visitElement
(Resource.java:50)
	at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration
(ElementTreeIterator.java:76)
	at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration
(ElementTreeIterator.java:80)
	at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration
(ElementTreeIterator.java:80)
	at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration
(ElementTreeIterator.java:80)
	at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration
(ElementTreeIterator.java:80)
	at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration
(ElementTreeIterator.java:80)
	at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration
(ElementTreeIterator.java:80)
	at org.eclipse.core.internal.watson.ElementTreeIterator.iterate
(ElementTreeIterator.java:119)
	at org.eclipse.core.internal.resources.Resource.accept
(Resource.java:60)
	at org.eclipse.jdt.internal.ui.wizards.ClassPathDetector.<init>
(ClassPathDetector.java:62)
	at 
org.eclipse.jdt.internal.ui.wizards.NewProjectCreationWizardPage.updateProject
(NewProjectCreationWizardPage.java:124)
	at 
org.eclipse.jdt.internal.ui.wizards.NewProjectCreationWizardPage$1.run
(NewProjectCreationWizardPage.java:86)
	at org.eclipse.jface.operation.ModalContext.runInCurrentThread
(ModalContext.java:302)
	at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:252)
	at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:758)
	at 
org.eclipse.jdt.internal.ui.wizards.NewProjectCreationWizardPage.changeToNewPro
ject(NewProjectCreationWizardPage.java:94)
	at 
org.eclipse.jdt.internal.ui.wizards.NewProjectCreationWizardPage.setVisible
(NewProjectCreationWizardPage.java:64)
	at org.eclipse.jface.wizard.WizardDialog.updateForPage
(WizardDialog.java:959)
	at org.eclipse.jface.wizard.WizardDialog.access$1
(WizardDialog.java:940)
	at org.eclipse.jface.wizard.WizardDialog$3.run(WizardDialog.java:929)
	at org.eclipse.swt.custom.BusyIndicator.showWhile
(BusyIndicator.java:84)
	at org.eclipse.jface.wizard.WizardDialog.showPage
(WizardDialog.java:927)
	at org.eclipse.jface.wizard.WizardDialog.nextPressed
(WizardDialog.java:684)
	at org.eclipse.jface.wizard.WizardDialog.buttonPressed
(WizardDialog.java:316)
	at org.eclipse.jface.dialogs.Dialog$1.widgetSelected(Dialog.java:423)
	at org.eclipse.swt.widgets.TypedListener.handleEvent
(TypedListener.java:89)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:848)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2188)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1878)
	at org.eclipse.jface.window.Window.runEventLoop(Window.java:583)
	at org.eclipse.jface.window.Window.open(Window.java:563)
	at org.eclipse.ui.actions.NewProjectAction.run
(NewProjectAction.java:107)
	at org.eclipse.jface.action.Action.runWithEvent(Action.java:842)
	at 
org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection
(ActionContributionItem.java:542)
	at org.eclipse.jface.action.ActionContributionItem.access$4
(ActionContributionItem.java:496)
	at org.eclipse.jface.action.ActionContributionItem$6.handleEvent
(ActionContributionItem.java:468)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:848)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2188)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1878)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1680)
	at org.eclipse.ui.internal.Workbench.run(Workbench.java:1663)
	at org.eclipse.core.internal.boot.InternalBootLoader.run
(InternalBootLoader.java:858)
	at org.eclipse.core.boot.BootLoader.run(BootLoader.java:461)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:324)
	at org.eclipse.core.launcher.Main.basicRun(Main.java:291)
	at org.eclipse.core.launcher.Main.run(Main.java:747)
	at org.eclipse.core.launcher.Main.main(Main.java:583)
!ENTRY org.eclipse.jdt.core 4 969 Jul 24, 2003 13:28:58.35
!MESSAGE sonata-common does not exist.
!ENTRY org.eclipse.jdt.ui 4 10001 Jul 24, 2003 13:29:01.629
!MESSAGE Internal Error
!STACK 0
java.lang.reflect.InvocationTargetException
	at org.eclipse.jface.operation.ModalContext.runInCurrentThread
(ModalContext.java:313)
	at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:252)
	at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:758)
	at org.eclipse.jdt.internal.ui.wizards.NewElementWizard.performFinish
(NewElementWizard.java:96)
	at org.eclipse.jface.wizard.WizardDialog.finishPressed
(WizardDialog.java:608)
	at org.eclipse.jface.wizard.WizardDialog.buttonPressed
(WizardDialog.java:321)
	at org.eclipse.jface.dialogs.Dialog$1.widgetSelected(Dialog.java:423)
	at org.eclipse.swt.widgets.TypedListener.handleEvent
(TypedListener.java:89)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:848)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2188)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1878)
	at org.eclipse.jface.window.Window.runEventLoop(Window.java:583)
	at org.eclipse.jface.window.Window.open(Window.java:563)
	at org.eclipse.ui.actions.NewProjectAction.run
(NewProjectAction.java:107)
	at org.eclipse.jface.action.Action.runWithEvent(Action.java:842)
	at 
org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection
(ActionContributionItem.java:542)
	at org.eclipse.jface.action.ActionContributionItem.access$4
(ActionContributionItem.java:496)
	at org.eclipse.jface.action.ActionContributionItem$6.handleEvent
(ActionContributionItem.java:468)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:848)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2188)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1878)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1680)
	at org.eclipse.ui.internal.Workbench.run(Workbench.java:1663)
	at org.eclipse.core.internal.boot.InternalBootLoader.run
(InternalBootLoader.java:858)
	at org.eclipse.core.boot.BootLoader.run(BootLoader.java:461)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:324)
	at org.eclipse.core.launcher.Main.basicRun(Main.java:291)
	at org.eclipse.core.launcher.Main.run(Main.java:747)
	at org.eclipse.core.launcher.Main.main(Main.java:583)
Caused by: java.lang.NullPointerException
	at 
org.eclipse.jdt.ui.wizards.JavaCapabilityConfigurationPage.configureJavaProject
(JavaCapabilityConfigurationPage.java:200)
	at 
org.eclipse.jdt.internal.ui.wizards.NewProjectCreationWizardPage.performFinish
(NewProjectCreationWizardPage.java:146)
	at 
org.eclipse.jdt.internal.ui.wizards.NewProjectCreationWizard.finishPage
(NewProjectCreationWizard.java:62)
	at org.eclipse.jdt.internal.ui.wizards.NewElementWizard$2.run
(NewElementWizard.java:89)
	at org.eclipse.jdt.internal.core.BatchOperation.executeOperation
(BatchOperation.java:34)
	at org.eclipse.jdt.internal.core.JavaModelOperation.execute
(JavaModelOperation.java:365)
	at org.eclipse.jdt.internal.core.JavaModelOperation.run
(JavaModelOperation.java:704)
	at org.eclipse.core.internal.resources.Workspace.run
(Workspace.java:1595)
	at org.eclipse.jdt.core.JavaCore.run(JavaCore.java:2909)
	at org.eclipse.jdt.internal.ui.actions.WorkbenchRunnableAdapter.run
(WorkbenchRunnableAdapter.java:42)
	at org.eclipse.jface.operation.ModalContext.runInCurrentThread
(ModalContext.java:302)
	... 33 more
Comment 1 Albert Lin CLA 2003-07-24 17:00:21 EDT
Build id: 200307181617
Comment 2 Philipe Mulet CLA 2003-07-25 05:32:28 EDT

*** This bug has been marked as a duplicate of 40322 ***