Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Invalid thread access when opening work item

Hi,

We have the problem that very frequently when we access a Work Item in the EclipseClient, we get the Error ' Could not open the editor: Invalid thread access'.

We can get rid of this behaviour briefly by deleting the local Workspaces, this results in the local preferences (like Instant Messaging Connections, File Associations etc) also being deleted. For our test purposes we are currently starting more than one eclipse shell with different users.

Have you heard of this problem or know how it may be solved?

thanks.

SH

0 votes



6 answers

Permanent link

Have you heard of this problem or know how it may be solved?

Can you please attach a stack trace (Window > Show View > Error Log).

Otherwise it's hard figure out where the error comes from.

--
Cheers, Johannes
Agile Planning Team

0 votes


Permanent link
Here are the 'Details' from the error (is this what you mean?):

org.eclipse.swt.SWTException: Invalid thread access
at org.eclipse.swt.SWT.error(Unknown Source)
at org.eclipse.swt.SWT.error(Unknown Source)
at org.eclipse.swt.SWT.error(Unknown Source)
at org.eclipse.swt.widgets.Display.error(Unknown Source)
at org.eclipse.swt.widgets.Display.checkDevice(Unknown Source)
at org.eclipse.swt.widgets.Display.getSystemColor(Unknown Source)
at org.eclipse.ui.forms.FormColors.initialize(Unknown Source)
at org.eclipse.ui.forms.FormColors.<init>(Unknown Source)
at com.ibm.team.ui.editor.TeamFormColors.<init>(Unknown Source)
at com.ibm.team.workitem.ide.ui.internal.editor.comments.SharedFormColors.getFormColors(Unknown Source)
at com.ibm.team.workitem.ide.ui.internal.WorkItemIDEUIPlugin.getSharedFormColors(Unknown Source)
at com.ibm.team.workitem.ide.ui.internal.WorkItemIDEUIPlugin.getWorkItemEditorToolkit(Unknown Source)
at com.ibm.team.workitem.ide.ui.internal.editor.WorkItemEditor.createToolkit(Unknown Source)
at org.eclipse.ui.forms.editor.FormEditor.createPageContainer(Unknown Source)
at org.eclipse.ui.forms.editor.SharedHeaderFormEditor.createPageContainer(Unknown Source)
at com.ibm.team.ui.editor.TeamFormEditor.createPageContainer(Unknown Source)
at com.ibm.team.workitem.ide.ui.internal.editor.WorkItemEditor.createPageContainer(Unknown Source)
at org.eclipse.ui.part.MultiPageEditorPart.createPartControl(Unknown Source)
at org.eclipse.ui.internal.EditorReference.createPartHelper(Unknown Source)
at org.eclipse.ui.internal.EditorReference.createPart(Unknown Source)
at org.eclipse.ui.internal.WorkbenchPartReference.getPart(Unknown Source)
at org.eclipse.ui.internal.PartPane.setVisible(Unknown Source)
at org.eclipse.ui.internal.presentations.PresentablePart.setVisible(Unknown Source)
at org.eclipse.ui.internal.presentations.util.PresentablePartFolder.select(Unknown Source)
at org.eclipse.ui.internal.presentations.util.LeftToRightTabOrder.select(Unknown Source)
at org.eclipse.ui.internal.presentations.util.TabbedStackPresentation.selectPart(Unknown Source)
at org.eclipse.ui.internal.PartStack.refreshPresentationSelection(Unknown Source)
at org.eclipse.ui.internal.PartStack.setSelection(Unknown Source)
at org.eclipse.ui.internal.PartStack.showPart(Unknown Source)
at org.eclipse.ui.internal.PartStack.add(Unknown Source)
at org.eclipse.ui.internal.EditorStack.add(Unknown Source)
at org.eclipse.ui.internal.PartStack.add(Unknown Source)
at org.eclipse.ui.internal.EditorStack.add(Unknown Source)
at org.eclipse.ui.internal.EditorSashContainer.addEditor(Unknown Source)
at org.eclipse.ui.internal.EditorAreaHelper.addToLayout(Unknown Source)
at org.eclipse.ui.internal.EditorAreaHelper.addEditor(Unknown Source)
at org.eclipse.ui.internal.EditorManager.createEditorTab(Unknown Source)
at org.eclipse.ui.internal.EditorManager.openEditorFromDescriptor(Unknown Source)
at org.eclipse.ui.internal.EditorManager.openEditor(Unknown Source)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(Unknown Source)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(Unknown Source)
at org.eclipse.ui.internal.WorkbenchPage.access$11(Unknown Source)
at org.eclipse.ui.internal.WorkbenchPage$10.run(Unknown Source)
at org.eclipse.swt.custom.BusyIndicator.showWhile(Unknown Source)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(Unknown Source)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(Unknown Source)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(Unknown Source)
at org.eclipse.ui.ide.IDE.openEditor(Unknown Source)
at com.ibm.team.workitem.rcp.ui.WorkItemUI.openEditor(Unknown Source)
at com.ibm.team.workitem.rcp.ui.internal.explorer.view.AbstractWorkItemExplorer.openSelection(Unknown Source)
at com.ibm.team.workitem.rcp.ui.internal.explorer.view.AbstractWorkItemExplorer$7.open(Unknown Source)
at org.eclipse.jface.viewers.StructuredViewer$2.run(Unknown Source)
at org.eclipse.core.runtime.SafeRunner.run(Unknown Source)
at org.eclipse.core.runtime.Platform.run(Unknown Source)
at org.eclipse.ui.internal.JFaceUtil$1.run(Unknown Source)
at org.eclipse.jface.util.SafeRunnable.run(Unknown Source)
at org.eclipse.jface.viewers.StructuredViewer.fireOpen(Unknown Source)
at org.eclipse.jface.viewers.StructuredViewer.handleOpen(Unknown Source)
at org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(Unknown Source)
at org.eclipse.jface.util.OpenStrategy.fireOpenEvent(Unknown Source)
at org.eclipse.jface.util.OpenStrategy.access$2(Unknown Source)
at org.eclipse.jface.util.OpenStrategy$1.handleEvent(Unknown Source)
at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source)
at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source)
at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source)
at org.eclipse.ui.internal.Workbench.runEventLoop(Unknown Source)
at org.eclipse.ui.internal.Workbench.runUI(Unknown Source)
at org.eclipse.ui.internal.Workbench.access$4(Unknown Source)
at org.eclipse.ui.internal.Workbench$5.run(Unknown Source)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Unknown Source)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Unknown Source)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(Unknown Source)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(Unknown Source)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(Unknown Source)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(Unknown Source)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(Unknown Source)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(Unknown Source)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Unknown Source)
at org.eclipse.equinox.launcher.Main.basicRun(Unknown Source)
at org.eclipse.equinox.launcher.Main.run(Unknown Source)
at org.eclipse.equinox.launcher.Main.main(Unknown Source)

0 votes


Permanent link
This looks similar to defect 56137...

https://jazz.net/jazz/web/projects/Jazz%20Project#action=com.ibm.team.workitem.viewWorkItem&id=56137

Larry Smith
Jazz Work Item Web UI Development

0 votes


Permanent link
What operating system are we talking about here? Mac OS?

Benjamin Pasero
Foundation & Work Item

0 votes


Permanent link
I have opened https://jazz.net/jazz/resource/itemName/com.ibm.team.workitem.WorkItem/59303

0 votes


Permanent link
...this appears to be fixed.

We were doing some very unorthadox stuff: in order to get RDz workin in RTC we used a Beta with a newer eclipse version.

To solve it we reinstalled version 1.0 and the problem has not reoccured

Thanks for the help.

Shane

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Jul 28 '08, 12:17 p.m.

Question was seen: 6,504 times

Last updated: Jul 28 '08, 12:17 p.m.

Confirmation Cancel Confirm