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 144534 - NullPointerException at com.sun.tools.javac.util.Log.findLine
Summary: NullPointerException at com.sun.tools.javac.util.Log.findLine
Status: RESOLVED DUPLICATE of bug 150427
Alias: None
Product: java
Classification: Unclassified
Component: Compiler (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Dusan Balek
URL: http://statistics.netbeans.org/except...
Keywords:
: 148906 153850 (view as bug list)
Depends on:
Blocks: 152191
  Show dependency tree
 
Reported: 2008-08-20 08:35 UTC by xiaozhen0
Modified: 2009-04-15 12:55 UTC (History)
11 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 47855


Attachments
stacktrace (2.30 KB, text/plain)
2008-08-20 08:35 UTC, xiaozhen0
Details
stacktrace (2.70 KB, text/plain)
2008-08-30 02:15 UTC, Nam Nguyen
Details
stacktrace (3.46 KB, text/plain)
2009-02-02 17:56 UTC, Jesse Glick
Details
stacktrace (3.46 KB, text/plain)
2009-02-03 00:48 UTC, Jesse Glick
Details

Note You need to log in before you can comment on or make changes to this bug.
Description xiaozhen0 2008-08-20 08:35:46 UTC
Build: NetBeans IDE 6.5 Beta (Build 200808111757)
VM: Java HotSpot(TM) Client VM, 10.0-b19, Java(TM) SE Runtime Environment, 1.6.0_05-b13
OS: Windows XP, 5.1, x86

User Comments: 


Stacktrace: 
java.lang.NullPointerException
        at com.sun.tools.javac.util.Log.findLine(Log.java:392)
        at com.sun.tools.javac.util.Log.getLineNumber(Log.java:724)
        at com.sun.tools.javac.util.Log$1.getLineNumber(Log.java:258)
        at com.sun.tools.javac.util.JCDiagnostic.<init>(JCDiagnostic.java:306)
        at com.sun.tools.javac.util.JCDiagnostic$Factory.error(JCDiagnostic.java:90)
        at com.sun.tools.javac.util.Log.error(Log.java:454)
Comment 1 xiaozhen0 2008-08-20 08:35:50 UTC
Created attachment 67924 [details]
stacktrace
Comment 2 Tomas Danek 2008-08-21 12:24:12 UTC
-> java/source for evaluation.
Comment 3 Nam Nguyen 2008-08-30 02:15:19 UTC
Build: NetBeans IDE 6.5 Beta (Build 200808111757)
VM: Java HotSpot(TM) Client VM, 10.0-b22, Java(TM) SE Runtime Environment, 1.6.0_06-b02
OS: SunOS, 5.11, x86

User Comments: 


Stacktrace: 
java.lang.NullPointerException
        at com.sun.tools.javac.util.Log.findLine(Log.java:392)
        at com.sun.tools.javac.util.Log.getLineNumber(Log.java:724)
        at com.sun.tools.javac.util.Log$1.getLineNumber(Log.java:258)
        at com.sun.tools.javac.util.JCDiagnostic.<init>(JCDiagnostic.java:306)
        at com.sun.tools.javac.util.JCDiagnostic$Factory.error(JCDiagnostic.java:90)
        at com.sun.tools.javac.util.Log.error(Log.java:444)
Comment 4 Nam Nguyen 2008-08-30 02:15:28 UTC
Created attachment 68694 [details]
stacktrace
Comment 5 Exceptions Reporter 2008-09-14 22:17:48 UTC
This issue has already 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=47855
Comment 6 Dusan Balek 2008-11-21 12:02:33 UTC
Somehow related to partial reparse.
Comment 7 Dusan Balek 2008-11-24 11:09:19 UTC
*** Issue 148906 has been marked as a duplicate of this issue. ***
Comment 8 Dusan Balek 2008-11-26 08:29:48 UTC
*** Issue 153850 has been marked as a duplicate of this issue. ***
Comment 9 Jesse Glick 2009-02-02 17:56:52 UTC
Build: NetBeans IDE Dev (Build 090202)
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: 
Used Safe Delete on an unused constructor in FixedModule.

Stacktrace: 
java.lang.AssertionError: ClassWriter.writeClassFile: Member [org.netbeans.Util.PackageAccessibleClassLoader] of a kind [31] contained in class [org.netbeans.Util].
        at com.sun.tools.javac.jvm.ClassWriter.writeClassFile(ClassWriter.java:1583)
        at com.sun.tools.javac.jvm.ClassWriter.writeClass(ClassWriter.java:1523)
        at com.sun.tools.javac.main.JavaCompiler.genCode(JavaCompiler.java:646)
        at com.sun.tools.javac.main.JavaCompiler.generate(JavaCompiler.java:1328)
        at com.sun.tools.javac.api.JavacTaskImpl$3.process(JavacTaskImpl.java:510)
        at com.sun.tools.javac.api.JavacTaskImpl$Filter.run(JavacTaskImpl.java:598)
Comment 10 Jesse Glick 2009-02-02 17:56:58 UTC
Created attachment 76481 [details]
stacktrace
Comment 11 Jesse Glick 2009-02-03 00:47:57 UTC
Build: NetBeans IDE Dev (Build 090202)
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: 
Moved a class from one package to another in a tiny NBM project.

Stacktrace: 
java.lang.AssertionError: ClassWriter.writeClassFile: Member [org.netbeans.Util.PackageAccessibleClassLoader] of a kind [31] contained in class [org.netbeans.Util].
        at com.sun.tools.javac.jvm.ClassWriter.writeClassFile(ClassWriter.java:1583)
        at com.sun.tools.javac.jvm.ClassWriter.writeClass(ClassWriter.java:1523)
        at com.sun.tools.javac.main.JavaCompiler.genCode(JavaCompiler.java:646)
        at com.sun.tools.javac.main.JavaCompiler.generate(JavaCompiler.java:1328)
        at com.sun.tools.javac.api.JavacTaskImpl$3.process(JavacTaskImpl.java:510)
        at com.sun.tools.javac.api.JavacTaskImpl$Filter.run(JavacTaskImpl.java:598)
Comment 12 Jesse Glick 2009-02-03 00:48:01 UTC
Created attachment 76491 [details]
stacktrace
Comment 13 Marian Mirilovic 2009-04-15 09:19:25 UTC
120 duplicates -> P2 ... reported also from NB 6.5.1 but haven't seen any reports from these days trunk builds
Comment 14 Dusan Balek 2009-04-15 12:55:03 UTC
Already fixed.

*** This issue has been marked as a duplicate of 150427 ***