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 190728 - NullPointerException at org.netbeans.modules.java.hints.jackpot.impl.Utilities.constructScope
Summary: NullPointerException at org.netbeans.modules.java.hints.jackpot.impl.Utilitie...
Status: RESOLVED DUPLICATE of bug 166236
Alias: None
Product: platform
Classification: Unclassified
Component: Module System (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal (vote)
Assignee: Jesse Glick
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-03 02:57 UTC by simpatico
Modified: 2010-10-04 23:15 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 172926


Attachments
stacktrace (1.72 KB, text/plain)
2010-10-03 02:57 UTC, simpatico
Details

Note You need to log in before you can comment on or make changes to this bug.
Description simpatico 2010-10-03 02:57:31 UTC
Build: NetBeans IDE 6.9.1 (Build 201007282301)
VM: Java HotSpot(TM) 64-Bit Server VM, 17.0-b17-298, Java(TM) SE Runtime Environment, 1.6.0_21-b07-298-10M3239a
OS: Mac OS X

Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.java.hints.jackpot.impl.Utilities.constructScope(Utilities.java:559)
   at org.netbeans.modules.java.hints.jackpot.impl.pm.Pattern.parseAndAttribute(Pattern.java:167)
   at org.netbeans.modules.java.hints.jackpot.impl.pm.Pattern.compile(Pattern.java:97)
   at org.netbeans.modules.java.hints.jackpot.impl.pm.Pattern.compile(Pattern.java:92)
   at org.netbeans.modules.java.hints.jackpot.impl.hints.HintsInvoker.doComputeHints(HintsInvoker.java:437)
   at org.netbeans.modules.java.hints.jackpot.impl.hints.HintsInvoker.computeSuggestions(HintsInvoker.java:399)
Comment 1 simpatico 2010-10-03 02:57:36 UTC
Created attachment 102236 [details]
stacktrace
Comment 2 Jan Lahoda 2010-10-04 08:03:14 UTC
The problematic place is probably:
return Lookup.getDefault().lookup(SPI.class).<method-invocation>

Most likely Lookup.getDefault().lookup(SPI.class) returns null. But, the implementation of the SPI (SPIImpl) is a nested class of Utilities itself. No idea why it was not found, but there are more suspicious exceptions in the log, e.g.:
org.netbeans.modules.java.editor.semantic.MethodExitDetector
could also not be found. From this, it seems like some problem with classloading, possibly related to bug #166236.
Comment 3 Jesse Glick 2010-10-04 23:15:24 UTC
Your guess is as good as mine. IDE looks corrupted somehow.

*** This bug has been marked as a duplicate of bug 166236 ***