Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 315790 - [ui] IllegalArgumentException when cancelling a check for update
Summary: [ui] IllegalArgumentException when cancelling a check for update
Status: VERIFIED FIXED
Alias: None
Product: Equinox
Classification: Eclipse Project
Component: p2 (show other bugs)
Version: 3.6   Edit
Hardware: PC All
: P3 normal (vote)
Target Milestone: 3.7 M5   Edit
Assignee: Susan McCourt CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 329905 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-06-04 11:38 EDT by Grant Gayed CLA
Modified: 2011-01-25 15:19 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 Grant Gayed CLA 2010-06-04 11:38:26 EDT
- 3.6RC4 candidate build, observed on win32 and gtk
- is somewhat timing-dependent, but not difficult to reproduce

- Help > Check for Updates
- in the subsequent progress dialog press the Details button, then the Cancel button
- it continues doing something for a few seconds, then the following is written to the error log

org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.IllegalArgumentException: Cannot create an update wizard on an unresolved operation)
at org.eclipse.swt.SWT.error(SWT.java:4083)
at org.eclipse.swt.SWT.error(SWT.java:3998)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:137)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4041)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3660)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2629)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2593)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2427)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:670)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:663)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115)
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:369)
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:592)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:619)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
at org.eclipse.equinox.launcher.Main.run(Main.java:1407)
Caused by: java.lang.IllegalArgumentException: Cannot create an update wizard on an unresolved operation
at org.eclipse.core.runtime.Assert.isLegal(Assert.java:63)
at org.eclipse.equinox.internal.p2.ui.dialogs.UpdateWizard.<init>(UpdateWizard.java:76)
at org.eclipse.equinox.p2.ui.ProvisioningUI.openUpdateWizard(ProvisioningUI.java:227)
at org.eclipse.equinox.internal.p2.ui.sdk.UpdateHandler.doExecute(UpdateHandler.java:42)
at org.eclipse.equinox.internal.p2.ui.sdk.PreloadingRepositoryHandler$3$1.run(PreloadingRepositoryHandler.java:101)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:134)
... 22 more
Comment 1 Susan McCourt CLA 2010-06-07 12:05:53 EDT
I'll take a look at this.
Marking 3.6.1 for now, but will prepare a patch now to assess risk of fix.
Comment 2 Susan McCourt CLA 2010-08-05 12:57:05 EDT
will investigate and comment on whether this should go in a maintenance stream
Comment 3 Susan McCourt CLA 2010-12-01 11:27:37 EST
these bugs will be my holiday projects...
Comment 4 Susan McCourt CLA 2011-01-11 18:41:29 EST
Fixed in HEAD >20110111
Comment 5 Susan McCourt CLA 2011-01-11 18:42:53 EST
*** Bug 329905 has been marked as a duplicate of this bug. ***
Comment 6 Susan McCourt CLA 2011-01-25 15:19:28 EST
verified on Win7, I20110124-1800