Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 380206

Summary: Repository login details cannot be saved
Product: z_Archived Reporter: Neil Bartlett <njbartlett>
Component: MylynAssignee: Mylyn Inbox <mylyn-inbox>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

Description Neil Bartlett CLA 2012-05-22 02:28:22 EDT
Using Eclipse 4.2RC1 with Mylyn and GitHub connector installed from Juno update site. Version of plugin org.eclipse.mylyn.context.core is 3.6.1.v20110720-0100.

Created a connection to a Github issues repo (http://github.com/bndtools/bndtools) in the Task Repos view, supplied my username and password. Clicked "Validate Settings", validation succeeds. Click finish and then re-open same connection, the login details have disappeared. As a result, submitting changes to any issue results in "Submit failed: Unexpected error: Not Found".

The following error message appears in the log:

eclipse.buildId=I20120518-2145
java.version=1.6.0_31
java.vendor=Apple Inc.
BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=en_US
Framework arguments:  -keyring /Users/njbartlett/.eclipse_keyring -showlocation
Command-line arguments:  -os macosx -ws cocoa -arch x86_64 -keyring /Users/njbartlett/.eclipse_keyring -showlocation

Error
Tue May 22 07:04:22 BST 2012
Problems occurred when invoking code from plug-in: "org.eclipse.mylyn.context.core".

java.lang.NoSuchMethodError: org.eclipse.ui.internal.WorkbenchWindow.getNumber()I
	at org.eclipse.mylyn.internal.context.ui.ContextEditorManager.closeEditorsAndSaveMemento(ContextEditorManager.java:254)
	at org.eclipse.mylyn.internal.context.ui.ContextEditorManager.contextChanged(ContextEditorManager.java:100)
	at org.eclipse.mylyn.internal.context.core.InteractionContextManager$4.run(InteractionContextManager.java:444)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
	at org.eclipse.mylyn.internal.context.core.InteractionContextManager.deactivateContext(InteractionContextManager.java:434)
	at org.eclipse.mylyn.internal.tasks.ui.TasksUiPlugin$1.taskDeactivated(TasksUiPlugin.java:266)
	at org.eclipse.mylyn.internal.tasks.core.TaskActivityManager.deactivateTask(TaskActivityManager.java:460)
	at org.eclipse.mylyn.internal.tasks.ui.actions.ToggleTaskActivationAction.run(ToggleTaskActivationAction.java:66)
	at org.eclipse.mylyn.tasks.ui.editors.TaskEditor$13.run(TaskEditor.java:955)
	at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
	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$6.handleEvent(ActionContributionItem.java:452)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
	at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4130)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1458)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1481)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1466)
	at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1271)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3976)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3615)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1021)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:915)
	at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
	at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:585)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:540)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
	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:353)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
	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:629)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
Comment 1 Steffen Pingel CLA 2012-06-10 13:40:59 EDT
Mylyn 3.6 is not compatible with Eclipse 4.2. Please update to the latest snapshot of Mylyn 3.8 that is available from the Juno (staging) site.

*** This bug has been marked as a duplicate of bug 373098 ***