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 130086 - NPE at at com.sun.tools.javac.comp.MemberEnter.baseEnv(MemberEnter.java:1091)
Summary: NPE at at com.sun.tools.javac.comp.MemberEnter.baseEnv(MemberEnter.java:1091)
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Compiler (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Dusan Balek
URL: http://statistics.netbeans.org/except...
Keywords:
: 155826 (view as bug list)
Depends on:
Blocks: 152191
  Show dependency tree
 
Reported: 2008-03-13 19:09 UTC by Jesse Glick
Modified: 2009-04-08 14:55 UTC (History)
9 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 2204


Attachments
Dump file (21.38 KB, text/plain)
2008-03-13 19:09 UTC, Jesse Glick
Details
stacktrace (5.57 KB, text/plain)
2008-08-07 08:58 UTC, matthies
Details
stacktrace (5.57 KB, text/plain)
2008-08-07 13:50 UTC, matthies
Details
Dušan's fixed created on my computer (4.72 KB, patch)
2008-11-26 15:07 UTC, Jaroslav Tulach
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2008-03-13 19:09:19 UTC
Build: NetBeans IDE Dev (Build 200708270000)
VM: Java HotSpot(TM) Client VM, 1.6.0_02-b05
OS: Linux, 2.6.16-1.2133_FC5, i386
User comments: 
STACKTRACE: (first 10 lines)
java.lang.NullPointerException
        at com.sun.tools.javac.comp.MemberEnter.baseEnv(MemberEnter.java:1091)
        at com.sun.tools.javac.comp.MemberEnter.complete(MemberEnter.java:938)
        at com.sun.tools.javac.code.Symbol.complete(Symbol.java:402)
        at com.sun.tools.javac.code.Symbol$ClassSymbol.complete(Symbol.java:785)
        at com.sun.tools.javac.code.Symbol$ClassSymbol.flags(Symbol.java:724)
        at com.sun.tools.javac.comp.Resolve.isAccessible(Resolve.java:196)
        at com.sun.tools.javac.comp.Resolve.findMemberType(Resolve.java:884)
        at com.sun.tools.javac.comp.Resolve.findType(Resolve.java:947)
        at com.sun.tools.javac.comp.Resolve.findIdent(Resolve.java:997)
        at com.sun.tools.javac.comp.Resolve.resolveIdent(Resolve.java:1190)
Comment 1 Jesse Glick 2008-03-13 19:09:54 UTC
Created attachment 58346 [details]
Dump file
Comment 2 Dusan Balek 2008-03-14 18:06:21 UTC
Do you have a full stack trace? (The attached dump file seems to belong to another issue)
Comment 3 Jesse Glick 2008-03-14 18:43:39 UTC
The full stack trace is in the exception reporter as usual. The dump file is from another exception that seems to be
thrown over and over when working on the same set of files. (I think that actually got reported as a separate issue, but
the analytics server was so slow and unreliable yesterday that I am not sure.) Basically after I added the APPLICATION
enum constant, Retouche is badly broken and throws exceptions constantly, even after restarting with a clear cache.
Comment 4 matthies 2008-08-07 08:58:53 UTC
Build: NetBeans IDE 6.1 (Build 200804211638)
VM: Java HotSpot(TM) Client VM, 10.0-b19, Java(TM) SE Runtime Environment, 1.6.0_04-b12
OS: Windows XP, 5.1, x86

User Comments: 


Stacktrace: 
java.lang.NullPointerException
        at com.sun.tools.javac.comp.MemberEnter.baseEnv(MemberEnter.java:1106)
        at com.sun.tools.javac.comp.MemberEnter.complete(MemberEnter.java:953)
        at com.sun.tools.javac.code.Symbol.complete(Symbol.java:401)
        at com.sun.tools.javac.code.Symbol$ClassSymbol.complete(Symbol.java:784)
        at com.sun.tools.javac.code.Symbol$ClassSymbol.flags(Symbol.java:723)
        at com.sun.tools.javac.comp.Resolve.isAccessible(Resolve.java:197)
Comment 5 matthies 2008-08-07 08:58:56 UTC
Created attachment 66761 [details]
stacktrace
Comment 6 matthies 2008-08-07 13:49:53 UTC
Build: NetBeans IDE 6.1 (Build 200804211638)
VM: Java HotSpot(TM) Client VM, 10.0-b19, Java(TM) SE Runtime Environment, 1.6.0_04-b12
OS: Windows XP, 5.1, x86

User Comments: 


Stacktrace: 
java.lang.NullPointerException
        at com.sun.tools.javac.comp.MemberEnter.baseEnv(MemberEnter.java:1106)
        at com.sun.tools.javac.comp.MemberEnter.complete(MemberEnter.java:953)
        at com.sun.tools.javac.code.Symbol.complete(Symbol.java:401)
        at com.sun.tools.javac.code.Symbol$ClassSymbol.complete(Symbol.java:784)
        at com.sun.tools.javac.code.Symbol$ClassSymbol.flags(Symbol.java:723)
        at com.sun.tools.javac.comp.Resolve.isAccessible(Resolve.java:197)
Comment 7 matthies 2008-08-07 13:50:01 UTC
Created attachment 66815 [details]
stacktrace
Comment 8 Jiri Prox 2008-09-03 13:54:21 UTC
Removing INCOMPLETE keyword, the stacktraces are available. 
Comment 9 ljnelson 2008-09-19 19:42:53 UTC
Build: NetBeans IDE 6.1 (Build 200804211638)
VM: Java HotSpot(TM) Client VM, 11.0-b15, Java(TM) SE Runtime Environment, 1.6.0_10-rc2-b32
OS: Windows XP, 5.1, x86

User Comments:
ljnelson: I pressed CTRL-ALT-G to go to the declaration of a class.  The project that contains the declaration is present and accounted for.

jfurmankiewicz: trying to invoke code completion on a method

jglick: Just added a new member to simple enum (nested in another class).

jglick: Had run Find Usages on an enum member.

ljnelson: I pressed CTRL-ALT-G to go to the declaration of a class.  The project that contains the declaration is present and accounted for.



Stacktrace: 
java.lang.NullPointerException
        at com.sun.tools.javac.comp.MemberEnter.baseEnv(MemberEnter.java:1106)
        at com.sun.tools.javac.comp.MemberEnter.complete(MemberEnter.java:953)
        at com.sun.tools.javac.code.Symbol.complete(Symbol.java:401)
        at com.sun.tools.javac.code.Symbol$ClassSymbol.complete(Symbol.java:784)
        at com.sun.tools.javac.comp.Enter.complete(Enter.java:609)
        at org.netbeans.api.java.source.JavaSource$ErrorHandlingJavadocEnter.main(JavaSource.java:1221)
Comment 10 Jaroslav Tulach 2008-11-26 09:45:50 UTC
Dušane, if you want to debug the problem, I know how to reproduce it on my computer. Stop by.
Comment 11 Jaroslav Tulach 2008-11-26 15:07:15 UTC
Created attachment 74187 [details]
Dušan's fixed created on my computer
Comment 12 Dusan Balek 2008-11-28 14:24:15 UTC
Fixed.

changeset b5b27a305dca in main/nb-javac
details: http://hg.netbeans.org/main/nb-javac?cmd=changeset;node=b5b27a305dca
changeset c649a0aa19d1 in main
details: http://hg.netbeans.org/main?cmd=changeset;node=c649a0aa19d1
Comment 13 Quality Engineering 2008-11-30 17:11:27 UTC
Integrated into 'main-golden', will be available in build *200811301401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/c649a0aa19d1
User: Dusan Balek <dbalek@netbeans.org>
Log: Issues #130086 and #152861 fixed.
Comment 14 Dusan Balek 2008-12-22 10:40:13 UTC
*** Issue 155826 has been marked as a duplicate of this issue. ***
Comment 15 tboerkel 2009-02-02 09:50:25 UTC
45 duplicates (http://statistics.netbeans.org/analytics/exception.do?id=158124) and no fix for NB 6.5?