Bug 7162 - Java Model Exceptions in log from TypeHierarchyLifeCycle
Summary: Java Model Exceptions in log from TypeHierarchyLifeCycle
Status: RESOLVED WORKSFORME
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 1.0   Edit
Hardware: PC Windows 2000
: P2 normal (vote)
Target Milestone: 2.0 M3   Edit
Assignee: Jerome Lanneluc CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-12-21 12:58 EST by Nick Edgar CLA
Modified: 2002-02-01 13:17 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nick Edgar CLA 2001-12-21 12:58:20 EST
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.
Comment 1 Martin Aeschlimann CLA 2002-01-11 06:31:59 EST
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?
Comment 2 Philipe Mulet CLA 2002-01-24 18:15:51 EST
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 ?
Comment 3 Nick Edgar CLA 2002-01-25 09:01:10 EST
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.
Comment 4 Jerome Lanneluc CLA 2002-01-31 07:53:24 EST
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.