Bug 46975 - NPE in Scope.getBaseType
Summary: NPE in Scope.getBaseType
Status: CLOSED INVALID
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Linux-GTK
: P3 normal (vote)
Target Milestone: 3.0 M9   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2003-11-19 10:10 EST by Veronika Irvine CLA
Modified: 2009-08-30 02:09 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 Veronika Irvine CLA 2003-11-19 10:10:48 EST
I20031119

Select a method in editor and try to search for references in workspace.  
Consistently get the following error:

!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:386)
	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:196)
	at org.eclipse.jdt.ui.actions.SelectionDispatchAction.run
(SelectionDispatchAction.java:172)
	at org.eclipse.jface.action.Action.runWithEvent(Action.java:842)
	at 
org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection
(ActionContributionItem.java:542)
	at org.eclipse.jface.action.ActionContributionItem.access$4
(ActionContributionItem.java:494)
	at org.eclipse.jface.action.ActionContributionItem$6.handleEvent
(ActionContributionItem.java:466)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:967)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1839)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1619)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1402)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1378)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench
(Workbench.java:234)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:139)
	at org.eclipse.ui.internal.ide.IDEApplication.run
(IDEApplication.java:47)
	at org.eclipse.core.internal.boot.InternalBootLoader.run
(InternalBootLoader.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
(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:324)
	at org.eclipse.core.launcher.Main.basicRun(Main.java:299)
	at org.eclipse.core.launcher.Main.run(Main.java:767)
	at org.eclipse.core.launcher.Main.main(Main.java:601)
Caused by: java.lang.NullPointerException
	at org.eclipse.jdt.internal.compiler.lookup.Scope.getBaseType
(Scope.java:780)
	at org.eclipse.jdt.internal.compiler.lookup.Scope.getType
(Scope.java:1184)
	at 
org.eclipse.jdt.internal.compiler.ast.SingleTypeReference.getTypeBinding
(SingleTypeReference.java:43)
	at org.eclipse.jdt.internal.compiler.ast.TypeReference.resolveType
(TypeReference.java:116)
	at 
org.eclipse.jdt.internal.compiler.ast.JavadocFieldReference.internalResolveType
(JavadocFieldReference.java:38)
	at 
org.eclipse.jdt.internal.compiler.ast.JavadocFieldReference.resolveType
(JavadocFieldReference.java:87)
	at org.eclipse.jdt.internal.compiler.ast.Javadoc.resolve
(Javadoc.java:99)
	at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.resolve
(TypeDeclaration.java:845)
	at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.resolve
(TypeDeclaration.java:889)
	at 
org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration.resolve
(CompilationUnitDeclaration.java:271)
	at org.eclipse.jdt.internal.core.search.matching.MatchLocator.process
(MatchLocator.java:886)
	at 
org.eclipse.jdt.internal.core.search.matching.MatchLocator.locateMatches
(MatchLocator.java:604)
	at 
org.eclipse.jdt.internal.core.search.matching.MatchLocator.locateMatches
(MatchLocator.java:641)
	at 
org.eclipse.jdt.internal.core.search.matching.MatchLocator.locateMatches
(MatchLocator.java:750)
	at org.eclipse.jdt.core.search.SearchEngine.search
(SearchEngine.java:591)
	at org.eclipse.jdt.core.search.SearchEngine.search
(SearchEngine.java:523)
	at org.eclipse.jdt.internal.ui.search.JavaSearchOperation.execute
(JavaSearchOperation.java:97)
	at org.eclipse.ui.actions.WorkspaceModifyOperation$1.run
(WorkspaceModifyOperation.java:91)
	at org.eclipse.core.internal.resources.Workspace.run
(Workspace.java:1554)
	at org.eclipse.ui.actions.WorkspaceModifyOperation.run
(WorkspaceModifyOperation.java:105)
	at org.eclipse.jface.operation.ModalContext$ModalContextThread.run
(ModalContext.java:101)
Comment 1 Veronika Irvine CLA 2003-11-19 10:18:16 EST
Sorry, I was actually using I200311181147 - will retry with today's 
integration build.
Comment 2 Olivier Thomann CLA 2003-11-19 10:29:51 EST
What VM are you using? I am suspecting a JIT bug.
Comment 3 Veronika Irvine CLA 2003-11-19 11:01:38 EST
I am using Sun Hot Spot jdk 1.4.2-rc-b21
Comment 4 Olivier Thomann CLA 2003-11-19 15:09:39 EST
Please update to:
java version "1.4.2_02"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_02-b03)
Java HotSpot(TM) Client VM (build 1.4.2_02-b03, mixed mode)

And let us know if you still get it.
Comment 5 Philipe Mulet CLA 2003-11-21 06:21:21 EST
Please reopen if symptoms persist
Comment 6 Philipe Mulet CLA 2004-04-08 09:39:40 EDT
Timed out
Comment 7 Denis Roy CLA 2009-08-30 02:09:38 EDT
As of now 'LATER' and 'REMIND' resolutions are no longer supported.
Please reopen this bug if it is still valid for you.