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 125644 - NullPointerException at com.sun.tools.javac.tree.TreeInfo$1DeclScanner.visitTypeParameter
Summary: NullPointerException at com.sun.tools.javac.tree.TreeInfo$1DeclScanner.visitT...
Status: RESOLVED 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:
: 126029 (view as bug list)
Depends on:
Blocks: 152191
  Show dependency tree
 
Reported: 2008-01-21 08:57 UTC by _ moser
Modified: 2008-11-14 14:41 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 18625


Attachments
stacktrace (2.46 KB, text/plain)
2008-01-21 08:57 UTC, _ moser
Details
stacktrace (2.46 KB, text/plain)
2008-01-21 08:59 UTC, _ moser
Details
stacktrace (2.46 KB, text/plain)
2008-01-24 14:31 UTC, marvmax
Details
stacktrace (2.46 KB, text/plain)
2008-02-01 14:42 UTC, William Leonard
Details
stacktrace (3.73 KB, text/plain)
2008-03-03 12:27 UTC, madhurtanwani
Details
stacktrace (7.24 KB, text/plain)
2008-05-14 18:19 UTC, mjr_1974
Details
stacktrace (5.92 KB, text/plain)
2008-06-08 19:47 UTC, _ gtzabari
Details
stacktrace (5.35 KB, text/plain)
2008-06-11 20:45 UTC, Marian Petras
Details
zip-file containing sources of package org.netbeans.modules.junit.output (86.64 KB, application/x-compressed)
2008-06-11 21:00 UTC, Marian Petras
Details
stacktrace (4.80 KB, text/plain)
2008-07-24 00:52 UTC, _ gtzabari
Details
stacktrace (5.68 KB, text/plain)
2008-09-01 06:01 UTC, David Konecny
Details

Note You need to log in before you can comment on or make changes to this bug.
Description _ moser 2008-01-21 08:57:23 UTC
Build: NetBeans IDE Dev (Build 200801201200)
VM: Java HotSpot(TM) Client VM, 10.0-b19
OS: Windows XP, 5.1, x86

User Comments:
Comment 1 _ moser 2008-01-21 08:57:34 UTC
Created attachment 55301 [details]
stacktrace
Comment 2 _ moser 2008-01-21 08:59:14 UTC
Build: NetBeans IDE Dev (Build 200801201200)
VM: Java HotSpot(TM) Client VM, 10.0-b19
OS: Windows XP, 5.1, x86

User Comments: 
Pressed Shift-Ctrl-I to fix imports where nothing was to fix
Comment 3 _ moser 2008-01-21 08:59:17 UTC
Created attachment 55302 [details]
stacktrace
Comment 4 marvmax 2008-01-24 14:31:55 UTC
Build: NetBeans IDE Dev (Build 200801220000)
VM: Java HotSpot(TM) Client VM, 1.5.0_13-121
OS: Mac OS X, 10.4.11, ppc

User Comments: 
I'm trying to learn about the Swing Application Framework.  For some reason when I start a new package and choose Desktop Application (the the database example) it will not run.  It gives me a NullPointerException, always at the line that is trying to get the interger value for the message timer.

I downloaded the latest build on the morning of Jan 24, 2008, Build 6.1 200801220000.  I tried making a new application with the name TestApplication, didn't work, same error.  I tried building an application using the supplied name DeskTopApplication1 when I got the error that I'm reporting.

The really funny thing about this is that I do have one Desktop Application that does work that I created about 2 weeks ago.  I ran into problems getting that to work, but it at least runs.  My problems were with trying to use the resources.  I went back to trying to read more about the application framework to see if I could figure out those problems when I ran into this problem where I can't get it to
Comment 5 marvmax 2008-01-24 14:31:58 UTC
Created attachment 55500 [details]
stacktrace
Comment 6 Jan Becicka 2008-01-31 15:45:32 UTC
*** Issue 126029 has been marked as a duplicate of this issue. ***
Comment 7 William Leonard 2008-02-01 14:42:33 UTC
Build: NetBeans IDE Dev (Build 200801280931)
VM: Java HotSpot(TM) Client VM, 1.5.0_13-121
OS: Mac OS X, 10.4.11, i386

User Comments: 
Created a new JFrame form.
Comment 8 William Leonard 2008-02-01 14:42:36 UTC
Created attachment 55915 [details]
stacktrace
Comment 9 madhurtanwani 2008-03-03 12:27:17 UTC
Build: NetBeans IDE 6.0 (Build 200711261600)
VM: Java HotSpot(TM) Client VM, 1.5.0_06-b05
OS: Linux, 2.6.9-42.ELsmp, i386

User Comments: 
Comment 10 madhurtanwani 2008-03-03 12:27:21 UTC
Created attachment 57665 [details]
stacktrace
Comment 11 Exceptions Reporter 2008-04-10 20:39:24 UTC
This issue has already 10 duplicates 
Comment 12 Jiri Prox 2008-04-11 00:52:49 UTC
moving opened issues from TM <= 6.1 to TM=Dev
Comment 13 mjr_1974 2008-05-14 18:19:01 UTC
Created attachment 61395 [details]
stacktrace
Comment 14 _ gtzabari 2008-06-08 19:47:41 UTC
Created attachment 62535 [details]
stacktrace
Comment 15 Marian Petras 2008-06-11 20:45:03 UTC
Created attachment 62695 [details]
stacktrace
Comment 16 Marian Petras 2008-06-11 20:58:53 UTC
I was changing code in the JUnit module. I pasted part of code from one class to another class - I got the exception.
Then I quit NetBeans and started it again - it opened the same file (automatically at startup) and I got the exception
again. All the modified sources were within a single package of the JUnit module. I will attach all source files from
the package.
Comment 17 Marian Petras 2008-06-11 21:00:37 UTC
Created attachment 62698 [details]
zip-file containing sources of package org.netbeans.modules.junit.output
Comment 18 Marian Petras 2008-06-11 21:02:04 UTC
I forgot to note the file that was active in the editor was "OutputUtils.java".
Comment 19 _ gtzabari 2008-07-24 00:52:04 UTC
Build: NetBeans IDE Dev (Build 200807231346)
VM: Java HotSpot(TM) 64-Bit Server VM, 11.0-b14, Java(TM) SE Runtime Environment, 1.6.0_10-rc-b27
OS: Windows Vista, 6.0, amd64

User Comments: 


Stacktrace: 
java.lang.NullPointerException
        at com.sun.tools.javac.tree.TreeInfo$1DeclScanner.visitTypeParameter(TreeInfo.java:503)
        at com.sun.tools.javac.tree.JCTree$JCTypeParameter.accept(JCTree.java:1874)
        at com.sun.tools.javac.tree.TreeInfo$1DeclScanner.scan(TreeInfo.java:484)
        at com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:57)
        at com.sun.tools.javac.tree.TreeScanner.visitMethodDef(TreeScanner.java:86)
        at com.sun.tools.javac.tree.TreeInfo$1DeclScanner.visitMethodDef(TreeInfo.java:496)
Comment 20 _ gtzabari 2008-07-24 00:52:08 UTC
Created attachment 65447 [details]
stacktrace
Comment 21 David Konecny 2008-09-01 06:01:10 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: Linux, 2.6.24-19-generic, i386

User Comments: 
Anytime I paste code snippet below to JaxWsDataObject constructor I get this NPE.

        getCookieSet().add(BaseJspEditorSupport.class, new CookieSet.Factory() {
            public <T extends Cookie> T createCookie(Class<T> klass) {
                return klass.cast(getJspEditorSupport());
            }
        });


Stacktrace: 
java.lang.NullPointerException
        at com.sun.tools.javac.tree.TreeInfo$1DeclScanner.visitTypeParameter(TreeInfo.java:503)
        at com.sun.tools.javac.tree.JCTree$JCTypeParameter.accept(JCTree.java:1874)
        at com.sun.tools.javac.tree.TreeInfo$1DeclScanner.scan(TreeInfo.java:484)
        at com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:57)
        at com.sun.tools.javac.tree.TreeScanner.visitMethodDef(TreeScanner.java:86)
        at com.sun.tools.javac.tree.TreeInfo$1DeclScanner.visitMethodDef(TreeInfo.java:496)
Comment 22 David Konecny 2008-09-01 06:01:21 UTC
Created attachment 68760 [details]
stacktrace
Comment 23 David Konecny 2008-09-01 06:24:48 UTC
This problem when it happens makes editor unusable - anytime you type something the NPE is thrown.

Always reproducible for me. In NB6.5Beta open for example JavaDataObject.java (java.source) and remove "import
org.openide.nodes.CookieSet;" text.

  Operating System        = Linux version 2.6.24-19-generic running on i386
  Java; VM; Vendor        = 1.6.0_06; Java HotSpot(TM) Client VM 10.0-b22; Sun Microsystems Inc.
 
Comment 24 Jan Becicka 2008-09-01 10:00:55 UTC
Yes. It is reproducible. Thanks for test case.
Comment 25 Dusan Balek 2008-09-09 08:56:13 UTC
Fixed.

changeset b7f766741e14 in main/nb-javac
details: http://hg.netbeans.org/main/nb-javac?cmd=changeset;node=b7f766741e14
changeset 4afda16ac585 in main
details: http://hg.netbeans.org/main?cmd=changeset;node=4afda16ac585
Comment 26 Quality Engineering 2008-09-09 17:26:07 UTC
Integrated into 'main-golden', will be available in build *200809091401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/4afda16ac585
User: Dusan Balek <dbalek@netbeans.org>
Log: Issues #125644, #144176, and #144555 fixed.
Comment 27 salimafiune 2008-10-21 19:17:37 UTC
it still falling
Comment 28 Jan Lahoda 2008-10-21 21:58:41 UTC
salimafiune: could you please provide some more information, e.g. on what build do you see the exception, attach the
exception's stack trace, what are the steps to reproduce, etc.

Thanks.

Looking at the reports on statistics, I do not see any reports from builds after the bug was fixed. The last build
mentioned on statistics in 080828.
Comment 29 Dusan Balek 2008-11-14 14:41:48 UTC
Looking at the exception report statistics, I do not see any reports from builds after the bug was fixed. Closing as FIXED.