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 180295 - java.lang.NullPointerException
Summary: java.lang.NullPointerException
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Compiler (show other bugs)
Version: 6.x
Hardware: All All
: P2 normal (vote)
Assignee: Dusan Balek
URL:
Keywords: RANDOM
: 183394 184981 185396 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-02-04 14:13 UTC by Jesse Glick
Modified: 2010-05-04 08:22 UTC (History)
10 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 164892


Attachments
stacktrace (2.62 KB, text/plain)
2010-02-04 14:13 UTC, Jesse Glick
Details
stacktrace (2.46 KB, text/plain)
2010-02-08 04:34 UTC, Vladimir Voskresensky
Details
stacktrace (5.00 KB, text/plain)
2010-02-09 02:56 UTC, Egor Ushakov
Details
stacktrace (5.24 KB, text/plain)
2010-02-16 18:01 UTC, Jesse Glick
Details
Requested dump file (11.97 KB, text/plain)
2010-02-16 18:02 UTC, Jesse Glick
Details
stacktrace (2.61 KB, text/plain)
2010-02-19 05:46 UTC, Egor Ushakov
Details
stacktrace (4.44 KB, text/plain)
2010-02-27 04:31 UTC, Egor Ushakov
Details
stacktrace (2.51 KB, text/plain)
2010-03-02 07:33 UTC, Filip Zamboj
Details
stacktrace (2.12 KB, text/plain)
2010-03-03 09:13 UTC, Sergey Petrov
Details
dump (4.58 KB, application/octet-stream)
2010-03-03 09:15 UTC, Sergey Petrov
Details
stacktrace (2.10 KB, text/plain)
2010-03-11 05:46 UTC, Sergey Petrov
Details
stacktrace (2.14 KB, text/plain)
2010-04-01 07:59 UTC, Sergey Petrov
Details
stacktrace (2.13 KB, text/plain)
2010-04-05 19:51 UTC, Jesse Glick
Details
Dump file as requested (14.39 KB, application/octet-stream)
2010-04-05 19:54 UTC, Jesse Glick
Details
latest log (13.65 KB, text/plain)
2010-04-07 10:22 UTC, Sergey Petrov
Details
latest dump (4.63 KB, application/octet-stream)
2010-04-07 10:23 UTC, Sergey Petrov
Details
stacktrace (5.06 KB, text/plain)
2010-04-13 09:22 UTC, Alexander Simon
Details
New dump file from 100414 (13.81 KB, text/plain)
2010-04-14 21:45 UTC, Jesse Glick
Details
stacktrace (2.20 KB, text/plain)
2010-04-15 14:22 UTC, Alexander Simon
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2010-02-04 14:13:50 UTC
Build: NetBeans IDE Dev (Build 100204-20b1dfd90f45)
VM: Java HotSpot(TM) Client VM, 16.0-b13, Java(TM) SE Runtime Environment, 1.6.0_18-b07
OS: Linux

User Comments:
jglick: FU on createLayerPresenterComboModel.




Stacktrace: 
java.lang.NullPointerException
   at com.sun.tools.javac.main.JavaCompiler.attribute(JavaCompiler.java:1179)
   at com.sun.tools.javac.main.JavaCompiler.attribute(JavaCompiler.java:1155)
   at com.sun.tools.javac.api.JavacTaskImpl.analyze(JavacTaskImpl.java:473)
   at com.sun.tools.javac.api.JavacTaskImpl.analyze(JavacTaskImpl.java:452)
   at org.netbeans.modules.java.source.parsing.JavacParser.moveToPhase(JavacParser.java:582)
   at org.netbeans.modules.java.source.parsing.CompilationInfoImpl.toPhase(CompilationInfoImpl.java:353)
Comment 1 Jesse Glick 2010-02-04 14:13:54 UTC
Created attachment 93882 [details]
stacktrace
Comment 2 Vladimir Voskresensky 2010-02-08 04:34:55 UTC
Created attachment 93952 [details]
stacktrace

Ctrl+Click on class
Comment 3 Egor Ushakov 2010-02-09 02:56:41 UTC
Created attachment 93982 [details]
stacktrace
Comment 4 Jesse Glick 2010-02-16 18:01:21 UTC
Created attachment 94213 [details]
stacktrace
Comment 5 Jesse Glick 2010-02-16 18:02:24 UTC
Created attachment 94214 [details]
Requested dump file
Comment 6 Egor Ushakov 2010-02-19 05:46:00 UTC
Created attachment 94331 [details]
stacktrace

performed find usages
Comment 7 Exceptions Reporter 2010-02-19 05:46:09 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=164892
Comment 8 Egor Ushakov 2010-02-27 04:31:03 UTC
Created attachment 94581 [details]
stacktrace
Comment 9 Filip Zamboj 2010-03-02 07:33:50 UTC
Created attachment 94686 [details]
stacktrace

opened java fiel
Comment 10 Sergey Petrov 2010-03-03 09:13:39 UTC
Created attachment 94726 [details]
stacktrace

Just tried code complition, may be related with annotation processing for entity A2173028
Comment 11 Sergey Petrov 2010-03-03 09:15:27 UTC
Created attachment 94727 [details]
dump
Comment 12 Sergey Petrov 2010-03-11 05:46:08 UTC
Created attachment 95037 [details]
stacktrace

All steps in just build ide:
Create EJb Module Project on gf3
Add entity class to some package (New|Entity Class) with all default except datasource for pu (it's better to select something)
Turn on support for annotation processing in editor
Create plain java class (new|java class) in some package
Invoke Autocompletion in this class body
I first types 'New' and press ctrl-space, no entity yet
then add 'E' button
And got this exception
Comment 13 Dusan Balek 2010-03-11 10:32:32 UTC
Sergey, are you able to reproduce the issue with the above steps?
Comment 14 Sergey Petrov 2010-03-11 12:11:30 UTC
I can try tomorrow, but with almost the same steps in app client project I got the same exception today. But as it was first reported on 0204, not sure now if it's somehow related with annotations support as I said above.
Comment 15 Sergey Petrov 2010-03-16 12:49:54 UTC
can't reproduce today, but also ap in editor support seems broken.
Comment 16 Egor Ushakov 2010-03-18 14:30:48 UTC
Please do something with it, the outcome for me is that hyperlink sometimes does not work. Second attempt is usually successful.
Raising priority.
Comment 17 Sergey Petrov 2010-04-01 07:59:10 UTC
Created attachment 96498 [details]
stacktrace

fresh ide
create j2se project with main class
create entity from db
switch to jdk6 source
create jpa controller
in main class in main method declare jpa controller and try to call constructor with autocomplition.
npe is thrwn
Comment 18 Dusan Balek 2010-04-01 08:52:15 UTC
Unfortunately, I still cannot reproduce the issue. Additional logging added.

http://hg.netbeans.org/jet-main/rev/fee4600e382f

changeset 8cb139773b62 in main/nb-javac
details: http://hg.netbeans.org/main/nb-javac?cmd=changeset;node=8cb139773b62
Comment 19 Quality Engineering 2010-04-02 04:58:44 UTC
Integrated into 'main-golden', will be available in build *201004020200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/fee4600e382f
User: Dusan Balek <dbalek@netbeans.org>
Log: Logging added (see issue #180295).
Comment 20 Exceptions Reporter 2010-04-02 15:04:46 UTC
This bug already has 20 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=164892
Comment 21 Jesse Glick 2010-04-05 19:51:53 UTC
Created attachment 96710 [details]
stacktrace

Code completion on Templates.getTemplate in SimpleTargetChooserPanel.
Comment 22 Jesse Glick 2010-04-05 19:54:21 UTC
Created attachment 96711 [details]
Dump file as requested
Comment 23 Sergey Petrov 2010-04-07 10:22:24 UTC
Created attachment 96854 [details]
latest log
Comment 24 Sergey Petrov 2010-04-07 10:23:13 UTC
Created attachment 96855 [details]
latest dump
Comment 25 Dusan Balek 2010-04-08 09:29:17 UTC
First attempt to fix.

http://hg.netbeans.org/jet-main/rev/fe245fd6cb6c

changeset 9cf2630bb5a8 in main/nb-javac
details: http://hg.netbeans.org/main/nb-javac?cmd=changeset;node=9cf2630bb5a8
Comment 26 Quality Engineering 2010-04-09 04:48:07 UTC
Integrated into 'main-golden', will be available in build *201004090201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/fe245fd6cb6c
User: Dusan Balek <dbalek@netbeans.org>
Log: Issue #180295: the first attempt to fix.
Comment 27 Alexander Simon 2010-04-13 09:22:40 UTC
Created attachment 97145 [details]
stacktrace
Comment 28 Jesse Glick 2010-04-14 21:45:16 UTC
Created attachment 97400 [details]
New dump file from 100414
Comment 29 Dusan Balek 2010-04-15 10:14:18 UTC
Fix cont.

http://hg.netbeans.org/jet-main/rev/9cf392b56deb
Comment 30 Alexander Simon 2010-04-15 14:22:49 UTC
Created attachment 97456 [details]
stacktrace
Comment 31 Quality Engineering 2010-04-16 04:20:17 UTC
Integrated into 'main-golden', will be available in build *201004160201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/9cf392b56deb
User: Dusan Balek <dbalek@netbeans.org>
Log: Issue #180295 - fix cont.
Comment 32 Dusan Balek 2010-04-19 15:59:51 UTC
*** Bug 183394 has been marked as a duplicate of this bug. ***
Comment 33 Dusan Balek 2010-04-29 12:25:48 UTC
*** Bug 184981 has been marked as a duplicate of this bug. ***
Comment 34 Dusan Balek 2010-05-04 08:22:47 UTC
*** Bug 185396 has been marked as a duplicate of this bug. ***