This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 208244 - Java Hints throws exceptions during tests
Summary: Java Hints throws exceptions during tests
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 7.2
Hardware: PC Mac OS X
: P2 normal (vote)
Assignee: Jan Lahoda
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-10 12:14 UTC by Jan Becicka
Modified: 2012-02-10 13:42 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Becicka 2012-02-10 12:14:02 UTC
Tests are randomly failing and changes are not propagated to other repositories -> P2. Let's try to fix all exceptions first.


java.lang.reflect.InvocationTargetException
	at sun.reflect.GeneratedMethodAccessor44.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.netbeans.modules.java.hints.jackpot.code.CodeHintProviderImpl$WorkerImpl.createErrors(CodeHintProviderImpl.java:280)
	at org.netbeans.modules.java.hints.jackpot.impl.hints.HintsInvoker.runHint(HintsInvoker.java:743)
	at org.netbeans.modules.java.hints.jackpot.impl.hints.HintsInvoker.access$200(HintsInvoker.java:107)
	at org.netbeans.modules.java.hints.jackpot.impl.hints.HintsInvoker$ScannerImpl.runAndAdd(HintsInvoker.java:610)
	at org.netbeans.modules.java.hints.jackpot.impl.hints.HintsInvoker$ScannerImpl.scan(HintsInvoker.java:648)
	at org.netbeans.modules.java.hints.jackpot.impl.hints.HintsInvoker.computeHintsImpl(HintsInvoker.java:245)
	at org.netbeans.modules.java.hints.jackpot.impl.hints.HintsInvoker.computeHints(HintsInvoker.java:228)
	at org.netbeans.modules.java.hints.jackpot.impl.hints.HintsInvoker.computeHints(HintsInvoker.java:187)
	at org.netbeans.modules.java.hints.jackpot.impl.hints.HintsInvoker.computeHints(HintsInvoker.java:144)
	at org.netbeans.modules.java.hints.jackpot.impl.hints.HintsTask.run(HintsTask.java:108)
	at org.netbeans.modules.java.hints.jackpot.impl.hints.HintsTask.run(HintsTask.java:78)
	at org.netbeans.modules.java.source.JavaSourceAccessor$CancelableTaskWrapper.run(JavaSourceAccessor.java:298)
	at org.netbeans.modules.parsing.impl.TaskProcessor.callParserResultTask(TaskProcessor.java:558)
	at org.netbeans.modules.parsing.impl.TaskProcessor$CompilationJob.run(TaskProcessor.java:734)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.NullPointerException
	at org.netbeans.modules.java.editor.semantic.TokenList$1.run(TokenList.java:83)
	at org.netbeans.editor.BaseDocument.render(BaseDocument.java:1336)
	at org.netbeans.modules.java.editor.semantic.TokenList.<init>(TokenList.java:76)
	at org.netbeans.modules.java.editor.semantic.SemanticHighlighter$DetectorVisitor.<init>(SemanticHighlighter.java:426)
	at org.netbeans.modules.java.editor.semantic.SemanticHighlighter$DetectorVisitor.<init>(SemanticHighlighter.java:397)
	at org.netbeans.modules.java.editor.semantic.SemanticHighlighter.process(SemanticHighlighter.java:238)
	at org.netbeans.modules.java.editor.semantic.SemanticHighlighter.computeUnusedImports(SemanticHighlighter.java:148)
	at org.netbeans.modules.java.hints.Imports.unusedImport(Imports.java:96)
	... 23 more
Comment 2 Jan Lahoda 2012-02-10 13:42:23 UTC
http://hg.netbeans.org/jet-main/rev/e782184d3e7a