Bug 13988 - Exception during Code assist
Summary: Exception during Code assist
Status: RESOLVED WONTFIX
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 19501 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-04-17 07:40 EDT by Dirk Baeumer CLA
Modified: 2009-08-30 02:39 EDT (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 Dirk Baeumer CLA 2002-04-17 07:40:22 EDT
Build 20020416

java.lang.NullPointerException
	at org.eclipse.jdt.internal.core.index.impl.CodeByteStream.readUnary
(CodeByteStream.java:168)
	at org.eclipse.jdt.internal.core.index.impl.CodeByteStream.readGamma
(CodeByteStream.java:107)
	at 
org.eclipse.jdt.internal.core.index.impl.GammaCompressedIndexBlock.nextEntry
(GammaCompressedIndexBlock.java:90)
	at 
org.eclipse.jdt.internal.core.index.impl.BlocksIndexInput.queryEntriesPrefixedBy
(BlocksIndexInput.java:279)
	at 
org.eclipse.jdt.internal.core.search.matching.SearchPattern.findIndexMatches
(SearchPattern.java:1234)
	at 
org.eclipse.jdt.internal.core.search.matching.SearchPattern.findIndexMatches
(SearchPattern.java:1221)
	at org.eclipse.jdt.internal.core.search.PatternSearchJob.search
(PatternSearchJob.java:141)
	at org.eclipse.jdt.internal.core.search.PatternSearchJob.execute
(PatternSearchJob.java:86)
	at 
org.eclipse.jdt.internal.core.search.processing.JobManager.performConcurrentJob
(JobManager.java:230)
	at org.eclipse.jdt.core.search.SearchEngine.searchAllTypeNames
(SearchEngine.java:521)
	at org.eclipse.jdt.internal.core.SearchableEnvironment.findTypes
(SearchableEnvironment.java:221)
	at 
org.eclipse.jdt.internal.codeassist.CompletionEngine.findTypesAndPackages
(CompletionEngine.java:2208)
	at org.eclipse.jdt.internal.codeassist.CompletionEngine.complete
(CompletionEngine.java:371)
	at org.eclipse.jdt.internal.codeassist.CompletionEngine.complete
(CompletionEngine.java:802)
	at org.eclipse.jdt.internal.core.Openable.codeComplete
(Openable.java:114)
	at org.eclipse.jdt.internal.core.CompilationUnit.codeComplete
(CompilationUnit.java:95)
	at 
org.eclipse.jdt.internal.ui.text.java.JavaCompletionProcessor.computeCompletionP
roposals(JavaCompletionProcessor.java:321)
	at 
org.eclipse.jface.text.contentassist.ContentAssistant.computeCompletionProposals
(ContentAssistant.java:1205)
	at 
org.eclipse.jface.text.contentassist.CompletionProposalPopup.computeProposals
(CompletionProposalPopup.java:104)
	at org.eclipse.jface.text.contentassist.CompletionProposalPopup.access$3
(CompletionProposalPopup.java:103)
	at org.eclipse.jface.text.contentassist.CompletionProposalPopup$1.run
(CompletionProposalPopup.java:72)
	at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:56)
	at 
org.eclipse.jface.text.contentassist.CompletionProposalPopup.showProposals
(CompletionProposalPopup.java:67)
	at 
org.eclipse.jface.text.contentassist.ContentAssistant.showPossibleCompletions
(ContentAssistant.java:1140)
	at 
org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor$AdaptedSourceViewer
.doOperation(CompilationUnitEditor.java:215)
	at org.eclipse.ui.texteditor.TextOperationAction.run
(TextOperationAction.java:61)
	at org.eclipse.ui.texteditor.RetargetTextEditorAction.run
(RetargetTextEditorAction.java:103)
	at org.eclipse.jface.action.Action.runWithEvent(Action.java:590)
	at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection
(ActionContributionItem.java:407)
	at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent
(ActionContributionItem.java:361)
	at org.eclipse.jface.action.ActionContributionItem.access$0
(ActionContributionItem.java:352)
	at 
org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent
(ActionContributionItem.java:47)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75)
	at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:836)
	at org.eclipse.ui.internal.Workbench.run(Workbench.java:819)
	at org.eclipse.core.internal.boot.InternalBootLoader.run
(InternalBootLoader.java:777)
	at org.eclipse.core.boot.BootLoader.run(BootLoader.java:319)
	at java.lang.reflect.Method.invoke(Native Method)
	at org.eclipse.core.launcher.Main.basicRun(Main.java:190)
	at org.eclipse.core.launcher.Main.run(Main.java:549)
	at org.eclipse.core.launcher.Main.main(Main.java:390)
Comment 1 Philipe Mulet CLA 2002-04-17 09:37:54 EDT
Which jdk are you running on ? ibm jre 1.3.1 with jit enabled ?

The only NPE which could occur on this line is using a field which cannot be 
null at this point.
Comment 2 Dirk Baeumer CLA 2002-04-17 10:03:34 EDT
No I am using JDK 1.3.1_01

The second time I activated code assist everything worked fine.
Comment 3 Philipe Mulet CLA 2002-05-03 04:20:34 EDT
Could have been fixed by recent changes added to background indexer.
Comment 4 Mariano Kamp CLA 2002-05-13 09:53:29 EDT
I get almost the same error, but with a different root. I haven't been using 
the code assist, but it was probably the tooltip.

I got a message saying: Internal Error ... Exit workspace?
I did say no and it was working fine for a couple of minutes then I got the 
same error dialog, but this time an swt error was logged. Unfortunately I 
didn't copy that. I will attach the other error if it does occur again.
I am using JDK1.4rc. I am using 20020425. 


java.lang.NullPointerException
	at org.eclipse.jdt.internal.core.index.impl.CodeByteStream.readUnary
(CodeByteStream.java:168)
	at org.eclipse.jdt.internal.core.index.impl.CodeByteStream.readGamma
(CodeByteStream.java:107)
	at 
org.eclipse.jdt.internal.core.index.impl.GammaCompressedIndexBlock.nextEntry
(GammaCompressedIndexBlock.java:90)
	at 
org.eclipse.jdt.internal.core.index.impl.BlocksIndexInput.queryEntriesPrefixedBy
(BlocksIndexInput.java:279)
	at 
org.eclipse.jdt.internal.core.search.matching.SearchPattern.findIndexMatches
(SearchPattern.java:1234)
	at 
org.eclipse.jdt.internal.core.search.matching.SearchPattern.findIndexMatches
(SearchPattern.java:1221)
	at org.eclipse.jdt.internal.core.search.PatternSearchJob.search
(PatternSearchJob.java:141)
	at org.eclipse.jdt.internal.core.search.PatternSearchJob.execute
(PatternSearchJob.java:86)
	at 
org.eclipse.jdt.internal.core.search.processing.JobManager.performConcurrentJob
(JobManager.java:230)
	at org.eclipse.jdt.core.search.SearchEngine.searchAllTypeNames
(SearchEngine.java:521)
	at org.eclipse.jdt.internal.core.SearchableEnvironment.findTypes
(SearchableEnvironment.java:221)
	at org.eclipse.jdt.internal.codeassist.SelectionEngine.select
(SelectionEngine.java:467)
	at org.eclipse.jdt.internal.core.Openable.codeSelect(Openable.java:143)
	at org.eclipse.jdt.internal.core.Openable.codeSelect(Openable.java:122)
	at org.eclipse.jdt.internal.core.CompilationUnit.codeSelect
(CompilationUnit.java:102)
	at 
org.eclipse.jdt.internal.ui.text.java.hover.JavaTypeHover.getHoverInfo
(JavaTypeHover.java:93)
	at 
org.eclipse.jdt.internal.ui.text.java.hover.JavaTextHover.getHoverInfo
(JavaTextHover.java:304)
	at org.eclipse.jface.text.TextViewerHoverManager.computeInformation
(TextViewerHoverManager.java:56)
	at 
org.eclipse.jface.text.AbstractInformationControlManager.showInformation
(AbstractInformationControlManager.java:536)
	at 
org.eclipse.jface.text.AbstractHoverInformationControlManager$MouseTracker.mouse
Hover(AbstractHoverInformationControlManager.java:233)
	at org.eclipse.swt.widgets.TypedListener.handleEvent
(TypedListener.java:207)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75)
	at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:833)
	at org.eclipse.ui.internal.Workbench.run(Workbench.java:816)
	at org.eclipse.core.internal.boot.InternalBootLoader.run
(InternalBootLoader.java:643)
	at org.eclipse.core.boot.BootLoader.run(BootLoader.java:349)
	at java.lang.reflect.Method.invoke(Native Method)
	at org.eclipse.core.launcher.Main.basicRun(Main.java:160)
	at org.eclipse.core.launcher.Main.run(Main.java:548)
	at org.eclipse.core.launcher.Main.main(Main.java:403)
Comment 5 Olivier Thomann CLA 2002-06-07 13:52:14 EDT
*** Bug 19501 has been marked as a duplicate of this bug. ***
Comment 6 Philipe Mulet CLA 2002-06-11 08:33:02 EDT
Defer
Comment 7 Eclipse Webmaster CLA 2009-08-30 02:39:35 EDT
As of now 'LATER' and 'REMIND' resolutions are no longer supported.
Please reopen this bug if it is still valid for you.