Bug 158273 - renaming a class (and fully qualified string references) sometimes loses the plot
Summary: renaming a class (and fully qualified string references) sometimes loses the ...
Status: RESOLVED INVALID
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.2   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2006-09-22 05:07 EDT by Oisín CLA
Modified: 2009-08-30 02:06 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 Oisín CLA 2006-09-22 05:07:59 EDT
 
Comment 1 Oisín CLA 2006-09-22 05:10:01 EDT
Um.. shouldn't have pressed return there. Anyway. Here's the two stack traces. Hope this gives some useful info...

eclipse.buildId=M20060629-1905
java.version=1.5.0_06
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_IE
Command-line arguments:  -os linux -ws gtk -arch x86

Error
Fri Sep 22 10:03:36 IST 2006
message.error.find_markernet.sourceforge.pmd.ui.model.FileRecord@d66616Resource /cellumail-backend/src/main/java/com/cellusys/cellumail/backend/jms/MailProcessBean.java does not exist.

org.eclipse.core.internal.resources.ResourceException: Resource /cellumail-backend/src/main/java/com/cellusys/cellumail/backend/jms/MailProcessBean.java does not exist.
at org.eclipse.core.internal.resources.Resource.checkExists(Resource.java:311)
at org.eclipse.core.internal.resources.Resource.checkAccessible(Resource.java:187)
at org.eclipse.core.internal.resources.Resource.findMarkers(Resource.java:853)
at net.sourceforge.pmd.ui.model.FileRecord.findMarkers(FileRecord.java:95)
at net.sourceforge.pmd.ui.views.ViolationOutlineContentProvider.getElements(ViolationOutlineContentProvider.java:48)
at org.eclipse.jface.viewers.StructuredViewer.getRawChildren(StructuredViewer.java:927)
at org.eclipse.jface.viewers.TableViewer.getRawChildren(TableViewer.java:1279)
at org.eclipse.jface.viewers.StructuredViewer.getFilteredChildren(StructuredViewer.java:868)
at org.eclipse.jface.viewers.StructuredViewer.getSortedChildren(StructuredViewer.java:984)
at org.eclipse.jface.viewers.TableViewer.internalRefreshAll(TableViewer.java:870)
at org.eclipse.jface.viewers.TableViewer.internalRefresh(TableViewer.java:818)
at org.eclipse.jface.viewers.TableViewer.internalRefresh(TableViewer.java:807)
at org.eclipse.jface.viewers.StructuredViewer$7.run(StructuredViewer.java:1388)
at org.eclipse.jface.viewers.StructuredViewer.preservingSelection(StructuredViewer.java:1323)
at org.eclipse.jface.viewers.StructuredViewer.refresh(StructuredViewer.java:1386)
at org.eclipse.jface.viewers.StructuredViewer.refresh(StructuredViewer.java:1345)
at net.sourceforge.pmd.ui.views.ViolationOutlinePage.refresh(ViolationOutlinePage.java:304)
at net.sourceforge.pmd.ui.views.ViolationOutline.refresh(ViolationOutline.java:307)
at net.sourceforge.pmd.ui.views.ViolationOutline.partActivated(ViolationOutline.java:231)
at net.sourceforge.pmd.ui.views.ViolationOutline.partActivated(ViolationOutline.java:223)
at org.eclipse.ui.internal.PartListenerList$1.run(PartListenerList.java:72)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.core.runtime.Platform.run(Platform.java:843)
at org.eclipse.ui.internal.PartListenerList.fireEvent(PartListenerList.java:57)
at org.eclipse.ui.internal.PartListenerList.firePartActivated(PartListenerList.java:70)
at org.eclipse.ui.internal.PartService.firePartActivated(PartService.java:73)
at org.eclipse.ui.internal.PartService.setActivePart(PartService.java:171)
at org.eclipse.ui.internal.WorkbenchPagePartList.fireActivePartChanged(WorkbenchPagePartList.java:56)
at org.eclipse.ui.internal.PartList.setActivePart(PartList.java:126)
at org.eclipse.ui.internal.WorkbenchPage.setActivePart(WorkbenchPage.java:3190)
at org.eclipse.ui.internal.WorkbenchPage.activate(WorkbenchPage.java:588)
at org.eclipse.ui.internal.WorkbenchPage.busyShowView(WorkbenchPage.java:1008)
at org.eclipse.ui.internal.WorkbenchPage.busyShowView(WorkbenchPage.java:989)
at org.eclipse.ui.internal.WorkbenchPage.access$13(WorkbenchPage.java:968)
at org.eclipse.ui.internal.WorkbenchPage$13.run(WorkbenchPage.java:3497)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
at org.eclipse.ui.internal.WorkbenchPage.showView(WorkbenchPage.java:3494)
at org.eclipse.ui.internal.WorkbenchPage.showView(WorkbenchPage.java:3470)
at org.eclipse.ui.handlers.ShowViewHandler.openView(ShowViewHandler.java:148)
at org.eclipse.ui.handlers.ShowViewHandler.openOther(ShowViewHandler.java:104)
at org.eclipse.ui.handlers.ShowViewHandler.execute(ShowViewHandler.java:70)
at org.eclipse.ui.internal.ShowViewMenu$3.run(ShowViewMenu.java:114)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:499)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:539)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:488)
at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:400)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1085)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3164)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2840)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1914)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:419)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:95)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
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:585)
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336)
at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
at org.eclipse.core.launcher.Main.run(Main.java:977)
at org.eclipse.core.launcher.Main.main(Main.java:952)


---- shortly followed by

eclipse.buildId=M20060629-1905
java.version=1.5.0_06
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_IE
Command-line arguments:  -os linux -ws gtk -arch x86
This is a continuation of log file /home/oisin/workspace/.metadata/.bak_1.log
Created Time: 2006-09-21 11:16:38.792

Error
Fri Sep 22 10:03:36 IST 2006
Problems occurred when invoking code from plug-in: "org.eclipse.ui.workbench".

org.eclipse.jface.util.Assert$AssertionFailedException: null argument;
	at org.eclipse.jface.util.Assert.isNotNull(Assert.java:150)
	at org.eclipse.jface.util.Assert.isNotNull(Assert.java:126)
	at org.eclipse.jface.viewers.StructuredViewer.assertElementsNotNull(StructuredViewer.java:575)
	at org.eclipse.jface.viewers.StructuredViewer.getRawChildren(StructuredViewer.java:928)
	at org.eclipse.jface.viewers.TableViewer.getRawChildren(TableViewer.java:1279)
	at org.eclipse.jface.viewers.StructuredViewer.getFilteredChildren(StructuredViewer.java:868)
	at org.eclipse.jface.viewers.StructuredViewer.getSortedChildren(StructuredViewer.java:984)
	at org.eclipse.jface.viewers.TableViewer.internalRefreshAll(TableViewer.java:870)
	at org.eclipse.jface.viewers.TableViewer.internalRefresh(TableViewer.java:818)
	at org.eclipse.jface.viewers.TableViewer.internalRefresh(TableViewer.java:807)
	at org.eclipse.jface.viewers.StructuredViewer$7.run(StructuredViewer.java:1388)
	at org.eclipse.jface.viewers.StructuredViewer.preservingSelection(StructuredViewer.java:1323)
	at org.eclipse.jface.viewers.StructuredViewer.refresh(StructuredViewer.java:1386)
	at org.eclipse.jface.viewers.StructuredViewer.refresh(StructuredViewer.java:1345)
	at net.sourceforge.pmd.ui.views.ViolationOutlinePage.refresh(ViolationOutlinePage.java:304)
	at net.sourceforge.pmd.ui.views.ViolationOutline.refresh(ViolationOutline.java:307)
	at net.sourceforge.pmd.ui.views.ViolationOutline.partActivated(ViolationOutline.java:231)
	at net.sourceforge.pmd.ui.views.ViolationOutline.partActivated(ViolationOutline.java:223)
	at org.eclipse.ui.internal.PartListenerList$1.run(PartListenerList.java:72)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
	at org.eclipse.core.runtime.Platform.run(Platform.java:843)
	at org.eclipse.ui.internal.PartListenerList.fireEvent(PartListenerList.java:57)
	at org.eclipse.ui.internal.PartListenerList.firePartActivated(PartListenerList.java:70)
	at org.eclipse.ui.internal.PartService.firePartActivated(PartService.java:73)
	at org.eclipse.ui.internal.PartService.setActivePart(PartService.java:171)
	at org.eclipse.ui.internal.WorkbenchPagePartList.fireActivePartChanged(WorkbenchPagePartList.java:56)
	at org.eclipse.ui.internal.PartList.setActivePart(PartList.java:126)
	at org.eclipse.ui.internal.WorkbenchPage.setActivePart(WorkbenchPage.java:3190)
	at org.eclipse.ui.internal.WorkbenchPage.activate(WorkbenchPage.java:588)
	at org.eclipse.ui.internal.WorkbenchPage.busyShowView(WorkbenchPage.java:1008)
	at org.eclipse.ui.internal.WorkbenchPage.busyShowView(WorkbenchPage.java:989)
	at org.eclipse.ui.internal.WorkbenchPage.access$13(WorkbenchPage.java:968)
	at org.eclipse.ui.internal.WorkbenchPage$13.run(WorkbenchPage.java:3497)
	at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
	at org.eclipse.ui.internal.WorkbenchPage.showView(WorkbenchPage.java:3494)
	at org.eclipse.ui.internal.WorkbenchPage.showView(WorkbenchPage.java:3470)
	at org.eclipse.ui.handlers.ShowViewHandler.openView(ShowViewHandler.java:148)
	at org.eclipse.ui.handlers.ShowViewHandler.openOther(ShowViewHandler.java:104)
	at org.eclipse.ui.handlers.ShowViewHandler.execute(ShowViewHandler.java:70)
	at org.eclipse.ui.internal.ShowViewMenu$3.run(ShowViewMenu.java:114)
	at org.eclipse.jface.action.Action.runWithEvent(Action.java:499)
	at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:539)
	at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:488)
	at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:400)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1085)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3164)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2840)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1914)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:419)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
	at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:95)
	at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
	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:585)
	at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336)
	at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
	at org.eclipse.core.launcher.Main.run(Main.java:977)
	at org.eclipse.core.launcher.Main.main(Main.java:952)

Comment 2 Frederic Fusier CLA 2006-09-22 05:51:22 EDT
Can you provide a detailed test case to help us to reproduce?
Comment 3 Oisín CLA 2006-09-22 05:57:08 EDT
(In reply to comment #2)
> Can you provide a detailed test case to help us to reproduce?
> 

I'm afraid I can't at the moment, Frédéric - I experienced this before with Eclipse 3.1.x, but I haven't been able to replicate it consistently and at the moment am working on some stuff and can't try.

It happened when I selected the class name, hit alt+shift+R to bring up the rename dialogue, then changed the name of the class and I -think- selected the options for replacing fully qualified references in strings, but I can't be sure.
I've done this a few times recently and have forgotten that step once or twice, with frustrating consequences.

Sorry I can't be more specific...

I should note that, however, after the error hit, it repeated often, bringing up an alert box saying an error was written to the log, when clicking on items in the package explorer or some other places.
Comment 4 Frederic Fusier CLA 2006-09-22 07:52:21 EDT
Next time it occurs, then please verify that your workspace is well synchronized using refresh action. If this does not fix your issue then please reopen the bug, thanks
Comment 5 Denis Roy CLA 2009-08-30 02:06:53 EDT
As of now 'LATER' and 'REMIND' resolutions are no longer supported.
Please reopen this bug if it is still valid for you.