Community
Participate
Working Groups
Build 20020214 I renamed a project. After waiting for everythign to rebuild, I discovered that I'd made a mistake and tried to rename it again. Before prompting me for a new name, a dialog appeared indicating that an error had occurred. I exited and restarted Eclipse. The contents of my .log file are below: Log: Fri Mar 15 16:57:28 EST 2002 4 org.eclipse.jdt.ui 1 Internal Error Java Model Exception: Java Model Status [Name collision.] Stack trace: java/lang/Throwable.<init>()V java/lang/Throwable.<init>(Ljava/lang/String;)V org/eclipse/core/runtime/CoreException.<init> (Lorg/eclipse/core/runtime/IStatus;)V org/eclipse/jdt/core/JavaModelException.<init> (Lorg/eclipse/jdt/core/IJavaModelStatus;)V org/eclipse/jdt/internal/core/JavaModelOperation.execute()V org/eclipse/jdt/internal/core/JavaModelOperation.run (Lorg/eclipse/core/runtime/IProgressMonitor;)V org/eclipse/core/internal/resources/Workspace.run (Lorg/eclipse/core/resources/IWorkspaceRunnable;Lorg/eclipse/core/runtime/IProgr essMonitor;)V org/eclipse/jdt/internal/core/JavaModelManager.runOperation (Lorg/eclipse/jdt/internal/core/JavaModelOperation;Lorg/eclipse/core/runtime/IPr ogressMonitor;)V org/eclipse/jdt/internal/core/JavaElement.runOperation (Lorg/eclipse/jdt/internal/core/JavaModelOperation;Lorg/eclipse/core/runtime/IPr ogressMonitor;)V org/eclipse/jdt/internal/core/JavaProject.setRawClasspath ([Lorg/eclipse/jdt/core/IClasspathEntry;Lorg/eclipse/core/runtime/IPath;Lorg/ecl ipse/core/runtime/IProgressMonitor;ZZ[Lorg/eclipse/jdt/core/IClasspathEntry;)V org/eclipse/jdt/internal/core/JavaProject.setRawClasspath ([Lorg/eclipse/jdt/core/IClasspathEntry;Lorg/eclipse/core/runtime/IProgressMonit or;)V org/eclipse/jdt/internal/corext/refactoring/changes/RenameJavaProjectChange.modi fyClassPath (Lorg/eclipse/jdt/core/IJavaProject;Lorg/eclipse/core/runtime/IProgressMonitor;) V org/eclipse/jdt/internal/corext/refactoring/changes/RenameJavaProjectChange.modi fyClassPaths(Lorg/eclipse/core/runtime/IProgressMonitor;)V org/eclipse/jdt/internal/corext/refactoring/changes/RenameJavaProjectChange.doRe name(Lorg/eclipse/core/runtime/IProgressMonitor;)V org/eclipse/jdt/internal/corext/refactoring/AbstractJavaElementRenameChange.perf orm (Lorg/eclipse/jdt/internal/corext/refactoring/base/ChangeContext;Lorg/eclipse/co re/runtime/IProgressMonitor;)V org/eclipse/jdt/internal/ui/refactoring/PerformChangeOperation$1.execute (Lorg/eclipse/core/runtime/IProgressMonitor;)V org/eclipse/ui/actions/WorkspaceModifyOperation$1.run (Lorg/eclipse/core/runtime/IProgressMonitor;)V org/eclipse/core/internal/resources/Workspace.run (Lorg/eclipse/core/resources/IWorkspaceRunnable;Lorg/eclipse/core/runtime/IProgr essMonitor;)V org/eclipse/ui/actions/WorkspaceModifyOperation.run (Lorg/eclipse/core/runtime/IProgressMonitor;)V org/eclipse/jdt/internal/ui/refactoring/PerformChangeOperation.executeChange (Lorg/eclipse/core/runtime/IProgressMonitor;)V org/eclipse/jdt/internal/ui/refactoring/PerformChangeOperation.run (Lorg/eclipse/core/runtime/IProgressMonitor;)V org/eclipse/jface/operation/ModalContext.runInCurrentThread (Lorg/eclipse/jface/operation/IRunnableWithProgress;Lorg/eclipse/core/runtime/IP rogressMonitor;)V org/eclipse/jface/operation/ModalContext.run (Lorg/eclipse/jface/operation/IRunnableWithProgress;ZLorg/eclipse/core/runtime/I ProgressMonitor;Lorg/eclipse/swt/widgets/Display;)V org/eclipse/jface/dialogs/ProgressMonitorDialog.run (ZZLorg/eclipse/jface/operation/IRunnableWithProgress;)V org/eclipse/jdt/internal/ui/refactoring/actions/PerformRefactoringUtil.performRe factoring (Lorg/eclipse/jdt/internal/ui/refactoring/PerformChangeOperation;Lorg/eclipse/jd t/internal/corext/refactoring/base/Refactoring;)Z org/eclipse/jdt/internal/ui/refactoring/actions/RefactoringStarter.activate (Lorg/eclipse/jdt/internal/corext/refactoring/tagging/IRenameRefactoring;Ljava/l ang/String;Ljava/lang/String;ZLjava/lang/Object;)V org/eclipse/jdt/internal/ui/refactoring/RefactoringSupportFactory$RenameSupport. rename(Ljava/lang/Object;)V org/eclipse/jdt/internal/ui/reorg/RenameAction.run()V org/eclipse/jface/action/Action.runWithEvent(Lorg/eclipse/swt/widgets/Event;) V org/eclipse/jface/action/ActionContributionItem.handleWidgetSelection (Lorg/eclipse/swt/widgets/Event;)V org/eclipse/jface/action/ActionContributionItem.handleWidgetEvent (Lorg/eclipse/swt/widgets/Event;)V org/eclipse/jface/action/ActionContributionItem.access$0 (Lorg/eclipse/jface/action/ActionContributionItem;Lorg/eclipse/swt/widgets/Event ;)V org/eclipse/jface/action/ActionContributionItem$ActionListener.handleEvent (Lorg/eclipse/swt/widgets/Event;)V org/eclipse/swt/widgets/EventTable.sendEvent(Lorg/eclipse/swt/widgets/Event;) V org/eclipse/swt/widgets/Widget.notifyListeners (ILorg/eclipse/swt/widgets/Event;)V org/eclipse/swt/widgets/Display.runDeferredEvents()Z org/eclipse/swt/widgets/Display.readAndDispatch()Z org/eclipse/ui/internal/Workbench.runEventLoop()V org/eclipse/ui/internal/Workbench.run(Ljava/lang/Object;)Ljava/lang/Object; org/eclipse/core/internal/boot/InternalBootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;) Ljava/lang/Object; org/eclipse/core/boot/BootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;) Ljava/lang/Object; java/lang/reflect/AccessibleObject.invokeL(Ljava/lang/Object; [Ljava/lang/Object;)Ljava/lang/Object; java/lang/reflect/Method.invoke(Ljava/lang/Object;[Ljava/lang/Object;) Ljava/lang/Object; org/eclipse/core/launcher/Main.basicRun([Ljava/lang/String;) Ljava/lang/Object; org/eclipse/core/launcher/Main.run([Ljava/lang/String;)Ljava/lang/Object; org/eclipse/core/launcher/UIMain.main([Ljava/lang/String;)V 4 org.eclipse.jdt.core 977 Name collision. Log: Fri Mar 15 16:57:28 EST 2002 4 org.eclipse.jdt.ui 1 Internal Error java.lang.reflect.InvocationTargetException: java.lang.IllegalArgumentException Stack trace: java/lang/Throwable.<init>()V java/text/Format.upTo (Ljava/lang/String;Ljava/text/ParsePosition;Ljava/lang/StringBuffer;C)Z java/text/MessageFormat.applyPattern(Ljava/lang/String;)V java/text/MessageFormat.<init>(Ljava/lang/String;)V java/text/MessageFormat.format(Ljava/lang/String;[Ljava/lang/Object;) Ljava/lang/String; org/eclipse/jdt/internal/ui/refactoring/RefactoringMessages.getFormattedString (Ljava/lang/String;[Ljava/lang/String;)Ljava/lang/String; org/eclipse/jdt/internal/ui/refactoring/changes/ChangeExceptionHandler.handle (Lorg/eclipse/jdt/internal/corext/refactoring/base/ChangeContext;Lorg/eclipse/jd t/internal/corext/refactoring/base/IChange;Ljava/lang/Exception;)V org/eclipse/jdt/internal/corext/refactoring/base/Change.handleException (Lorg/eclipse/jdt/internal/corext/refactoring/base/ChangeContext;Ljava/lang/Exce ption;)V org/eclipse/jdt/internal/corext/refactoring/AbstractJavaElementRenameChange.perf orm (Lorg/eclipse/jdt/internal/corext/refactoring/base/ChangeContext;Lorg/eclipse/co re/runtime/IProgressMonitor;)V org/eclipse/jdt/internal/ui/refactoring/PerformChangeOperation$1.execute (Lorg/eclipse/core/runtime/IProgressMonitor;)V org/eclipse/ui/actions/WorkspaceModifyOperation$1.run (Lorg/eclipse/core/runtime/IProgressMonitor;)V org/eclipse/core/internal/resources/Workspace.run (Lorg/eclipse/core/resources/IWorkspaceRunnable;Lorg/eclipse/core/runtime/IProgr essMonitor;)V org/eclipse/ui/actions/WorkspaceModifyOperation.run (Lorg/eclipse/core/runtime/IProgressMonitor;)V org/eclipse/jdt/internal/ui/refactoring/PerformChangeOperation.executeChange (Lorg/eclipse/core/runtime/IProgressMonitor;)V org/eclipse/jdt/internal/ui/refactoring/PerformChangeOperation.run (Lorg/eclipse/core/runtime/IProgressMonitor;)V org/eclipse/jface/operation/ModalContext.runInCurrentThread (Lorg/eclipse/jface/operation/IRunnableWithProgress;Lorg/eclipse/core/runtime/IP rogressMonitor;)V org/eclipse/jface/operation/ModalContext.run (Lorg/eclipse/jface/operation/IRunnableWithProgress;ZLorg/eclipse/core/runtime/I ProgressMonitor;Lorg/eclipse/swt/widgets/Display;)V org/eclipse/jface/dialogs/ProgressMonitorDialog.run (ZZLorg/eclipse/jface/operation/IRunnableWithProgress;)V org/eclipse/jdt/internal/ui/refactoring/actions/PerformRefactoringUtil.performRe factoring (Lorg/eclipse/jdt/internal/ui/refactoring/PerformChangeOperation;Lorg/eclipse/jd t/internal/corext/refactoring/base/Refactoring;)Z org/eclipse/jdt/internal/ui/refactoring/actions/RefactoringStarter.activate (Lorg/eclipse/jdt/internal/corext/refactoring/tagging/IRenameRefactoring;Ljava/l ang/String;Ljava/lang/String;ZLjava/lang/Object;)V org/eclipse/jdt/internal/ui/refactoring/RefactoringSupportFactory$RenameSupport. rename(Ljava/lang/Object;)V org/eclipse/jdt/internal/ui/reorg/RenameAction.run()V org/eclipse/jface/action/Action.runWithEvent(Lorg/eclipse/swt/widgets/Event;) V org/eclipse/jface/action/ActionContributionItem.handleWidgetSelection (Lorg/eclipse/swt/widgets/Event;)V org/eclipse/jface/action/ActionContributionItem.handleWidgetEvent (Lorg/eclipse/swt/widgets/Event;)V org/eclipse/jface/action/ActionContributionItem.access$0 (Lorg/eclipse/jface/action/ActionContributionItem;Lorg/eclipse/swt/widgets/Event ;)V org/eclipse/jface/action/ActionContributionItem$ActionListener.handleEvent (Lorg/eclipse/swt/widgets/Event;)V org/eclipse/swt/widgets/EventTable.sendEvent(Lorg/eclipse/swt/widgets/Event;) V org/eclipse/swt/widgets/Widget.notifyListeners (ILorg/eclipse/swt/widgets/Event;)V org/eclipse/swt/widgets/Display.runDeferredEvents()Z org/eclipse/swt/widgets/Display.readAndDispatch()Z org/eclipse/ui/internal/Workbench.runEventLoop()V org/eclipse/ui/internal/Workbench.run(Ljava/lang/Object;)Ljava/lang/Object; org/eclipse/core/internal/boot/InternalBootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;) Ljava/lang/Object; org/eclipse/core/boot/BootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;) Ljava/lang/Object; java/lang/reflect/AccessibleObject.invokeL(Ljava/lang/Object; [Ljava/lang/Object;)Ljava/lang/Object; java/lang/reflect/Method.invoke(Ljava/lang/Object;[Ljava/lang/Object;) Ljava/lang/Object; org/eclipse/core/launcher/Main.basicRun([Ljava/lang/String;) Ljava/lang/Object; org/eclipse/core/launcher/Main.run([Ljava/lang/String;)Ljava/lang/Object; org/eclipse/core/launcher/UIMain.main([Ljava/lang/String;)V Log: Fri Mar 15 16:57:31 EST 2002 1 org.eclipse.core.resources 4 Unhandled exception caught in event loop. Log: Fri Mar 15 16:57:31 EST 2002 4 org.eclipse.ui 0 null argument; org.eclipse.jface.util.Assert$AssertionFailedException: null argument; Stack trace: java/lang/Throwable.<init>()V java/lang/Throwable.<init>(Ljava/lang/String;)V org/eclipse/jface/util/Assert$AssertionFailedException.<init> (Ljava/lang/String;)V org/eclipse/jface/util/Assert.isNotNull(Ljava/lang/Object;Ljava/lang/String;) V org/eclipse/jface/util/Assert.isNotNull(Ljava/lang/Object;)V org/eclipse/jface/viewers/StructuredSelection.<init>(Ljava/lang/Object;)V org/eclipse/jdt/internal/ui/refactoring/RefactoringSupportFactory$RenameSupport. selectAndReveal(Ljava/lang/Object;)V org/eclipse/jdt/internal/ui/refactoring/RefactoringSupportFactory$RenameSupport. rename(Ljava/lang/Object;)V org/eclipse/jdt/internal/ui/reorg/RenameAction.run()V org/eclipse/jface/action/Action.runWithEvent(Lorg/eclipse/swt/widgets/Event;) V org/eclipse/jface/action/ActionContributionItem.handleWidgetSelection (Lorg/eclipse/swt/widgets/Event;)V org/eclipse/jface/action/ActionContributionItem.handleWidgetEvent (Lorg/eclipse/swt/widgets/Event;)V org/eclipse/jface/action/ActionContributionItem.access$0 (Lorg/eclipse/jface/action/ActionContributionItem;Lorg/eclipse/swt/widgets/Event ;)V org/eclipse/jface/action/ActionContributionItem$ActionListener.handleEvent (Lorg/eclipse/swt/widgets/Event;)V org/eclipse/swt/widgets/EventTable.sendEvent(Lorg/eclipse/swt/widgets/Event;) V org/eclipse/swt/widgets/Widget.notifyListeners (ILorg/eclipse/swt/widgets/Event;)V org/eclipse/swt/widgets/Display.runDeferredEvents()Z org/eclipse/swt/widgets/Display.readAndDispatch()Z org/eclipse/ui/internal/Workbench.runEventLoop()V org/eclipse/ui/internal/Workbench.run(Ljava/lang/Object;)Ljava/lang/Object; org/eclipse/core/internal/boot/InternalBootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;) Ljava/lang/Object; org/eclipse/core/boot/BootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;) Ljava/lang/Object; java/lang/reflect/AccessibleObject.invokeL(Ljava/lang/Object; [Ljava/lang/Object;)Ljava/lang/Object; java/lang/reflect/Method.invoke(Ljava/lang/Object;[Ljava/lang/Object;) Ljava/lang/Object; org/eclipse/core/launcher/Main.basicRun([Ljava/lang/String;) Ljava/lang/Object; org/eclipse/core/launcher/Main.run([Ljava/lang/String;)Ljava/lang/Object; org/eclipse/core/launcher/UIMain.main([Ljava/lang/String;)V
Even after restarting the workspace I was unabel to rename the project (same error).
Cannot reproduce. Was able to create workspace with several projects and renamed them back and forth without any problem. Can you post your workspace somewhere and give us reproduceable steps ?
Which VM are you running ? Could this be another instance of a VM bug ?
J9 1.5. But since I can't repeat it anymore it's hard to say if it's an obscure VM bug or an obscure Java bug.
Closing, please reopen if able to reproduce.