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 159003 - NullPointerException at com.sun.tools.javadoc.JavadocEnter.visitClassDef
Summary: NullPointerException at com.sun.tools.javadoc.JavadocEnter.visitClassDef
Status: VERIFIED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Compiler (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Dusan Balek
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-23 17:09 UTC by Torbjorn Norbye
Modified: 2009-04-01 10:19 UTC (History)
7 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 146621


Attachments
stacktrace (5.98 KB, text/plain)
2009-02-23 17:09 UTC, Torbjorn Norbye
Details
stacktrace (5.98 KB, text/plain)
2009-02-23 21:36 UTC, Torbjorn Norbye
Details
stacktrace (6.11 KB, text/plain)
2009-02-25 18:01 UTC, Jesse Glick
Details
stacktrace (6.11 KB, text/plain)
2009-02-27 14:09 UTC, kawazu428
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Torbjorn Norbye 2009-02-23 17:09:17 UTC
Build: NetBeans IDE Dev (Build 090223)
VM: Java HotSpot(TM) 64-Bit Server VM, 1.6.0_07-b06-56, Java(TM) SE Runtime Environment, 1.6.0_07-b06-146
OS: Mac OS X, 10.5.6, x86_64

User Comments:
yardus: Maven EJB. Trying to add a business method to stateless session bean

tor: Just opened a new file



Stacktrace: 
java.lang.NullPointerException
        at com.sun.tools.javadoc.JavadocEnter.visitClassDef(JavadocEnter.java:88)
        at com.sun.tools.javac.tree.JCTree$JCClassDecl.accept(JCTree.java:587)
        at com.sun.tools.javac.comp.Enter.classEnter(Enter.java:283)
        at com.sun.tools.javac.comp.Enter.classEnter(Enter.java:297)
        at com.sun.tools.javac.comp.Enter.visitTopLevel(Enter.java:348)
        at com.sun.tools.javadoc.JavadocEnter.visitTopLevel(JavadocEnter.java:77)
Comment 1 Torbjorn Norbye 2009-02-23 17:09:29 UTC
Created attachment 77256 [details]
stacktrace
Comment 2 Torbjorn Norbye 2009-02-23 21:36:27 UTC
Build: NetBeans IDE Dev (Build 090223)
VM: Java HotSpot(TM) 64-Bit Server VM, 1.6.0_07-b06-56, Java(TM) SE Runtime Environment, 1.6.0_07-b06-146
OS: Mac OS X, 10.5.6, x86_64

User Comments: 
Just opened a class - I can mail the contents to you

Stacktrace: 
java.lang.NullPointerException
        at com.sun.tools.javadoc.JavadocEnter.visitClassDef(JavadocEnter.java:88)
        at com.sun.tools.javac.tree.JCTree$JCClassDecl.accept(JCTree.java:587)
        at com.sun.tools.javac.comp.Enter.classEnter(Enter.java:283)
        at com.sun.tools.javac.comp.Enter.classEnter(Enter.java:297)
        at com.sun.tools.javac.comp.Enter.visitTopLevel(Enter.java:348)
        at com.sun.tools.javadoc.JavadocEnter.visitTopLevel(JavadocEnter.java:77)
Comment 3 Torbjorn Norbye 2009-02-23 21:36:31 UTC
Created attachment 77264 [details]
stacktrace
Comment 4 Torbjorn Norbye 2009-02-23 21:44:56 UTC
I think this must be a new regression. This has started happening a lot today after I updated my build (my last build
was from Friday I think where I wasn't hitting this.)
Comment 5 Exceptions Reporter 2009-02-23 23:16:34 UTC
This issue has already 10 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=146621
Comment 6 Torbjorn Norbye 2009-02-24 02:46:03 UTC
It happens on all kinds of trivial files. I just created a new file and it popped up on that as well.

And I noticed there are 33 duplicates already, starting from yesterday so it's clear it's affecting a lot of people. 

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.tool.model;

/**
 *
 * @author tor
 */
public class Transaction {

}
Comment 7 Dusan Balek 2009-02-24 08:50:32 UTC
Already fixed in jet-main (since Fri Feb 20), however it has not been propagated into the main repository yet ;-(

See http://hg.netbeans.org/jet-main/rev/2d65ba2a6893
Comment 8 Jesse Glick 2009-02-25 18:00:58 UTC
Build: NetBeans IDE Dev (Build 090223)
VM: Java HotSpot(TM) Client VM, 11.0-b16, Java(TM) SE Runtime Environment, 1.6.0_11-b03
OS: Linux, 2.6.27-11-generic, i386

User Comments: 


Stacktrace: 
java.lang.NullPointerException
        at com.sun.tools.javadoc.JavadocEnter.visitClassDef(JavadocEnter.java:88)
        at com.sun.tools.javac.tree.JCTree$JCClassDecl.accept(JCTree.java:587)
        at com.sun.tools.javac.comp.Enter.classEnter(Enter.java:283)
        at com.sun.tools.javac.comp.Enter.classEnter(Enter.java:297)
        at com.sun.tools.javac.comp.Enter.visitTopLevel(Enter.java:348)
        at com.sun.tools.javadoc.JavadocEnter.visitTopLevel(JavadocEnter.java:77)
Comment 9 Jesse Glick 2009-02-25 18:01:08 UTC
Created attachment 77369 [details]
stacktrace
Comment 10 kawazu428 2009-02-27 14:09:08 UTC
Build: NetBeans IDE Dev (Build 200902221401)
VM: OpenJDK Server VM, 14.0-b10, Java(TM) SE Runtime Environment, 1.6.0_14-ea-b01
OS: Linux, 2.6.27-11-generic, i386

User Comments: 


Stacktrace: 
java.lang.NullPointerException
        at com.sun.tools.javadoc.JavadocEnter.visitClassDef(JavadocEnter.java:88)
        at com.sun.tools.javac.tree.JCTree$JCClassDecl.accept(JCTree.java:587)
        at com.sun.tools.javac.comp.Enter.classEnter(Enter.java:283)
        at com.sun.tools.javac.comp.Enter.classEnter(Enter.java:297)
        at com.sun.tools.javac.comp.Enter.visitTopLevel(Enter.java:348)
        at com.sun.tools.javadoc.JavadocEnter.visitTopLevel(JavadocEnter.java:77)
Comment 11 kawazu428 2009-02-27 14:09:17 UTC
Created attachment 77468 [details]
stacktrace
Comment 12 martinhavle 2009-04-01 10:19:49 UTC
Works fine now, seems to be fixed properly.