Community
Participate
Working Groups
Stale Tasks View Driver: GM1 After working with the driver long enough, the Tasks view will not get updated even after fixed some errors. The IDE will not be usable after that because you can't trust the Tasks view anymore. !ENTRY org.eclipse.core.resources 4 2 Jul 09, 2002 18:29:12.737 !MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.core.resources". !STACK 0 java.lang.NullPointerException at org.eclipse.ui.views.tasklist.TaskListContentProvider.resourceChanged(TaskListCo ntentProvider.java(Compiled Code)) at org.eclipse.ui.views.tasklist.TaskListContentProvider.resourceChanged(TaskListCo ntentProvider.java(Compiled Code)) at org.eclipse.ui.views.tasklist.TaskListContentProvider.resourceChanged(TaskListCo ntentProvider.java(Compiled Code)) at org.eclipse.ui.views.tasklist.TaskListContentProvider.resourceChanged(TaskListCo ntentProvider.java(Compiled Code)) at org.eclipse.core.internal.events.NotificationManager$1.run(NotificationManager.j ava(Compiled Code)) at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java(Com piled Code)) at org.eclipse.core.internal.events.NotificationManager.notify(NotificationManager. java(Compiled Code)) at org.eclipse.core.internal.events.NotificationManager.notify(NotificationManager. java(Compiled Code)) at org.eclipse.core.internal.events.NotificationManager.broadcastChanges(Notificati onManager.java:67) at org.eclipse.core.internal.resources.Workspace.broadcastChanges(Workspace.java:13 3) at org.eclipse.core.internal.resources.Workspace.endOperation(Workspace.java(Compil ed Code)) at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1366) at org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOperation.jav a:78) at org.eclipse.ui.texteditor.AbstractTextEditor.performSaveOperation(AbstractTextEd itor.java:2120) at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor.performSaveOperatio n(CompilationUnitEditor.java:664) at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor.doSave(CompilationU nitEditor.java:712) at org.eclipse.ui.internal.EditorManager$11.run(EditorManager.java:987) at org.eclipse.ui.internal.EditorManager$8.run(EditorManager.java:856) at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:29 9) at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:249) at org.eclipse.jface.window.ApplicationWindow$1.run(ApplicationWindow.java:394) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java(Compiled Code)) at org.eclipse.jface.window.ApplicationWindow.run(ApplicationWindow.java:391) at org.eclipse.ui.internal.WorkbenchWindow.run(WorkbenchWindow.java:1105) at org.eclipse.ui.internal.EditorManager.runProgressMonitorOperation(EditorManager. java:862) at org.eclipse.ui.internal.EditorManager.saveEditor(EditorManager.java:992) at org.eclipse.ui.internal.WorkbenchPage.saveEditor(WorkbenchPage.java:1922) at org.eclipse.ui.internal.SaveAction.run(SaveAction.java:32) at org.eclipse.jface.action.Action.runWithEvent(Action.java:749) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionCont ributionItem.java:407) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent(Actio nContributionItem.java(Compiled Code)) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent(Actio nContributionItem.java(Compiled Code)) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent(Actio nContributionItem.java(Compiled Code)) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java(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.run(Workbench.java:1160) at org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:77 5) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:462) at java.lang.reflect.Method.invoke(Native Method) at org.eclipse.core.launcher.Main.basicRun(Main.java:248) at org.eclipse.core.launcher.Main.run(Main.java:698) at org.eclipse.core.launcher.Main.main(Main.java:534) !ENTRY org.eclipse.core.resources 4 2 Jul 09, 2002 18:30:02.488 !MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.core.resources". !STACK 0 java.lang.NullPointerException at org.eclipse.ui.views.tasklist.TaskListContentProvider.resourceChanged(TaskListCo ntentProvider.java(Compiled Code)) at org.eclipse.ui.views.tasklist.TaskListContentProvider.resourceChanged(TaskListCo ntentProvider.java(Compiled Code)) at org.eclipse.ui.views.tasklist.TaskListContentProvider.resourceChanged(TaskListCo ntentProvider.java(Compiled Code)) at org.eclipse.ui.views.tasklist.TaskListContentProvider.resourceChanged(TaskListCo ntentProvider.java(Compiled Code)) at org.eclipse.core.internal.events.NotificationManager$1.run(NotificationManager.j ava(Compiled Code)) at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java(Com piled Code)) at org.eclipse.core.internal.events.NotificationManager.notify(NotificationManager. java(Compiled Code)) at org.eclipse.core.internal.events.NotificationManager.notify(NotificationManager. java(Compiled Code)) at org.eclipse.core.internal.events.NotificationManager.broadcastChanges(Notificati onManager.java:67) at org.eclipse.core.internal.resources.Workspace.broadcastChanges(Workspace.java:13 3) at org.eclipse.core.internal.resources.Workspace.endOperation(Workspace.java(Compil ed Code)) at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1366) at org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOperation.jav a:78) at org.eclipse.ui.texteditor.AbstractTextEditor.performSaveOperation(AbstractTextEd itor.java:2120) at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor.performSaveOperatio n(CompilationUnitEditor.java:664) at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor.doSave(CompilationU nitEditor.java:712) at org.eclipse.ui.internal.EditorManager$11.run(EditorManager.java:987) at org.eclipse.ui.internal.EditorManager$8.run(EditorManager.java:856) at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:29 9) at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:249) at org.eclipse.jface.window.ApplicationWindow$1.run(ApplicationWindow.java:394) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java(Compiled Code)) at org.eclipse.jface.window.ApplicationWindow.run(ApplicationWindow.java:391) at org.eclipse.ui.internal.WorkbenchWindow.run(WorkbenchWindow.java:1105) at org.eclipse.ui.internal.EditorManager.runProgressMonitorOperation(EditorManager. java:862) at org.eclipse.ui.internal.EditorManager.saveEditor(EditorManager.java:992) at org.eclipse.ui.internal.WorkbenchPage.saveEditor(WorkbenchPage.java:1922) at org.eclipse.ui.internal.SaveAction.run(SaveAction.java:32) at org.eclipse.jface.action.Action.runWithEvent(Action.java:749) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionCont ributionItem.java:407) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent(Actio nContributionItem.java(Compiled Code)) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent(Actio nContributionItem.java(Compiled Code)) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent(Actio nContributionItem.java(Compiled Code)) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java(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.run(Workbench.java:1160) at org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:77 5) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:462) at java.lang.reflect.Method.invoke(Native Method) at org.eclipse.core.launcher.Main.basicRun(Main.java:248) at org.eclipse.core.launcher.Main.run(Main.java:698) at org.eclipse.core.launcher.Main.main(Main.java:534) !ENTRY org.eclipse.core.resources 4 2 Jul 09, 2002 18:32:20.717 !MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.core.resources". !STACK 0 java.lang.NullPointerException at org.eclipse.ui.views.tasklist.TaskListContentProvider.resourceChanged(TaskListCo ntentProvider.java(Compiled Code)) at org.eclipse.ui.views.tasklist.TaskListContentProvider.resourceChanged(TaskListCo ntentProvider.java(Compiled Code)) at org.eclipse.ui.views.tasklist.TaskListContentProvider.resourceChanged(TaskListCo ntentProvider.java(Compiled Code)) at org.eclipse.ui.views.tasklist.TaskListContentProvider.resourceChanged(TaskListCo ntentProvider.java(Compiled Code)) at org.eclipse.core.internal.events.NotificationManager$1.run(NotificationManager.j ava(Compiled Code)) at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java(Com piled Code)) at org.eclipse.core.internal.events.NotificationManager.notify(NotificationManager. java(Compiled Code)) at org.eclipse.core.internal.events.NotificationManager.notify(NotificationManager. java(Compiled Code)) at org.eclipse.core.internal.events.NotificationManager.broadcastChanges(Notificati onManager.java:67) at org.eclipse.core.internal.resources.Workspace.broadcastChanges(Workspace.java:13 3) at org.eclipse.core.internal.resources.Workspace.endOperation(Workspace.java(Compil ed Code)) at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1366) at org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOperation.jav a:78) at org.eclipse.ui.texteditor.AbstractTextEditor.performSaveOperation(AbstractTextEd itor.java:2120) at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor.performSaveOperatio n(CompilationUnitEditor.java:664) at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor.doSave(CompilationU nitEditor.java:712) at org.eclipse.ui.internal.EditorManager$11.run(EditorManager.java:987) at org.eclipse.ui.internal.EditorManager$8.run(EditorManager.java:856) at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:29 9) at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:249) at org.eclipse.jface.window.ApplicationWindow$1.run(ApplicationWindow.java:394) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java(Compiled Code)) at org.eclipse.jface.window.ApplicationWindow.run(ApplicationWindow.java:391) at org.eclipse.ui.internal.WorkbenchWindow.run(WorkbenchWindow.java:1105) at org.eclipse.ui.internal.EditorManager.runProgressMonitorOperation(EditorManager. java:862) at org.eclipse.ui.internal.EditorManager.saveEditor(EditorManager.java:992) at org.eclipse.ui.internal.WorkbenchPage.saveEditor(WorkbenchPage.java:1922) at org.eclipse.ui.internal.SaveAction.run(SaveAction.java:32) at org.eclipse.jface.action.Action.runWithEvent(Action.java:749) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionCont ributionItem.java:407) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent(Actio nContributionItem.java(Compiled Code)) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent(Actio nContributionItem.java(Compiled Code)) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent(Actio nContributionItem.java(Compiled Code)) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java(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.run(Workbench.java:1160) at org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:77 5) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:462) at java.lang.reflect.Method.invoke(Native Method) at org.eclipse.core.launcher.Main.basicRun(Main.java:248) at org.eclipse.core.launcher.Main.run(Main.java:698) at org.eclipse.core.launcher.Main.main(Main.java:534)
I've also experienced this problem, but can't reproduce it at will. The effect of it is very disconcerting, you start to lose confidence in the Tasks list. Looking at the failing method, it's hard to imagine where the NPE comes from...
The stack dumps indicate that this code has been JIT'ed. It's conceivable that this is a dup of bug 21761 if it inlined the calls to isAffectedBy and checkResource.
I have a reproducible test case for WSAD, but not for Eclipse. 1. Download this file from http://examples.oreilly.com/jserverpages/jspbook.zip 2. On a fresh WSAD workspace, create a java project JP 3. Import the zip (only the com folder under src) into workspace 4. I got the following stack trace immediately !ENTRY org.eclipse.core.resources 4 2 Aug 19, 2002 14:30:49.407 !MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.core.resources". !STACK 0 java.lang.NullPointerException at org.eclipse.ui.views.tasklist.TaskListContentProvider.resourceChanged(TaskListCo ntentProvider.java(Compiled Code)) at org.eclipse.ui.views.tasklist.TaskListContentProvider.resourceChanged(TaskListCo ntentProvider.java(Compiled Code)) at org.eclipse.ui.views.tasklist.TaskListContentProvider.resourceChanged(TaskListCo ntentProvider.java(Compiled Code)) at org.eclipse.ui.views.tasklist.TaskListContentProvider.resourceChanged(TaskListCo ntentProvider.java(Compiled Code)) at org.eclipse.core.internal.events.NotificationManager$1.run(NotificationManager.j ava:128) at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:831 ) at org.eclipse.core.runtime.Platform.run(Platform.java:416) at org.eclipse.core.internal.events.NotificationManager.notify(NotificationManager. java:143) at org.eclipse.core.internal.events.NotificationManager.broadcastChanges(Notificati onManager.java:67) at org.eclipse.core.internal.resources.Workspace.broadcastChanges(Workspace.java:13 3) at org.eclipse.core.internal.resources.Workspace.endOperation(Workspace.java:741) at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1366) at org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOperation.jav a:78) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.jav a:98)
I've recreated this today, but can't say exactly how I got there. I have a few more clues here in this broken workbench. It seems that it is definitely related to the filter. The problem goes away if I turn off the tasks list filter. If I turn on any filter, in this particular case, it refers to an exaggerated number of tasks. For example, there are only 30 real tasks in my workspace, and with no filter I see "Tasks (30 items". If I turn the filter on, switching to "on selected resource and its children", I see (Filter matched 0 of 639 items)". I had a project a couple hours ago which did have 600+ errors in it, and I deleted it. Maybe those tasks are still hanging around somewhere?
still not reproducable on eclipse. moving target milestone to 2.1 awaiting complete rework of taskview.
With the JIT on, it is almost 100% reproducible on WSAD (WB2.01) with IBM JRE cn131-20020710. I followed the instruction from Chris to disable the JIT. I was not able to reproduce the problem anymore. I also tried Chris's suggestion to run WSAD on Sun's JRE 1.3.1 (without turning JIT off) and I was not able to reproduce the problem too.
*** Bug 22657 has been marked as a duplicate of this bug. ***
for those interested, the jit can be disabled on the IBM VM like so: eclipse -vm d:\jdk1.3.1\jre\bin\java -debug -vmargs -Djava.compiler=NONE note that if you are providing other arguments to eclipse, the -vmargs argument must appear last.
That workaround is a little too drastic, performance with JAVA_COMPILER=none is something like 40% slower. This more specific workaround will have less of a performance impact. Set the following environment variable for your eclipse execution: set JITC_COMPILEOPT=SKIP{org/eclipse/ui/views/tasklist/TaskListContentProvider} {resourceChanged}
*** Bug 22537 has been marked as a duplicate of this bug. ***
as it seems to be agreed that this is a JIT problem, i'm considering this workaround as the fix in this case.
Work-around is the short term fix. Long term is fixing the JRE/JIT. A Java problem has been opened with the JRE provider. A WSWB/Eclipse platform specific test case has been identified and passed on to JRE/WSWB support teams.
*** Bug 24080 has been marked as a duplicate of this bug. ***
Pat, if you have a reproduceable use case against Eclipse, can we get the steps please? Thanks, Nick
*** Bug 33481 has been marked as a duplicate of this bug. ***
Chris made some changes to see if we can throw off the JIT problem. But we would like to test against your reproduceable case if possible.
I had one once.... I'll search and see if I can find the exact script (It was written up to send of to Java-land in Hursley). It was based on a large import of raw materials for a class where errors were due to plug-ins not yet known to the platform. Unless I hear different, I'll assume I should try this using RC1.
The problem should still be there in RC1. Chris's changes, to attempt to get the JIT to go down a different path, just went in today, and will be in for RC2.