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

Bug 170388

Summary: Could not create New Repository Task editor for Bugzilla
Product: z_Archived Reporter: Eugene Kuleshov <ekuleshov>
Component: MylynAssignee: Robert Elves <robert.elves>
Status: RESOLVED INVALID QA Contact:
Severity: blocker    
Priority: P3 CC: wmitsuda
Version: dev   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Eugene Kuleshov CLA 2007-01-13 11:37:05 EST
It fail leaving the following exceptions in the error log.

org.eclipse.core.runtime.AssertionFailedException: assertion failed: 
	at org.eclipse.core.runtime.Assert.isTrue(Assert.java:109)
	at org.eclipse.core.runtime.Assert.isTrue(Assert.java:95)
	at org.eclipse.ui.part.MultiPageEditorPart.setActivePage(MultiPageEditorPart.java:689)
	at org.eclipse.ui.forms.editor.FormEditor.setActivePage(FormEditor.java:602)
	at org.eclipse.ui.part.MultiPageEditorPart.createPartControl(MultiPageEditorPart.java:281)
	at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:609)
	at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:379)
	at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:566)
	at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:293)
	at org.eclipse.ui.internal.presentations.PresentablePart.setVisible(PresentablePart.java:140)
	at org.eclipse.ui.internal.presentations.util.PresentablePartFolder.select(PresentablePartFolder.java:268)
	at org.eclipse.ui.internal.presentations.util.LeftToRightTabOrder.select(LeftToRightTabOrder.java:65)
	at org.eclipse.ui.internal.presentations.util.TabbedStackPresentation.selectPart(TabbedStackPresentation.java:394)
	at org.eclipse.ui.internal.PartStack.refreshPresentationSelection(PartStack.java:1156)
	at org.eclipse.ui.internal.PartStack.setSelection(PartStack.java:1109)
	at org.eclipse.ui.internal.PartStack.showPart(PartStack.java:1335)
	at org.eclipse.ui.internal.PartStack.add(PartStack.java:458)
	at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:102)
	at org.eclipse.ui.internal.PartStack.add(PartStack.java:444)
	at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:111)
	at org.eclipse.ui.internal.EditorSashContainer.addEditor(EditorSashContainer.java:61)
	at org.eclipse.ui.internal.EditorAreaHelper.addToLayout(EditorAreaHelper.java:217)
	at org.eclipse.ui.internal.EditorAreaHelper.addEditor(EditorAreaHelper.java:207)
	at org.eclipse.ui.internal.EditorManager.createEditorTab(EditorManager.java:820)
	at org.eclipse.ui.internal.EditorManager.openEditorFromDescriptor(EditorManager.java:719)
	at org.eclipse.ui.internal.EditorManager.openEditor(EditorManager.java:680)
	at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2569)
	at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2504)
	at org.eclipse.ui.internal.WorkbenchPage.access$10(WorkbenchPage.java:2496)
	at org.eclipse.ui.internal.WorkbenchPage$9.run(WorkbenchPage.java:2481)
	at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
	at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2476)
	at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2453)
	at org.eclipse.mylar.tasks.ui.TasksUiUtil.openEditor(TasksUiUtil.java:286)
	at org.eclipse.mylar.internal.bugzilla.ui.wizard.NewBugzillaTaskWizard.performFinish(NewBugzillaTaskWizard.java:95)
	at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:695)
	at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:367)
	at org.eclipse.jface.dialogs.Dialog$3.widgetSelected(Dialog.java:638)
	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:90)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3465)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3079)
	at org.eclipse.jface.window.Window.runEventLoop(Window.java:820)
	at org.eclipse.jface.window.Window.open(Window.java:796)
	at org.eclipse.ui.internal.actions.NewWizardShortcutAction.run(NewWizardShortcutAction.java:126)
	at org.eclipse.jface.action.Action.runWithEvent(Action.java:499)
	at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:545)
	at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:490)
	at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:402)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3465)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3079)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1945)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1909)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:425)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
	at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:95)
	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.equinox.internal.app.EclipseAppContainer.callMethod(EclipseAppContainer.java:522)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:147)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:104)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:74)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:354)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:170)
	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:339)
	at org.eclipse.core.launcher.Main.basicRun(Main.java:283)
	at org.eclipse.core.launcher.Main.run(Main.java:984)
	at org.eclipse.core.launcher.Main.main(Main.java:959)

org.eclipse.swt.SWTException: Invalid thread access
at org.eclipse.swt.SWT.error(SWT.java:3450)
at org.eclipse.swt.SWT.error(SWT.java:3373)
at org.eclipse.swt.SWT.error(SWT.java:3344)
at org.eclipse.swt.widgets.Display.error(Display.java:1003)
at org.eclipse.swt.widgets.Display.checkDevice(Display.java:663)
at org.eclipse.swt.widgets.Display.getSystemColor(Display.java:1993)
at org.eclipse.mylar.tasks.ui.editors.AbstractNewRepositoryTaskEditor.createPlanningLayout(AbstractNewRepositoryTaskEditor.java:197)
at org.eclipse.mylar.tasks.ui.editors.AbstractNewRepositoryTaskEditor.createNewCommentLayout(AbstractNewRepositoryTaskEditor.java:172)
at org.eclipse.mylar.tasks.ui.editors.AbstractRepositoryTaskEditor.createFormContent(AbstractRepositoryTaskEditor.java:581)
at org.eclipse.ui.forms.editor.FormPage$1.run(FormPage.java:151)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
at org.eclipse.ui.forms.editor.FormPage.createPartControl(FormPage.java:149)
at org.eclipse.mylar.tasks.ui.editors.TaskEditor.addPages(TaskEditor.java:396)
at org.eclipse.ui.forms.editor.FormEditor.createPages(FormEditor.java:142)
at org.eclipse.ui.part.MultiPageEditorPart.createPartControl(MultiPageEditorPart.java:277)
at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:609)
at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:379)
at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:566)
at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:293)
at org.eclipse.ui.internal.presentations.PresentablePart.setVisible(PresentablePart.java:140)
at org.eclipse.ui.internal.presentations.util.PresentablePartFolder.select(PresentablePartFolder.java:268)
at org.eclipse.ui.internal.presentations.util.LeftToRightTabOrder.select(LeftToRightTabOrder.java:65)
at org.eclipse.ui.internal.presentations.util.TabbedStackPresentation.selectPart(TabbedStackPresentation.java:394)
at org.eclipse.ui.internal.PartStack.refreshPresentationSelection(PartStack.java:1156)
at org.eclipse.ui.internal.PartStack.setSelection(PartStack.java:1109)
at org.eclipse.ui.internal.PartStack.showPart(PartStack.java:1335)
at org.eclipse.ui.internal.PartStack.add(PartStack.java:458)
at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:102)
at org.eclipse.ui.internal.PartStack.add(PartStack.java:444)
at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:111)
at org.eclipse.ui.internal.EditorSashContainer.addEditor(EditorSashContainer.java:61)
at org.eclipse.ui.internal.EditorAreaHelper.addToLayout(EditorAreaHelper.java:217)
at org.eclipse.ui.internal.EditorAreaHelper.addEditor(EditorAreaHelper.java:207)
at org.eclipse.ui.internal.EditorManager.createEditorTab(EditorManager.java:820)
at org.eclipse.ui.internal.EditorManager.openEditorFromDescriptor(EditorManager.java:719)
at org.eclipse.ui.internal.EditorManager.openEditor(EditorManager.java:680)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2569)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2504)
at org.eclipse.ui.internal.WorkbenchPage.access$10(WorkbenchPage.java:2496)
at org.eclipse.ui.internal.WorkbenchPage$9.run(WorkbenchPage.java:2481)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2476)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2453)
at org.eclipse.mylar.tasks.ui.TasksUiUtil.openEditor(TasksUiUtil.java:286)
at org.eclipse.mylar.internal.bugzilla.ui.wizard.NewBugzillaTaskWizard.performFinish(NewBugzillaTaskWizard.java:95)
at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:695)
at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:367)
at org.eclipse.jface.dialogs.Dialog$3.widgetSelected(Dialog.java:638)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:90)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3465)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3079)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:820)
at org.eclipse.jface.window.Window.open(Window.java:796)
at org.eclipse.ui.internal.actions.NewWizardShortcutAction.run(NewWizardShortcutAction.java:126)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:499)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:545)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:490)
at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:402)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3465)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3079)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1945)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1909)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:425)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:95)
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.equinox.internal.app.EclipseAppContainer.callMethod(EclipseAppContainer.java:522)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:147)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:104)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:74)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:354)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:170)
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:339)
at org.eclipse.core.launcher.Main.basicRun(Main.java:283)
at org.eclipse.core.launcher.Main.run(Main.java:984)
at org.eclipse.core.launcher.Main.main(Main.java:959)
Comment 1 Robert Elves CLA 2007-01-13 13:50:56 EST
I'm running bootstrapped on (what should be) the same code without any problems but will test the dev build itself....
Comment 2 Robert Elves CLA 2007-01-13 16:01:56 EST
Can't reproduce with 3.3 dev build. Any particular steps to reproduce?
Comment 3 Willian Mitsuda CLA 2007-01-13 19:06:09 EST
Works for me too...
Comment 4 Eugene Kuleshov CLA 2007-01-13 19:54:10 EST
I tried all possible options to create new Bugzilla task and they all failing leaving those two exception stack traces in the log. I can't even create new editor from the bug report... I am running 20070112-1800 dev build.

Could not create editor via factory: org.eclipse.mylar.internal.bugzilla.ui.tasklist.BugzillaTaskEditorFactory@57b1ed
Unable to create editor ID org.eclipse.mylar.tasklist.ui.taskEditor: assertion failed: 
Comment 5 Eugene Kuleshov CLA 2007-01-13 20:06:29 EST
I tried few things (switched workspace uninstalled few plug-ins) and got it working now, though I saw some scary exceptions in the logs...

java.lang.NullPointerException
	at java.util.concurrent.ConcurrentHashMap.hash(ConcurrentHashMap.java:157)
	at java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:730)
	at org.eclipse.mylar.tasks.core.TaskList.getTask(TaskList.java:376)
	at org.eclipse.mylar.internal.team.ContextActiveChangeSetManager.initContextChangeSets(ContextActiveChangeSetManager.java:129)
	at org.eclipse.mylar.team.AbstractContextChangeSetManager.enable(AbstractContextChangeSetManager.java:36)
	at org.eclipse.mylar.internal.team.ContextActiveChangeSetManager.enable(ContextActiveChangeSetManager.java:104)
	at org.eclipse.mylar.team.MylarTeamPlugin$1.run(MylarTeamPlugin.java:69)
	at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
	at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:123)
	at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3442)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3082)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1945)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1909)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:425)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
	at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:95)
	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.equinox.internal.app.EclipseAppContainer.callMethod(EclipseAppContainer.java:522)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:147)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:104)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:74)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:354)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:170)
	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:339)
	at org.eclipse.core.launcher.Main.basicRun(Main.java:283)
	at org.eclipse.core.launcher.Main.run(Main.java:984)
	at org.eclipse.core.launcher.Main.main(Main.java:959)
Comment 6 Eugene Kuleshov CLA 2007-01-13 20:15:01 EST
It is probably result of some plug-ins I've been trying.
Comment 7 Mik Kersten CLA 2007-01-15 00:53:32 EST
Just curious, do you know what specifically could have caused it?  It seems like an odd startup problem.  I added a null test into TaskList.getTask(..) to avoid such NPEs.
Comment 8 Eugene Kuleshov CLA 2007-01-15 01:11:51 EST
I've been playing with coverclipse plugin. Seems like it does not work in Eclipse 3.3M4. Ayways, EclEmma works and look better...
Comment 9 Willian Mitsuda CLA 2007-01-15 02:12:17 EST
Anyway, it does not sound reasonable for me to suppose this is caused by another unrelated plugin...
Comment 10 Mik Kersten CLA 2007-01-15 02:21:06 EST
 (In reply to comment #9)
> Anyway, it does not sound reasonable for me to suppose this is caused by another
> unrelated plugin...

Yes, we should try to be as defensive as possible to plug-ins using or misusing the Task List, or causing startup problems.  So if there is anything else we can do here to improve on that please post.
Comment 11 Eugene Kuleshov CLA 2007-01-15 02:27:32 EST
By the way, does anyone else looses .keyring? Happens to me twice in a last month... Loosing passwords, and last time was something with the format and I had to kill it.
Comment 12 Mik Kersten CLA 2007-01-15 02:35:10 EST
This has happened to me at least a few times, and I haven't been able to figure out when.  I use a runtime workspace, and it does not always happen when I upgrade Eclipse releases, even though it does happen always for the non-runtime workspace.  But I have lost it between Eclipse sessions too, most recently last week.
Comment 13 Eugene Kuleshov CLA 2007-01-15 02:40:45 EST
(In reply to comment #12)
> This has happened to me at least a few times, and I haven't been able to figure
> out when.  I use a runtime workspace, and it does not always happen when I
> upgrade Eclipse releases, even though it does happen always for the non-runtime
> workspace.  But I have lost it between Eclipse sessions too, most recently last
> week.

Good. At least I am not alone and it seems like there is a concurrency issue in Platform.*AuthorizationInfo(..) methods. We had to workaround it in TaskRepository, but if someone else (CVS, Subclipse, etc) would write it at the same time it could crash.
Comment 14 Willian Mitsuda CLA 2007-01-15 03:48:32 EST
(In reply to comment #11)
> By the way, does anyone else looses .keyring? Happens to me twice in a last
> month... Loosing passwords, and last time was something with the format and I
> had to kill it.
> 

I think it is related to switching between Eclipse versions, i.e. when you open the same workspace on 3.2 and then on 3.3.

This would be something related to the way Platform authorization info works, because I have seem the same thing happens with CVS passwords.

I once had this problem too with a RCP application I was writing, but I haven't time to investigate and the documentation doesn't help...

If anyone has more info, please let me know.