Community
Participate
Working Groups
Build 20011219 While investigating a different error, I noticed the log had many entries of the form below (one or more a second for over a minute). I had not seen any error dialogs for this. I had been opening some fairly large hierarchies, e.g. IAction, Action, IActionDelegate. I have a self-hosting workspace with org.eclipse.ui and related tests and examples loaded. JDT, Core and other plugins are in binary projects. I'll also attach the full log. Ignore unrelated exceptions in there. Java Model Exception: Java Model Status [WorkbenchStatus.java does not exist.] at org.eclipse.jdt.internal.core.JavaElement.newNotPresentException (JavaElement.java:448) at org.eclipse.jdt.internal.core.Openable.getUnderlyingResource (Openable.java(Compiled Code)) at org.eclipse.jdt.internal.core.CompilationUnit.getCorrespondingResource (CompilationUnit.java:277) at org.eclipse.jdt.internal.core.Openable.openWhenClosed (Openable.java:349) at org.eclipse.jdt.internal.core.JavaElement.openHierarchy (JavaElement.java:469) at org.eclipse.jdt.internal.core.JavaElement.getElementInfo (JavaElement.java(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.CompilationUnit.getAllTypes (CompilationUnit.java(Compiled Code)) at org.eclipse.jdt.internal.core.CompilationUnit.getAllTypes (CompilationUnit.java(Compiled Code)) at org.eclipse.jdt.internal.ui.typehierarchy.TypeHierarchyLifeCycle.processDelta (TypeHierarchyLifeCycle.java(Compiled Code)) at org.eclipse.jdt.internal.ui.typehierarchy.TypeHierarchyLifeCycle.processDelta (TypeHierarchyLifeCycle.java(Compiled Code)) at org.eclipse.jdt.internal.ui.typehierarchy.TypeHierarchyLifeCycle.processDelta (TypeHierarchyLifeCycle.java(Compiled Code)) at org.eclipse.jdt.internal.ui.typehierarchy.TypeHierarchyLifeCycle.processDelta (TypeHierarchyLifeCycle.java(Compiled Code)) at org.eclipse.jdt.internal.ui.typehierarchy.TypeHierarchyLifeCycle.processDelta (TypeHierarchyLifeCycle.java(Compiled Code)) at org.eclipse.jdt.internal.ui.typehierarchy.TypeHierarchyLifeCycle.processDelta (TypeHierarchyLifeCycle.java(Compiled Code)) at org.eclipse.jdt.internal.ui.typehierarchy.TypeHierarchyLifeCycle.processDelta (TypeHierarchyLifeCycle.java(Compiled Code)) at org.eclipse.jdt.internal.ui.typehierarchy.TypeHierarchyLifeCycle.processDelta (TypeHierarchyLifeCycle.java(Compiled Code)) at org.eclipse.jdt.internal.ui.typehierarchy.TypeHierarchyLifeCycle.processDelta (TypeHierarchyLifeCycle.java(Compiled Code)) at org.eclipse.jdt.internal.ui.typehierarchy.TypeHierarchyLifeCycle.elementChanged (TypeHierarchyLifeCycle.java:195) at org.eclipse.jdt.internal.core.JavaModelManager.fire (JavaModelManager.java:525) at org.eclipse.jdt.internal.core.JavaModelManager.resourceChanged (JavaModelManager.java:1108) at org.eclipse.core.internal.events.NotificationManager$1.run (NotificationManager.java:125) at org.eclipse.core.internal.runtime.InternalPlatform.run (InternalPlatform.java(Compiled Code)) at org.eclipse.core.runtime.Platform.run(Platform.java(Compiled Code)) at org.eclipse.core.internal.events.NotificationManager.notify (NotificationManager.java:140) at org.eclipse.core.internal.events.NotificationManager.broadcastChanges (NotificationManager.java:43) at org.eclipse.core.internal.events.NotificationManager.broadcastChanges (NotificationManager.java:64) at org.eclipse.core.internal.resources.Workspace.broadcastChanges (Workspace.java:121) at org.eclipse.core.internal.resources.Workspace.endOperation (Workspace.java(Compiled Code)) at org.eclipse.core.internal.resources.Workspace.run (Workspace.java:1237) at org.eclipse.ui.actions.WorkspaceModifyOperation.run (WorkspaceModifyOperation.java:78) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run (ModalContext.java:98) 4 org.eclipse.jdt.core 969 WorkbenchStatus.java does not exist.
I had this bug many times too. Couldn't reproduce on 20109 though. Problem is that JavaElementDelta of a CU reports CU to be changed, but accessing it result in a 'does-not-exist' exception. Philippe, was there any change on this? Can I asume that elements that are reported to be changed are existing, or should I add a exists test?
I am suspecting this is a duplicate of 8359. Did these happen after having upgraded your workspace (newer JARs from a more recent build) and without exiting/restarting ? We are aware of some issues there, where indexes would not be refreshed properly, and thus allowing to recreate Java element handles for no longer existing elements (e.g. hierarchies could expose these, or open type dialog). Can you confirm these symptoms ?
As indicated, I had been opening hierarchies. I probably did upgrade to the latest build without replacing the workspace. However, I always shutdown before updating.
Fixed bug 8359. However, it's hard to say if this fixes this bug as there is no test case. Closing for now. Nick or Martin, please reopen if you see this problem in a build after 20020205.