Bug 42760 - NullPointerException in JobManager when searching
Summary: NullPointerException in JobManager when searching
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.1   Edit
Hardware: PC Windows NT
: P3 normal (vote)
Target Milestone: 3.0 M4   Edit
Assignee: Jerome Lanneluc CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-09-09 05:06 EDT by Ruben Hesselbæk CLA
Modified: 2003-10-14 11:56 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ruben Hesselbæk CLA 2003-09-09 05:06:11 EDT
I jeg the exception below whenever i try to search in JDT.
I have tried to delete my entire metadata directory without any luck.


ENTRY org.eclipse.jdt.ui 4 10001 sep 09, 2003 10:53:22.31
!MESSAGE Internal Error
!STACK 0
java.lang.reflect.InvocationTargetException
	at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:283)
	at org.eclipse.jface.dialogs.ProgressMonitorDialog.run
(ProgressMonitorDialog.java:357)
	at org.eclipse.jdt.ui.actions.FindAction.run(FindAction.java:292)
	at org.eclipse.jdt.ui.actions.FindReferencesAction.run
(FindReferencesAction.java:83)
	at org.eclipse.jdt.ui.actions.FindAction.run(FindAction.java:238)
	at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchRun
(SelectionDispatchAction.java:193)
	at org.eclipse.jdt.ui.actions.SelectionDispatchAction.run
(SelectionDispatchAction.java:169)
	at org.eclipse.jface.action.Action.runWithEvent(Action.java:842)
	at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection
(ActionContributionItem.java:456)
	at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent
(ActionContributionItem.java:403)
	at org.eclipse.jface.action.ActionContributionItem.access$0
(ActionContributionItem.java:397)
	at 
org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent
(ActionContributionItem.java:72)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:81)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:840)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1838)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1545)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1402)
	at org.eclipse.ui.internal.Workbench.run(Workbench.java:1385)
	at org.eclipse.core.internal.boot.InternalBootLoader.run
(InternalBootLoader.java:845)
	at org.eclipse.core.boot.BootLoader.run(BootLoader.java:461)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	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)
Caused by: java.lang.NullPointerException
	at 
org.eclipse.jdt.internal.core.search.processing.JobManager.performConcurrentJob
(JobManager.java:235)
	at org.eclipse.jdt.core.search.SearchEngine.search
(SearchEngine.java:457)
	at org.eclipse.jdt.core.search.SearchEngine.search
(SearchEngine.java:400)
	at org.eclipse.jdt.internal.ui.search.JavaSearchOperation.execute
(JavaSearchOperation.java:90)
	at org.eclipse.ui.actions.WorkspaceModifyOperation$1.run
(WorkspaceModifyOperation.java:71)
	at org.eclipse.core.internal.resources.Workspace.run
(Workspace.java:1595)
	at org.eclipse.ui.actions.WorkspaceModifyOperation.run
(WorkspaceModifyOperation.java:85)
	at org.eclipse.jface.operation.ModalContext$ModalContextThread.run
(ModalContext.java:101)
Comment 1 Philipe Mulet CLA 2003-09-09 05:09:14 EDT
Which build are you using ?
Comment 2 Ruben Hesselbæk CLA 2003-09-09 05:10:37 EDT
I'm using Eclipse 2.1 Win32.
Comment 3 Philipe Mulet CLA 2003-09-09 05:31:02 EDT
Fix for bug 20435 was insufficient. A NPE can still occur in your scenario. 

The background indexer likely was in the middle of crashing when this problem 
occurred. Exiting and restarting Eclipse should make it work again (we have 
some index recovery support).
Comment 4 Ruben Hesselbæk CLA 2003-09-09 05:35:25 EDT
Correction to my first post : 
Deleting the metadata directory actually works for some time.
Restarting eclipse has never been able to correct the problem.
Comment 5 Philipe Mulet CLA 2003-09-09 06:49:16 EDT
Fixed in latest (3.0 stream only)
Comment 6 David Audel CLA 2003-10-14 11:56:19 EDT
Verified.