Community
Participate
Working Groups
I found these exceptions about half an hour after they were thrown. I might've been using self-hosting when they occured. ( not sure though because it was around the borderline where I switched from non-self hosting to self hosting. Log: Thu Jul 26 20:03:52 EDT 2001 2 org.eclipse.core.resources 2 Problems occurred when invoking code from plug-in: org.eclipse.core.resources. org.eclipse.swt.SWTException: Invalid thread access at org.eclipse.swt.SWT.error(SWT.java:1708) at org.eclipse.swt.SWT.error(SWT.java:1642) at org.eclipse.swt.widgets.Widget.error(Widget.java:368) at org.eclipse.swt.widgets.Widget.checkWidget(Widget.java(Compiled Code)) at org.eclipse.swt.widgets.Composite.getChildren(Composite.java:145) at org.eclipse.pde.internal.editor.manifest.AlertSection.update(AlertSection.java:258) at org.eclipse.pde.internal.editor.manifest.AlertSection.resourceChanged(AlertSection.java:250) at org.eclipse.core.internal.events.NotificationManager$1.run(NotificationManager.java:122) at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:758) at org.eclipse.core.runtime.Platform.run(Platform.java:393) at org.eclipse.core.internal.events.NotificationManager.notify(NotificationManager.java:137) at org.eclipse.core.internal.events.NotificationManager.broadcastChanges(NotificationManager.java:42) at org.eclipse.core.internal.events.NotificationManager.broadcastChanges(NotificationManager.java:62) at org.eclipse.core.internal.resources.Workspace.broadcastChanges(Workspace.java:108) at org.eclipse.core.internal.resources.Workspace.endOperation(Workspace.java:669) at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1199) at org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOperation.java:78) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:98) Log: Thu Jul 26 20:03:52 EDT 2001 2 org.eclipse.core.resources 2 Problems occurred when invoking code from plug-in: org.eclipse.core.resources. org.eclipse.swt.SWTException: Invalid thread access at org.eclipse.swt.SWT.error(SWT.java:1708) at org.eclipse.swt.SWT.error(SWT.java:1642) at org.eclipse.swt.widgets.Widget.error(Widget.java:368) at org.eclipse.swt.widgets.Widget.checkWidget(Widget.java(Compiled Code)) at org.eclipse.swt.widgets.Composite.getChildren(Composite.java:145) at org.eclipse.pde.internal.editor.manifest.AlertSection.update(AlertSection.java:258) at org.eclipse.pde.internal.editor.manifest.AlertSection.resourceChanged(AlertSection.java:250) at org.eclipse.core.internal.events.NotificationManager$1.run(NotificationManager.java:122) at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:758) at org.eclipse.core.runtime.Platform.run(Platform.java:393) at org.eclipse.core.internal.events.NotificationManager.notify(NotificationManager.java:137) at org.eclipse.core.internal.events.NotificationManager.broadcastChanges(NotificationManager.java:42) at org.eclipse.core.internal.events.NotificationManager.broadcastChanges(NotificationManager.java:62) at org.eclipse.core.internal.resources.Workspace.broadcastChanges(Workspace.java:108) at org.eclipse.core.internal.resources.Workspace.endOperation(Workspace.java:669) at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1199) at org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOperation.java:78) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:98) Log: Thu Jul 26 20:03:57 EDT 2001 2 org.eclipse.core.resources 2 Problems occurred when invoking code from plug-in: org.eclipse.core.resources. org.eclipse.swt.SWTException: Widget is disposed at org.eclipse.swt.SWT.error(SWT.java:1708) at org.eclipse.swt.SWT.error(SWT.java:1642) at org.eclipse.swt.widgets.Widget.error(Widget.java:368) at org.eclipse.swt.widgets.Control.getDisplay(Control.java(Compiled Code)) at org.eclipse.swt.widgets.Widget.isValidThread(Widget.java(Compiled Code)) at org.eclipse.swt.widgets.Widget.checkWidget(Widget.java(Compiled Code)) at org.eclipse.swt.widgets.Composite.getChildren(Composite.java:145) at org.eclipse.pde.internal.editor.manifest.AlertSection.update(AlertSection.java:258) at org.eclipse.pde.internal.editor.manifest.AlertSection.resourceChanged(AlertSection.java:250) at org.eclipse.core.internal.events.NotificationManager$1.run(NotificationManager.java:122) at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:758) at org.eclipse.core.runtime.Platform.run(Platform.java:393) at org.eclipse.core.internal.events.NotificationManager.notify(NotificationManager.java:137) at org.eclipse.core.internal.events.NotificationManager.broadcastChanges(NotificationManager.java:42) at org.eclipse.core.internal.events.NotificationManager.broadcastChanges(NotificationManager.java:62) at org.eclipse.core.internal.resources.Workspace.broadcastChanges(Workspace.java:108) at org.eclipse.core.internal.resources.Workspace.endOperation(Workspace.java:669) at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1199) at org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOperation.java:78) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:98) Log: Thu Jul 26 20:04:00 EDT 2001 2 org.eclipse.core.resources 2 Problems occurred when invoking code from plug-in: org.eclipse.core.resources. org.eclipse.swt.SWTException: Widget is disposed at org.eclipse.swt.SWT.error(SWT.java:1708) at org.eclipse.swt.SWT.error(SWT.java:1642) at org.eclipse.swt.widgets.Widget.error(Widget.java:368) at org.eclipse.swt.widgets.Control.getDisplay(Control.java(Compiled Code)) at org.eclipse.swt.widgets.Widget.isValidThread(Widget.java(Compiled Code)) at org.eclipse.swt.widgets.Widget.checkWidget(Widget.java(Compiled Code)) at org.eclipse.swt.widgets.Composite.getChildren(Composite.java:145) at org.eclipse.pde.internal.editor.manifest.AlertSection.update(AlertSection.java:258) at org.eclipse.pde.internal.editor.manifest.AlertSection.resourceChanged(AlertSection.java:250) at org.eclipse.core.internal.events.NotificationManager$1.run(NotificationManager.java:122) at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:758) at org.eclipse.core.runtime.Platform.run(Platform.java:393) at org.eclipse.core.internal.events.NotificationManager.notify(NotificationManager.java:137) at org.eclipse.core.internal.events.NotificationManager.broadcastChanges(NotificationManager.java:42) at org.eclipse.core.internal.events.NotificationManager.broadcastChanges(NotificationManager.java:62) at org.eclipse.core.internal.resources.Workspace.broadcastChanges(Workspace.java:108) at org.eclipse.core.internal.resources.Workspace.endOperation(Workspace.java:669) at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1199) at org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOperation.java:78) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:98) NOTES: JohnA (7/30/2001 10:19:36 AM) Appears to be a problem with the PDE editor's notification listener. Updates should be async'ed to run in UI thread. Moving to ITPPDE
PRODUCT VERSION: 125 SDK
Modified 'update' method in AlertSection to call asyncExec ensure thread-safe operation.