Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 347234 - Move Refactoring fails silently, state not valid
Summary: Move Refactoring fails silently, state not valid
Status: RESOLVED WORKSFORME
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.7   Edit
Hardware: Macintosh Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2011-05-25 19:45 EDT by Miles Parker CLA
Modified: 2011-10-21 01:25 EDT (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 Miles Parker CLA 2011-05-25 19:45:07 EDT
Build id: I20110519-1138

1. I did a "Move" refactor for a package from one project to a newly created one.
2. The package was removed from the initial project but never showed up in the new project.

I got a message in the console at approximately the first time I tried this (see below) but not the second time. I don't know how this might be replicated but a couple of data points: 1) I had just mistakenly created the target project in the parent directory (i.e. the root of the project was actually in "plugins" and then deleted it manually using OS X command line and 2) I had then (not being very careful today!) apparently created the project over an older refactored project with the same name / location. That is, I has a previous project "A" (committed some time ago) with the same name as the new plugin "B" I'd just created and I had previously renamed project "A" to something else.


org.eclipse.core.internal.resources.ResourceException: State is not valid or might have expired.
	at org.eclipse.core.internal.localstore.HistoryStore2.getContents(HistoryStore2.java:264)
	at org.eclipse.core.internal.resources.FileState.getContents(FileState.java:72)
	at org.eclipse.compare.internal.AddFromHistoryDialog$HistoryInput.getContents(AddFromHistoryDialog.java:49)
	at org.eclipse.jdt.internal.ui.compare.JavaCompareUtilities.readString(JavaCompareUtilities.java:322)
	at org.eclipse.jdt.internal.ui.compare.JavaTextViewer.getString(JavaTextViewer.java:102)
	at org.eclipse.jdt.internal.ui.compare.JavaTextViewer.setInput(JavaTextViewer.java:68)
	at org.eclipse.compare.CompareViewerSwitchingPane.setInput(CompareViewerSwitchingPane.java:277)
	at org.eclipse.compare.internal.AddFromHistoryDialog.feedContent(AddFromHistoryDialog.java:402)
	at org.eclipse.compare.internal.AddFromHistoryDialog.addEdition(AddFromHistoryDialog.java:377)
	at org.eclipse.compare.internal.AddFromHistoryDialog.handleMemberSelect(AddFromHistoryDialog.java:323)
	at org.eclipse.compare.internal.AddFromHistoryDialog.access$4(AddFromHistoryDialog.java:302)
	at org.eclipse.compare.internal.AddFromHistoryDialog$2.widgetSelected(AddFromHistoryDialog.java:257)
	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:240)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
	at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4123)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1457)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1480)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1465)
	at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1270)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3969)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3608)
	at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
	at org.eclipse.jface.window.Window.open(Window.java:801)
	at org.eclipse.compare.internal.AddFromHistoryDialog.select(AddFromHistoryDialog.java:189)
	at org.eclipse.compare.internal.AddFromHistoryAction.run(AddFromHistoryAction.java:80)
	at org.eclipse.compare.internal.BaseCompareAction.run(BaseCompareAction.java:26)
	at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:251)
	at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
	at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
	at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
	at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4123)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1457)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1480)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1465)
	at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1270)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3969)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3608)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2696)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2660)
	at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2494)
	at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:674)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:667)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
	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:597)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
Comment 1 Deepak Azad CLA 2011-10-20 10:29:28 EDT
I cannot reproduce this. Did it happen again?
Comment 2 Miles Parker CLA 2011-10-20 13:06:02 EDT
No, and the unusual set of circumstances that led to it aren't likely to show up again by accident. I'l report back if it does. Pls feel free to mark as WORKSFORME or whatever is appropriate.
Comment 3 Dani Megert CLA 2011-10-21 01:25:44 EDT
Thanks for the reply Miles.