Bug 40020 - Exceptions in console
Summary: Exceptions in console
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.0 M4   Edit
Assignee: Jerome Lanneluc CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 40217 42188 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-07-14 09:56 EDT by Martin Aeschlimann CLA
Modified: 2003-10-14 10:58 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Aeschlimann CLA 2003-07-14 09:56:00 EDT
20030710

I have several of these exceptions in my console (not log!). The class
'JavaCorrectionProcessor' exists and has not been added or removed lately

Java Model Exception: Java Model Status [JavaCorrectionProcessor [in JavaCorrect
ionProcessor.java [in org.eclipse.jdt.internal.ui.text.correction [in ui [in org
.eclipse.jdt.ui]]]] does not exist.]
        at org.eclipse.jdt.internal.core.JavaElement.newNotPresentException(Java
Element.java:437)
        at org.eclipse.jdt.internal.core.SourceRefElement.generateInfos(SourceRe
fElement.java:80)
        at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.
java:448)
        at org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.
java:269)
        at org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.
java:255)
        at org.eclipse.jdt.internal.core.SourceType.getSuperclassName(SourceType
.java:282)
        at org.eclipse.jdt.internal.core.hierarchy.TypeHierarchy.subtypesInclude
SupertypeOf(TypeHierarchy.java:1546)
        at org.eclipse.jdt.internal.core.hierarchy.TypeHierarchy.isAffectedByTyp
e(TypeHierarchy.java:1101)
        at org.eclipse.jdt.internal.core.hierarchy.TypeHierarchy.isAffectedByOpe
nable(TypeHierarchy.java:1052)
        at org.eclipse.jdt.internal.core.hierarchy.TypeHierarchy.isAffected(Type
Hierarchy.java:876)
        at org.eclipse.jdt.internal.core.hierarchy.TypeHierarchy.isAffectedByChi
ldren(TypeHierarchy.java:889)
        at org.eclipse.jdt.internal.core.hierarchy.TypeHierarchy.isAffectedByPac
kageFragment(TypeHierarchy.java:958)
        at org.eclipse.jdt.internal.core.hierarchy.TypeHierarchy.isAffected(Type
Hierarchy.java:873)
        at org.eclipse.jdt.internal.core.hierarchy.TypeHierarchy.isAffectedByChi
ldren(TypeHierarchy.java:889)
        at org.eclipse.jdt.internal.core.hierarchy.TypeHierarchy.isAffectedByPac
kageFragmentRoot(TypeHierarchy.java:1008)
        at org.eclipse.jdt.internal.core.hierarchy.TypeHierarchy.isAffected(Type
Hierarchy.java:871)
        at org.eclipse.jdt.internal.core.hierarchy.TypeHierarchy.isAffectedByChi
ldren(TypeHierarchy.java:889)
        at org.eclipse.jdt.internal.core.hierarchy.TypeHierarchy.isAffectedByJav
aProject(TypeHierarchy.java:940)
        at org.eclipse.jdt.internal.core.hierarchy.TypeHierarchy.isAffected(Type
Hierarchy.java:869)
        at org.eclipse.jdt.internal.core.hierarchy.TypeHierarchy.isAffectedByChi
ldren(TypeHierarchy.java:889)
        at org.eclipse.jdt.internal.core.hierarchy.TypeHierarchy.isAffectedByJav
aModel(TypeHierarchy.java:905)
        at org.eclipse.jdt.internal.core.hierarchy.TypeHierarchy.isAffected(Type
Hierarchy.java:867)
        at org.eclipse.jdt.internal.core.hierarchy.TypeHierarchy.elementChanged(
TypeHierarchy.java:390)
        at org.eclipse.jdt.internal.core.DeltaProcessor$2.run(DeltaProcessor.jav
a:1394)
        at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatfo
rm.java:1015)
        at org.eclipse.core.runtime.Platform.run(Platform.java:420)
        at org.eclipse.jdt.internal.core.DeltaProcessor.notifyListeners(DeltaPro
cessor.java:1389)
        at org.eclipse.jdt.internal.core.DeltaProcessor.firePostChangeDelta(Delt
aProcessor.java:1222)
        at org.eclipse.jdt.internal.core.DeltaProcessor.fire(DeltaProcessor.java
:1188)
        at org.eclipse.jdt.internal.core.DeltaProcessor.resourceChanged(DeltaPro
cessor.java:1932)
        at org.eclipse.core.internal.events.NotificationManager$1.run(Notificati
onManager.java:137)
        at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatfo
rm.java:1015)
        at org.eclipse.core.runtime.Platform.run(Platform.java:420)
        at org.eclipse.core.internal.events.NotificationManager.notify(Notificat
ionManager.java:152)
        at org.eclipse.core.internal.events.NotificationManager.broadcastChanges
(NotificationManager.java:67)
        at org.eclipse.core.internal.resources.Workspace.broadcastChanges(Worksp
ace.java:161)
        at org.eclipse.core.internal.resources.Workspace.endOperation(Workspace.
java:892)
        at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1600
)
        at org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOp
eration.java:85)
        at org.eclipse.ui.texteditor.AbstractTextEditor.performSaveOperation(Abs
tractTextEditor.java:3117)
        at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor.performS
aveOperation(CompilationUnitEditor.java:755)
        at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor.doSave(C
ompilationUnitEditor.java:819)
        at org.eclipse.ui.internal.EditorManager$11.run(EditorManager.java:1090)

        at org.eclipse.ui.internal.EditorManager$8.run(EditorManager.java:960)
        at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalCont
ext.java:302)
        at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:252)
        at org.eclipse.jface.window.ApplicationWindow$1.run(ApplicationWindow.ja
va:444)
        at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)

        at org.eclipse.jface.window.ApplicationWindow.run(ApplicationWindow.java
:441)
        at org.eclipse.ui.internal.WorkbenchWindow.run(WorkbenchWindow.java:1606
)
        at org.eclipse.ui.internal.EditorManager.runProgressMonitorOperation(Edi
torManager.java:966)
        at org.eclipse.ui.internal.EditorManager.savePart(EditorManager.java:109
5)
        at org.eclipse.ui.internal.WorkbenchPage.savePart(WorkbenchPage.java:230
5)
        at org.eclipse.ui.internal.WorkbenchPage.saveEditor(WorkbenchPage.java:2
317)
        at org.eclipse.ui.internal.SaveAction.run(SaveAction.java:57)
        at org.eclipse.jface.action.Action.runWithEvent(Action.java:842)
        at org.eclipse.ui.internal.commands.ActionHandler.runWithEvent(ActionHan
dler.java:40)
        at org.eclipse.ui.internal.commands.ContextAndHandlerManager.pressed(Con
textAndHandlerManager.java:242)
        at org.eclipse.ui.internal.commands.ContextAndHandlerManager.access$6(Co
ntextAndHandlerManager.java:228)
        at org.eclipse.ui.internal.commands.ContextAndHandlerManager$7.widgetSel
ected(ContextAndHandlerManager.java:354)
        at org.eclipse.ui.internal.AcceleratorMenu$2.handleEvent(AcceleratorMenu
.java:68)
        at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:848)
        at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2041)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1747)
        at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1383)
        at org.eclipse.ui.internal.Workbench.run(Workbench.java:1366)
        at org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoa
der.java:858)
        at org.eclipse.core.boot.BootLoader.run(BootLoader.java:461)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at org.eclipse.core.launcher.Main.basicRun(Main.java:291)
        at org.eclipse.core.launcher.Main.run(Main.java:747)
        at org.eclipse.core.launcher.Main.main(Main.java:583)
Comment 1 Philipe Mulet CLA 2003-07-14 11:32:32 EDT
Do you have steps to reproduce ?
Comment 2 Martin Aeschlimann CLA 2003-07-14 11:42:45 EDT
I'm afraid not. I found it in the cosole and couldn't reproduce it. But I had
two of these exception in the log.
Comment 3 Martin Aeschlimann CLA 2003-07-14 11:43:10 EDT
sorry, not in the 'log', in the console.
Comment 4 Philipe Mulet CLA 2003-07-16 17:55:23 EDT
*** Bug 40217 has been marked as a duplicate of this bug. ***
Comment 5 Jerome Lanneluc CLA 2003-07-21 10:59:25 EDT
According to the stack trace, the type 'JavaCorrectionProcessor' is reported 
added by the Java element delta.
Comment 6 Jerome Lanneluc CLA 2003-08-22 11:12:21 EDT
Please reopen if you have steps to reproduce.
Comment 7 Jerome Lanneluc CLA 2003-08-28 04:54:30 EDT
*** Bug 42188 has been marked as a duplicate of this bug. ***
Comment 8 Jerome Lanneluc CLA 2003-08-28 06:52:27 EDT
Reopening for investigation.
Comment 9 Jerome Lanneluc CLA 2003-08-28 06:58:39 EDT
Looking at the code, it seems to be a race condition problem.

Fixed SourceRefElement.generateInfos(...) to not throw a not present exception 
as this check is done later on JavaElement.openWhenClosed(...) which is thread 
safe.

Note: fix won't be in 3.0 M3 but it will be in M4.
Comment 10 David Audel CLA 2003-10-14 10:58:27 EDT
Verified.