Bug 235218 - NullPointerException at com.sun.tools.javac.comp.MemberEnter$Synthesizer.visit
NullPointerException at com.sun.tools.javac.comp.MemberEnter$Synthesizer.visit
Status: NEW
Product: java
Classification: Unclassified
Component: Compiler
All All
: P3 (vote)
Assigned To: Dusan Balek
: 237223 (view as bug list)
Depends on:
  Show dependency treegraph
Reported: 2013-08-29 08:52 UTC by muellermi
Modified: 2015-07-01 11:37 UTC (History)
12 users (show)

See Also:
Issue Type: DEFECT

stacktrace (3.26 KB, text/plain)
2013-08-29 08:53 UTC, muellermi
stacktrace (3.26 KB, text/plain)
2013-10-15 10:52 UTC, Jan Lahoda
stacktrace (3.19 KB, text/plain)
2014-01-26 20:16 UTC, lopsided98
stacktrace (3.19 KB, text/plain)
2014-03-02 08:33 UTC, themanwhosold
stacktrace (3.19 KB, text/plain)
2014-05-28 12:21 UTC, Jiri Prox
stacktrace (3.26 KB, text/plain)
2014-11-18 08:36 UTC, J Bachorik
stacktrace (1.45 KB, text/plain)
2014-12-19 11:29 UTC, Andrew Krasny
stacktrace (7.22 KB, text/plain)
2015-01-12 10:51 UTC, Maksim Khramov

Note You need to log in before you can comment on or make changes to this bug.
Description muellermi 2013-08-29 08:52:57 UTC
Build: NetBeans IDE Dev (Build 201308290001)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.25-b01, Java(TM) SE Runtime Environment, 1.7.0_25-b17
OS: Windows 8

User Comments:
GUEST: It was taking too long to scan in the background.  The project is the JDK, so is big.

muellermi: open file in editor by doble click in search results

muellermi: open file in editor (by double click on project tree)

   at com.sun.tools.javac.comp.MemberEnter$Synthesizer.visit(MemberEnter.java:1583)
   at com.sun.tools.javac.comp.MemberEnter$7.getModelType(MemberEnter.java:1565)
   at com.sun.tools.javac.code.Symbol$ClassSymbol.getSuperclass(Symbol.java:1054)
   at com.sun.tools.javac.code.Symbol$ClassSymbol.getSuperclass(Symbol.java:886)
   at org.netbeans.modules.java.hints.ExportNonAccessibleElement.visitType(ExportNonAccessibleElement.java:222)
   at org.netbeans.modules.java.hints.ExportNonAccessibleElement.visitType(ExportNonAccessibleElement.java:92)
Comment 1 muellermi 2013-08-29 08:53:49 UTC
Created attachment 139411 [details]
Comment 2 Jan Lahoda 2013-10-15 10:48:35 UTC
My comment at the following link may be useful:
Comment 3 Jan Lahoda 2013-10-15 10:52:15 UTC
Created attachment 141091 [details]

My current source is as follows, but the key point probably is that the project's JDK currently does not have any rt.jar. I.e. no java.lang.

package test;

public enum Test {

    VALUE {
        void doSomething() {
            method("VALUE", 42);

    abstract void doSomething();

    public static void method(String value) {
        method(value, 0);

    private static void method(String value, int number) {
Comment 4 Exceptions Reporter 2013-10-15 10:52:19 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=196774
Comment 5 lopsided98 2014-01-26 20:16:09 UTC
Created attachment 144383 [details]

Comment 6 themanwhosold 2014-03-02 08:33:35 UTC
Created attachment 145698 [details]

The problem occured right after Startup
Comment 7 Jiri Prox 2014-05-28 12:21:40 UTC
Created attachment 147479 [details]

NPE when opening enum class
Comment 8 Exceptions Reporter 2014-11-10 12:24:43 UTC
This bug already has 10 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=196774
Comment 9 J Bachorik 2014-11-18 08:36:56 UTC
Created attachment 150545 [details]

opening a project
Comment 10 Dusan Balek 2014-11-28 09:18:33 UTC
*** Bug 237223 has been marked as a duplicate of this bug. ***
Comment 11 Andrew Krasny 2014-12-19 11:29:28 UTC
Created attachment 151207 [details]

opened a nb module and just clicked on a java file in the Projects tab
Comment 12 Maksim Khramov 2015-01-12 10:51:32 UTC
Created attachment 151453 [details]

Open java file from project when target JDK is missed
Comment 13 _ gtzabari 2015-04-10 21:30:55 UTC
One way to reproduce this is to install Netbeans under JDK9. Because Netbeans won't be able to find rt.jar, you will end up with this stack-trace.

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo