Project: JDT
Bug 14975 Resource exception while running plug-in import
Reported: 2002-04-30 19:29:29 | Status: resolved fixed

Build 20020430 Started from a full-source Eclipse workspace 20020425, which I upgraded into a 20020430 one (first imported existing library projects - apache, xerces, etc) then selected all other projects (but jdt/core) as source ones). Got the following exception. !ENTRY org.eclipse.jdt.ui 4 1 Wed May 01 01:26:10 CEST 2002 !MESSAGE Internal Error !STACK org.eclipse.core.internal.resources.ResourceException: Resource /org.eclipse.core.resources/os does not exist. at org.eclipse.core.internal.resources.Resource.checkExists (Resource.java:174) at org.eclipse.core.internal.resources.Resource.checkAccessible (Resource.java:89) at org.eclipse.core.internal.resources.Resource.findMarkers (Resource.java:550) at org.eclipse.jdt.internal.ui.viewsupport.ErrorTickAdornmentProvider.getErrorTicks FromMarkers(ErrorTickAdornmentProvider.java:90) at org.eclipse.jdt.internal.ui.viewsupport.ErrorTickAdornmentProvider.computeAdornm entFlags(ErrorTickAdornmentProvider.java:70) at org.eclipse.jdt.internal.ui.viewsupport.JavaUILabelProvider.getImage (JavaUILabelProvider.java:82) at org.eclipse.jface.viewers.DecoratingLabelProvider.getImage (DecoratingLabelProvider.java:65) at org.eclipse.jface.viewers.StructuredViewer.getLabel (StructuredViewer.java:1089) at org.eclipse.jface.viewers.TreeViewer.doUpdateItem(TreeViewer.java:88) at org.eclipse.jface.viewers.AbstractTreeViewer.doUpdateItem (AbstractTreeViewer.java:352) at org.eclipse.jface.viewers.StructuredViewer.updateItem (StructuredViewer.java:1044) at org.eclipse.jface.viewers.AbstractTreeViewer.internalRefresh (AbstractTreeViewer.java:846) at org.eclipse.jface.viewers.AbstractTreeViewer.internalRefresh (AbstractTreeViewer.java:860) at org.eclipse.jface.viewers.AbstractTreeViewer.internalRefresh (AbstractTreeViewer.java:860) at org.eclipse.jface.viewers.AbstractTreeViewer.internalRefresh (AbstractTreeViewer.java:829) at org.eclipse.jface.viewers.StructuredViewer$1.run (StructuredViewer.java:676) at org.eclipse.jface.viewers.StructuredViewer.preservingSelection (StructuredViewer.java:616) at org.eclipse.jface.viewers.StructuredViewer.refresh (StructuredViewer.java:674) at org.eclipse.jdt.ui.JavaElementContentProvider$2.run (JavaElementContentProvider.java:255) at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:29) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages (Synchronizer.java:93) at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:1389) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1211) at org.eclipse.jface.operation.ModalContext$ModalContextThread.block (ModalContext.java:133) at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:258) at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:720) at org.eclipse.pde.internal.ui.wizards.imports.PluginImportWizard.performFinish (PluginImportWizard.java:100) at org.eclipse.jface.wizard.WizardDialog.finishPressed (WizardDialog.java:577) at org.eclipse.jface.wizard.WizardDialog.buttonPressed (WizardDialog.java:312) at org.eclipse.jface.dialogs.Dialog$1.widgetSelected(Dialog.java:379) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:85) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.jface.window.Window.runEventLoop(Window.java:538) at org.eclipse.jface.window.Window.open(Window.java:525) at org.eclipse.ui.actions.ImportResourcesAction.run (ImportResourcesAction.java:117) at org.eclipse.jface.action.Action.runWithEvent(Action.java:590) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection (ActionContributionItem.java:407) at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent (ActionContributionItem.java:361) at org.eclipse.jface.action.ActionContributionItem.access$0 (ActionContributionItem.java:352) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent (ActionContributionItem.java:47) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:883) at org.eclipse.ui.internal.Workbench.run(Workbench.java:866) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:733) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:349) at java.lang.reflect.Method.invoke(Native Method) at org.eclipse.core.launcher.Main.basicRun(Main.java:162) at org.eclipse.core.launcher.Main.run(Main.java:588) at org.eclipse.core.launcher.UIMain.main(UIMain.java:52)

Files changed in fix:
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/viewsupport/ErrorTickAdornmentProvider.java