Bug 7528 - IlegalArgumentException in path canonicalisation
Summary: IlegalArgumentException in path canonicalisation
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0   Edit
Hardware: PC Linux
: P1 normal (vote)
Target Milestone: 2.0 M2   Edit
Assignee: Jerome Lanneluc CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 9386 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-01-14 10:18 EST by Philipe Mulet CLA
Modified: 2002-02-11 10:22 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Philipe Mulet CLA 2002-01-14 10:18:12 EST
Hi all,

I just installed eclipse and I'm trying to create a new Java project but 
I get an error every time.  Can someone shed some light on this?

System info:
RedHat 7.2 x86 (running OpenMotif instead of Lesstif)
eclipse 20011219-linux-motif
IBM Java2 SDK 1.3
eclipse installed in ~/eclipse

It spits out the following stack trace when I create a project:

java.lang.IllegalArgumentException:
at org.eclipse.core.internal.runtime.Assert.isLegal(Assert.java:50)
at org.eclipse.core.internal.runtime.Assert.isLegal(Assert.java:35)
at org.eclipse.core.runtime.Path.removeFirstSegments(Path.java:691)
at 
org.eclipse.jdt.internal.core.JavaProject.canonicalizedPath
(JavaProject.java:125)
at org.eclipse.jdt.core.JavaCore.newLibraryEntry(JavaCore.java:561)
at org.eclipse.jdt.core.JavaCore.getResolvedClasspathEntry(JavaCore.java:402)
at 
org.eclipse.jdt.internal.core.JavaProject.projectPrerequisites
(JavaProject.java:1491)
at 
org.eclipse.jdt.internal.core.JavaProject.hasClasspathCycle
(JavaProject.java:1303)
at 
org.eclipse.jdt.internal.ui.wizards.buildpaths.BuildPathsBlock.updateClassPathSt
atus(BuildPathsBlock.java:473)
at 
org.eclipse.jdt.internal.ui.wizards.buildpaths.BuildPathsBlock.buildPathDialogFi
eldChanged(BuildPathsBlock.java:421)
at 
org.eclipse.jdt.internal.ui.wizards.buildpaths.BuildPathsBlock.access$1
(BuildPathsBlock.java:419)
at 
org.eclipse.jdt.internal.ui.wizards.buildpaths.BuildPathsBlock$BuildPathAdapter.
dialogFieldChanged(BuildPathsBlock.java:406)
at 
org.eclipse.jdt.internal.ui.wizards.dialogfields.DialogField.dialogFieldChanged
(DialogField.java:65)
at 
org.eclipse.jdt.internal.ui.wizards.dialogfields.ListDialogField.dialogFieldChan
ged(ListDialogField.java:367)
at 
org.eclipse.jdt.internal.ui.wizards.dialogfields.CheckedListDialogField.dialogFi
eldChanged(CheckedListDialogField.java:101)
at 
org.eclipse.jdt.internal.ui.wizards.dialogfields.ListDialogField.setElements
(ListDialogField.java:445)
at 
org.eclipse.jdt.internal.ui.wizards.buildpaths.BuildPathsBlock.init
(BuildPathsBlock.java:322)
at 
org.eclipse.jdt.ui.wizards.NewJavaProjectWizardPage.initBuildPaths
(NewJavaProjectWizardPage.java:206)
at 
org.eclipse.jdt.ui.wizards.NewJavaProjectWizardPage.setVisible
(NewJavaProjectWizardPage.java:219)
at org.eclipse.jface.wizard.WizardDialog.showPage(WizardDialog.java:882)
at org.eclipse.jface.wizard.WizardDialog.nextPressed(WizardDialog.java:646)
at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:307)
at org.eclipse.jface.dialogs.Dialog$1.widgetSelected(Dialog.java:344)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:85)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java(Compiled 
Code))
at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:489)
at 
org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java(Compiled 
Code))
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java(Compiled 
Code))
at org.eclipse.jface.window.Window.runEventLoop(Window.java:536)
at org.eclipse.jface.window.Window.open(Window.java:523)
at org.eclipse.ui.actions.NewWizardAction.run(NewWizardAction.java:74)
at 
org.eclipse.ui.internal.NewWizardDropDownAction.run
(NewWizardDropDownAction.java:69)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:452)
at 
org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection
(ActionContributionItem.java:407)
at 
org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent
(ActionContributionItem.java:361)
at 
org.eclipse.jface.action.ActionContributionItem.access$0
(ActionContributionItem.java:352)
at 
org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent
(ActionContributionItem.java:47)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java(Compiled 
Code))
at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:489)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1569)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1423)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:815)
at org.eclipse.ui.internal.Workbench.run(Workbench.java:798)
at 
org.eclipse.core.internal.boot.InternalBootLoader.run
(InternalBootLoader.java:821)
at org.eclipse.core.boot.BootLoader.run(BootLoader.java:285)
at java.lang.reflect.Method.invoke(Native Method)
at org.eclipse.core.launcher.Main.basicRun(Main.java:151)
at org.eclipse.core.launcher.Main.run(Main.java:502)
at org.eclipse.core.launcher.Main.main(Main.java:362)
Comment 1 Joshua Toub CLA 2002-01-14 19:49:32 EST
I get the same exception.  I get it as soon as I click 'Next' or 'Finish' after
entering a project name in the 'New Java Project' wizard.  It does not matter if
I use the default path or specify my own.  This happens in both the 12/19 and
1/9 builds with both Motif and GTK.  I am also running RH Linux 7.2 with the IBM
1.3 SDK.  My installation directory is /usr/local/eclipse.

Comment 2 Jerome Lanneluc CLA 2002-01-15 04:52:04 EST
Joshua, could you please tell me what your project setup is, i.e.
1. Is your project under the workspace root?
2. If not, what is the path to your project?
3. Do you have external jars in the project's build path?
4. Do you use sym-links?
Comment 3 Jerome Lanneluc CLA 2002-01-15 05:48:31 EST
Added protection in JavaProject.canonicalizedPath(IPath), but would still like 
to undertstand the test case.
Comment 4 Philipe Mulet CLA 2002-02-11 10:22:34 EST
*** Bug 9386 has been marked as a duplicate of this bug. ***