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 117148 - [65cat] NullPointerException at com.sun.tools.javac.code.Types$5.visitErrorType
Summary: [65cat] NullPointerException at com.sun.tools.javac.code.Types$5.visitErrorType
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Compiler (show other bugs)
Version: 6.x
Hardware: PC All
: P2 blocker with 1 vote (vote)
Assignee: Dusan Balek
URL: http://statistics.netbeans.org/analyt...
Keywords:
: 141346 143146 151598 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-09-30 14:03 UTC by kirillkh
Modified: 2009-05-22 14:11 UTC (History)
24 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
stacktrace (2.78 KB, text/plain)
2008-08-19 22:35 UTC, misterm
Details
Dump attached as requested by error message (5.28 KB, text/plain)
2008-08-19 22:46 UTC, misterm
Details
stacktrace (5.61 KB, text/plain)
2008-09-08 12:10 UTC, tboerkel
Details
stacktrace (1.03 KB, text/plain)
2008-09-08 12:11 UTC, tboerkel
Details
stacktrace (5.12 KB, text/plain)
2008-09-11 17:02 UTC, Martin Entlicher
Details
stacktrace (4.46 KB, text/plain)
2008-09-13 00:04 UTC, Jesse Glick
Details
stacktrace (4.46 KB, text/plain)
2008-09-14 22:52 UTC, tjquinn
Details
stacktrace (4.46 KB, text/plain)
2008-09-16 13:58 UTC, rgw21
Details
stacktrace (4.45 KB, text/plain)
2008-11-11 00:51 UTC, interpaul
Details

Note You need to log in before you can comment on or make changes to this bug.
Description kirillkh 2007-09-30 14:03:17 UTC
Product Version: NetBeans IDE Dev (Build 20070930084513)
Java: 1.6.0_01; Java HotSpot(TM) Client VM 1.6.0_01-b06
System: Windows XP version 5.1 running on x86; Cp1252; en_US (nb)
------------------------------------------------------------

Testcase:

import java.util.Collection;
public class Test<S extends Runnable> implements Collection<S> {
    <T extends S & S> void test() {}
}


------------------------------------------------------------
Caused: java.lang.NullPointerException
	at com.sun.tools.javac.code.Types$5.visitErrorType(Types.java:468)
	at com.sun.tools.javac.code.Types$5.visitErrorType(Types.java:467)
	at com.sun.tools.javac.code.Type$ErrorType.accept(Type.java:1192)
	at com.sun.tools.javac.code.Types$DefaultTypeVisitor.visit(Types.java:3198)
	at com.sun.tools.javac.code.Types.isSubtype(Types.java:343)
	at com.sun.tools.javac.code.Types.isSubtypeNoCapture(Types.java:330)
	at com.sun.tools.javac.code.Types$5.visitType(Types.java:358)
	at com.sun.tools.javac.code.Types$5.visitType(Types.java:467)
	at com.sun.tools.javac.code.Types$DefaultTypeVisitor.visitTypeVar(Types.java:3204)
	at com.sun.tools.javac.code.Type$TypeVar.accept(Type.java:956)
	at com.sun.tools.javac.code.Types$DefaultTypeVisitor.visit(Types.java:3198)
	at com.sun.tools.javac.code.Types.isSubtype(Types.java:343)
	at com.sun.tools.javac.code.Types.isSubtype(Types.java:327)
	at com.sun.tools.javac.comp.Check.checkExtends(Check.java:442)
	at com.sun.tools.javac.comp.Check.access$100(Check.java:57)
	at com.sun.tools.javac.comp.Check$Validator.visitTypeApply(Check.java:825)
	at com.sun.tools.javac.tree.JCTree$JCTypeApply.accept(JCTree.java:1845)
	at com.sun.tools.javac.comp.Check.validate(Check.java:760)
	at com.sun.tools.javac.comp.Check.validate(Check.java:770)
	at com.sun.tools.javac.comp.Attr.attribClassBody(Attr.java:2718)
	at com.sun.tools.javac.comp.Attr.attribClass(Attr.java:2691)
	at com.sun.tools.javac.comp.Attr.attribClass(Attr.java:2625)
	at com.sun.tools.javac.main.JavaCompiler.attribute(JavaCompiler.java:1061)
	at com.sun.tools.javac.main.JavaCompiler.attribute(JavaCompiler.java:1037)
	at com.sun.tools.javac.api.JavacTaskImpl.analyze(JavacTaskImpl.java:437)
	at com.sun.tools.javac.api.JavacTaskImpl.analyze(JavacTaskImpl.java:417)
	at org.netbeans.api.java.source.JavaSource.moveToPhase(JavaSource.java:1189)
	at org.netbeans.api.java.source.JavaSource$CompilationJob.run(JavaSource.java:1510)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
[catch] at java.lang.Thread.run(Thread.java:619)
Comment 1 Jan Lahoda 2007-10-08 10:24:19 UTC
Reproducible.
Comment 2 Jiri Prox 2008-04-11 00:54:01 UTC
moving opened issues from TM <= 6.1 to TM=Dev
Comment 3 Jan Becicka 2008-07-30 15:29:22 UTC
*** Issue 141346 has been marked as a duplicate of this issue. ***
Comment 4 Jana Maleckova 2008-08-07 09:33:24 UTC
*** Issue 143146 has been marked as a duplicate of this issue. ***
Comment 5 misterm 2008-08-19 22:35:11 UTC
Build: NetBeans IDE Dev (Build 200808051401)
VM: Java HotSpot(TM) Client VM, 10.0-b19, Java(TM) SE Runtime Environment, 1.6.0_04-b12
OS: Windows XP, 5.1, x86

User Comments: 


Stacktrace: 
java.lang.NullPointerException
        at com.sun.tools.javac.code.Types$5.visitErrorType(Types.java:472)
        at com.sun.tools.javac.code.Types$5.visitErrorType(Types.java:471)
        at com.sun.tools.javac.code.Type$ErrorType.accept(Type.java:1193)
        at com.sun.tools.javac.code.Types$DefaultTypeVisitor.visit(Types.java:3203)
        at com.sun.tools.javac.code.Types.isSubtype(Types.java:342)
        at com.sun.tools.javac.code.Types.isSubtypeNoCapture(Types.java:329)
Comment 6 misterm 2008-08-19 22:35:14 UTC
Created attachment 67873 [details]
stacktrace
Comment 7 misterm 2008-08-19 22:46:11 UTC
Created attachment 67876 [details]
Dump attached as requested by error message
Comment 8 tboerkel 2008-09-08 12:10:32 UTC
Build: NetBeans IDE 6.5 Beta (Build 200808111757)
VM: Java HotSpot(TM) Client VM, 11.0-b15, Java(TM) SE Runtime Environment, 1.6.0_10-rc-b28
OS: Windows Server 2008, 6.0, x86

User Comments: 
Started NB.

Stacktrace: 
java.lang.NullPointerException
        at com.sun.tools.javac.code.Types$6.visitErrorType(Types.java:687)
        at com.sun.tools.javac.code.Types$6.visitErrorType(Types.java:686)
        at com.sun.tools.javac.code.Type$ErrorType.accept(Type.java:1193)
        at com.sun.tools.javac.code.Types$DefaultTypeVisitor.visit(Types.java:3203)
        at com.sun.tools.javac.code.Types$6.visitClassType(Types.java:622)
        at com.sun.tools.javac.code.Types$6.visitClassType(Types.java:686)
Comment 9 tboerkel 2008-09-08 12:10:54 UTC
Created attachment 69298 [details]
stacktrace
Comment 10 tboerkel 2008-09-08 12:11:18 UTC
Build: NetBeans IDE 6.5 Beta (Build 200808111757)
VM: Java HotSpot(TM) Client VM, 11.0-b15, Java(TM) SE Runtime Environment, 1.6.0_10-rc-b28
OS: Windows Server 2008, 6.0, x86

User Comments: 


Stacktrace: 
java.lang.NullPointerException
Comment 11 tboerkel 2008-09-08 12:11:28 UTC
Created attachment 69299 [details]
stacktrace
Comment 12 Martin Entlicher 2008-09-11 17:02:03 UTC
Build: NetBeans IDE Dev (Build 080826)
VM: Java HotSpot(TM) Client VM, 11.0-b13, Java(TM) SE Runtime Environment, 1.6.0_10-rc-b26
OS: Linux, 2.6.22-14-generic, i386

User Comments: 


Stacktrace: 
java.lang.NullPointerException
        at com.sun.tools.javac.code.Types$6.visitErrorType(Types.java:688)
        at com.sun.tools.javac.code.Types$6.visitErrorType(Types.java:687)
        at com.sun.tools.javac.code.Type$ErrorType.accept(Type.java:1197)
        at com.sun.tools.javac.code.Types$DefaultTypeVisitor.visit(Types.java:3204)
        at com.sun.tools.javac.code.Types$6.visitType(Types.java:576)
        at com.sun.tools.javac.code.Types$6.visitType(Types.java:687)
Comment 13 Martin Entlicher 2008-09-11 17:02:19 UTC
Created attachment 69674 [details]
stacktrace
Comment 14 Jesse Glick 2008-09-13 00:04:19 UTC
Build: NetBeans IDE Dev (Build 080912)
VM: Java HotSpot(TM) Client VM, 1.5.0_15-b04, Java(TM) 2 Runtime Environment, Standard Edition, 1.5.0_15-b04
OS: Linux, 2.6.24-19-generic, i386

User Comments: 
Had built JSPWiki as an autoproject; then cleaned it.

Stacktrace: 
java.lang.NullPointerException
        at com.sun.tools.javac.code.Types$6.visitErrorType(Types.java:688)
        at com.sun.tools.javac.code.Types$6.visitErrorType(Types.java:687)
        at com.sun.tools.javac.code.Type$ErrorType.accept(Type.java:1197)
        at com.sun.tools.javac.code.Types$DefaultTypeVisitor.visit(Types.java:3204)
        at com.sun.tools.javac.code.Types$6.visitType(Types.java:576)
        at com.sun.tools.javac.code.Types$6.visitType(Types.java:687)
Comment 15 Jesse Glick 2008-09-13 00:04:30 UTC
Created attachment 69788 [details]
stacktrace
Comment 16 Jesse Glick 2008-09-13 00:07:05 UTC
After this was thrown (numerous times), the project became riddled with error badges and was unusable.
Comment 17 tjquinn 2008-09-14 22:52:32 UTC
Build: NetBeans IDE Dev (Build 200809140201)
VM: Java HotSpot(TM) Client VM, 1.6.0_03-b05, Java(TM) SE Runtime Environment, 1.6.0_03-b05
OS: Windows XP, 5.1, x86

User Comments: 
Using dev build 200809140201 - NB was rescanning jars that are libraries for opened projects, jars that had been rebuilt externally while NB was open.

Stacktrace: 
java.lang.NullPointerException
        at com.sun.tools.javac.code.Types$6.visitErrorType(Types.java:688)
        at com.sun.tools.javac.code.Types$6.visitErrorType(Types.java:687)
        at com.sun.tools.javac.code.Type$ErrorType.accept(Type.java:1197)
        at com.sun.tools.javac.code.Types$DefaultTypeVisitor.visit(Types.java:3204)
        at com.sun.tools.javac.code.Types$6.visitType(Types.java:576)
        at com.sun.tools.javac.code.Types$6.visitType(Types.java:687)
Comment 18 tjquinn 2008-09-14 22:52:36 UTC
Created attachment 69831 [details]
stacktrace
Comment 19 Dusan Balek 2008-09-15 12:10:03 UTC
Do you have a reproducible test case?
Comment 20 rgw21 2008-09-16 13:58:37 UTC
Build: NetBeans IDE Dev (Build 200809151401)
VM: Java HotSpot(TM) Client VM, 10.0-b23, Java(TM) SE Runtime Environment, 1.6.0_07-b06
OS: Windows XP, 5.1, x86

User Comments: 


Stacktrace: 
java.lang.NullPointerException
        at com.sun.tools.javac.code.Types$6.visitErrorType(Types.java:688)
        at com.sun.tools.javac.code.Types$6.visitErrorType(Types.java:687)
        at com.sun.tools.javac.code.Type$ErrorType.accept(Type.java:1197)
        at com.sun.tools.javac.code.Types$DefaultTypeVisitor.visit(Types.java:3204)
        at com.sun.tools.javac.code.Types$6.visitType(Types.java:576)
        at com.sun.tools.javac.code.Types$6.visitType(Types.java:687)
Comment 21 rgw21 2008-09-16 13:58:40 UTC
Created attachment 69947 [details]
stacktrace
Comment 22 Dusan Balek 2008-09-30 15:30:09 UTC
Fixed.

changeset 5441c5d1c7a3 in main/nb-javac
details: http://hg.netbeans.org/main/nb-javac?cmd=changeset;node=5441c5d1c7a3
changeset ab97d442b7a3 in main
details: http://hg.netbeans.org/main?cmd=changeset;node=ab97d442b7a3
Comment 23 Quality Engineering 2008-10-01 05:58:57 UTC
Integrated into 'main-golden', will be available in build *200810010201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/ab97d442b7a3
User: Dusan Balek <dbalek@netbeans.org>
Log: Issue #117148: NullPointerException at com.sun.tools.javac.code.Types$5.visitErrorType - fixed.
Comment 24 Exceptions Reporter 2008-10-20 14:09:12 UTC
Reopening - reproduced in NetBeans IDE Dev (Build 200810170201)
http://statistics.netbeans.org/exceptions/detail.do?id=130910
Comment 25 Dusan Balek 2008-10-21 13:09:46 UTC
Second attempt to fix.

changeset 439cb9a7e937 in main/nb-javac
details: http://hg.netbeans.org/main/nb-javac?cmd=changeset;node=439cb9a7e937
changeset 601e047de589 in main
details: http://hg.netbeans.org/main?cmd=changeset;node=601e047de589
Comment 26 Quality Engineering 2008-10-22 05:03:47 UTC
Integrated into 'main-golden', will be available in build *200810220201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/601e047de589
User: Dusan Balek <dbalek@netbeans.org>
Log: Issue #117148 fixed. Enhanced logging.
Comment 27 Dusan Balek 2008-10-30 16:51:59 UTC
*** Issue 151598 has been marked as a duplicate of this issue. ***
Comment 28 interpaul 2008-11-11 00:51:31 UTC
Build: NetBeans IDE 6.5 RC1 (Build 200810171318)
VM: Java HotSpot(TM) Client VM, 10.0-b22, Java(TM) SE Runtime Environment, 1.6.0_06-b02
OS: Windows XP, 5.1, x86

User Comments: 


Stacktrace: 
java.lang.NullPointerException
        at com.sun.tools.javac.code.Types$.visitErrorType(Types.java:688)
        at com.sun.tools.javac.code.Types$.visitErrorType(Types.java:687)
        at com.sun.tools.javac.code.Type$ErrorType.accept(Type.java:1197)
        at com.sun.tools.javac.code.Types$DefaultTypeVisitor.visit(Types.java:3206)
        at com.sun.tools.javac.code.Types$.visitType(Types.java:576)
        at com.sun.tools.javac.code.Types$.visitType(Types.java:687)
Comment 29 interpaul 2008-11-11 00:51:36 UTC
Created attachment 73604 [details]
stacktrace
Comment 30 Exceptions Reporter 2008-11-20 09:24:41 UTC
Reopening - reproduced in NetBeans IDE 6.5 (Build 200811100001)
http://statistics.netbeans.org/exceptions/detail.do?id=140473
Comment 31 Dusan Balek 2008-11-26 13:47:03 UTC
Third attempt.

changeset 2b663a426f94 in main/nb-javac
details: http://hg.netbeans.org/main/nb-javac?cmd=changeset;node=2b663a426f94
changeset 09ff15e4aad6 in main
details: http://hg.netbeans.org/main?cmd=changeset;node=09ff15e4aad6
Comment 32 Quality Engineering 2008-11-27 05:34:26 UTC
Integrated into 'main-golden', will be available in build *200811270201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/09ff15e4aad6
User: Dusan Balek <dbalek@netbeans.org>
Log: Issues #117148, #142224, #142829, #144800, #147851, and #146205 fixed.