Project: JDT
Bug 96421 notpresentexception found in log
Reported: 2005-05-24 09:43:20 | Status: resolved fixed

3.1M7 I found this in the log. That day I had many projects in the workspace and I would open and close a new one often (every 15 minutes or so) Java Model Exception: Java Model Status [xxx_tclib does not exist] at org.eclipse.jdt.internal.core.JavaElement.newNotPresentException(JavaElement.java(Inlined Compiled Code)) at org.eclipse.jdt.internal.core.JavaProject.buildStructure(JavaProject.java(Compiled Code)) at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java(Compiled Code)) at org.eclipse.jdt.internal.core.Openable.openParent(Openable.java(Compiled Code)) at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java(Compiled Code)) at org.eclipse.jdt.internal.core.JarPackageFragment.generateInfos(JarPackageFragment.java:113) at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java(Compiled Code)) at org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java(Inlined Compiled Code)) at org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java(Inlined Compiled Code)) at org.eclipse.jdt.internal.core.JavaElement.getChildren(JavaElement.java(Compiled Code)) at org.eclipse.jdt.internal.core.JavaElement.getChildrenOfType(JavaElement.java(Compiled Code)) at org.eclipse.jdt.internal.core.JarPackageFragment.getClassFiles(JarPackageFragment.java(Compiled Code)) at org.eclipse.jdt.internal.ui.browsing.PackagesViewLabelProvider.isEmpty(PackagesViewLabelProvider.java(Inlined Compiled Code)) at org.eclipse.jdt.internal.ui.browsing.PackagesViewLabelProvider.getLogicalPackageImage(PackagesViewLabelProvider.java(Inlined Compiled Code)) at org.eclipse.jdt.internal.ui.browsing.PackagesViewLabelProvider.getImage(PackagesViewLabelProvider.java(Compiled Code)) at org.eclipse.jface.viewers.DecoratingLabelProvider.getImage(DecoratingLabelProvider.java(Inlined Compiled Code)) at org.eclipse.jdt.internal.ui.browsing.PackagesView$4.getImage(PackagesView.java(Compiled Code)) at org.eclipse.jface.viewers.DecoratingLabelProvider.updateLabel(DecoratingLabelProvider.java(Compiled Code)) at org.eclipse.jface.viewers.StructuredViewer.buildLabel(StructuredViewer.java(Compiled Code)) at org.eclipse.jface.viewers.TableViewer.doUpdateItem(TableViewer.java(Compiled Code)) at org.eclipse.jdt.internal.ui.browsing.PackagesViewTableViewer.doUpdateItem(PackagesViewTableViewer.java(Compiled Code)) at org.eclipse.jface.viewers.StructuredViewer$UpdateItemSafeRunnable.run(StructuredViewer.java(Inlined Compiled Code)) at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java(Inlined Compiled Code)) at org.eclipse.core.runtime.Platform.run(Platform.java(Inlined Compiled Code)) at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java(Inlined Compiled Code)) at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java(Inlined Compiled Code)) at org.eclipse.jface.viewers.StructuredViewer.updateItem(StructuredViewer.java(Compiled Code)) at org.eclipse.jface.viewers.TableViewer.internalRefresh(TableViewer.java:755) at org.eclipse.jface.viewers.TableViewer.internalRefresh(TableViewer.java:737) at org.eclipse.jdt.internal.ui.browsing.PackagesViewTableViewer.internalRefresh(PackagesViewTableViewer.java:105) at org.eclipse.jface.viewers.StructuredViewer$7.run(StructuredViewer.java(Compiled Code)) at org.eclipse.jface.viewers.StructuredViewer.preservingSelection(StructuredViewer.java(Compiled Code)) at org.eclipse.jface.viewers.StructuredViewer.refresh(StructuredViewer.java(Compiled Code)) at org.eclipse.jdt.internal.ui.browsing.PackagesViewFlatContentProvider$3.run(PackagesViewFlatContentProvider.java:266) at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java(Compiled Code)) at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java(Compiled Code)) at org.eclipse.swt.widgets.Display.syncExec(Display.java:3246) at org.eclipse.jdt.internal.ui.browsing.PackagesViewFlatContentProvider.postRunnable(PackagesViewFlatContentProvider.java:229) at org.eclipse.jdt.internal.ui.browsing.PackagesViewFlatContentProvider.postRefresh(PackagesViewFlatContentProvider.java:262) at org.eclipse.jdt.internal.ui.browsing.PackagesViewFlatContentProvider.processDelta(PackagesViewFlatContentProvider.java:161) at org.eclipse.jdt.internal.ui.browsing.PackagesViewFlatContentProvider.processAffectedChildren(PackagesViewFlatContentProvider.java:195) at org.eclipse.jdt.internal.ui.browsing.PackagesViewFlatContentProvider.processDelta(PackagesViewFlatContentProvider.java:166) at org.eclipse.jdt.internal.ui.browsing.PackagesViewFlatContentProvider.processAffectedChildren(PackagesViewFlatContentProvider.java:195) at org.eclipse.jdt.internal.ui.browsing.PackagesViewFlatContentProvider.processDelta(PackagesViewFlatContentProvider.java:166) at org.eclipse.jdt.internal.ui.browsing.PackagesViewFlatContentProvider.processAffectedChildren(PackagesViewFlatContentProvider.java:195) at org.eclipse.jdt.internal.ui.browsing.PackagesViewFlatContentProvider.processDelta(PackagesViewFlatContentProvider.java:166) at org.eclipse.jdt.internal.ui.browsing.LogicalPackagesProvider.elementChanged(LogicalPackagesProvider.java:210) at org.eclipse.jdt.internal.core.DeltaProcessor$2.run(DeltaProcessor.java(Compiled Code)) at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java(Inlined Compiled Code)) at org.eclipse.core.runtime.Platform.run(Platform.java(Inlined Compiled Code)) at org.eclipse.jdt.internal.core.DeltaProcessor.notifyListeners(DeltaProcessor.java(Compiled Code)) at org.eclipse.jdt.internal.core.DeltaProcessor.firePostChangeDelta(DeltaProcessor.java:1266) at org.eclipse.jdt.internal.core.DeltaProcessor.fire(DeltaProcessor.java:1241) at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java(Compiled Code)) at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java(Compiled Code)) at org.eclipse.jdt.internal.core.CompilationUnit.discardWorkingCopy(CompilationUnit.java:428) at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitDocumentProvider.disposeFileInfo(CompilationUnitDocumentProvider.java:886) at org.eclipse.ui.editors.text.TextFileDocumentProvider.disconnect(TextFileDocumentProvider.java:584) at org.eclipse.ui.texteditor.AbstractTextEditor.disposeDocumentProvider(AbstractTextEditor.java:3240) at org.eclipse.ui.texteditor.AbstractDecoratedTextEditor.disposeDocumentProvider(AbstractDecoratedTextEditor.java:1256) at org.eclipse.ui.texteditor.AbstractTextEditor.dispose(AbstractTextEditor.java:3149) at org.eclipse.ui.texteditor.AbstractDecoratedTextEditor.dispose(AbstractDecoratedTextEditor.java:250) at org.eclipse.jdt.internal.ui.javaeditor.JavaEditor.dispose(JavaEditor.java:2265) at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor.dispose(CompilationUnitEditor.java:1651) at org.eclipse.ui.internal.WorkbenchPartReference.doDisposePart(WorkbenchPartReference.java:636) at org.eclipse.ui.internal.EditorReference.doDisposePart(EditorReference.java:252) at org.eclipse.ui.internal.WorkbenchPartReference.dispose(WorkbenchPartReference.java:616) at org.eclipse.ui.internal.WorkbenchPage.closeEditors(WorkbenchPage.java:1178) at org.eclipse.ui.internal.WorkbenchPage.closeEditor(WorkbenchPage.java:1202) at org.eclipse.ui.texteditor.AbstractTextEditor$17.run(AbstractTextEditor.java:3067) at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java(Inlined Compiled Code)) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java(Compiled Code)) at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java(Inlined Compiled Code)) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java(Compiled Code)) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java(Compiled Code)) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1565) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:315) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143) at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:103) at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:230) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:371) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:160) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60) at java.lang.reflect.Method.invoke(Method.java:391) at org.eclipse.core.launcher.Main.invokeFramework(Main.java:330) at org.eclipse.core.launcher.Main.basicRun(Main.java:274) at org.eclipse.core.launcher.Main.run(Main.java:977) at org.eclipse.core.launcher.Main.main(Main.java:952)

Files changed in fix:
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/PackagesViewLabelProvider.java