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 163604

Summary: NullPointerException at com.sun.tools.javac.api.JavacTrees.getTypeMirror
Product: javaee Reporter: kidnapper <kidnapper>
Component: WicketAssignee: issues@javaee <issues>
Status: NEW ---    
Severity: blocker CC: alexegidio, carljmosca, everheul, gjijon, ianmarshall, igahito, jatco, massimo, mmirilovic, mpalka, pblakez, pjiricka, t_yano, velodiver
Priority: P1    
Version: 6.x   
Hardware: All   
OS: All   
URL: http://statistics.netbeans.org/exceptions/detail.do?id=145470
Issue Type: DEFECT Exception Reporter: 145470
Attachments: stacktrace
edited java file that causes exception
stacktrace

Description kidnapper 2009-04-24 14:51:50 UTC
Build: NetBeans IDE 6.5.1 (Build 200903060201)
VM: Java HotSpot(TM) 64-Bit Server VM, 11.2-b01, Java(TM) SE Runtime Environment, 1.6.0_12-b04
OS: Linux, 2.6.27.21-170.2.56.fc10.x86_64, amd64

User Comments:
GUEST: Not sure but keep getting this message during development.

GUEST: editing a html page



Stacktrace: 
java.lang.NullPointerException
        at com.sun.tools.javac.api.JavacTrees.getTypeMirror(JavacTrees.java:187)
        at org.netbeans.modules.web.wicket.tree.ComponentIdFinder.scanInArgs(ComponentIdFinder.java:44)
        at org.netbeans.modules.web.wicket.tree.ComponentIdFinder.visitNewClass(ComponentIdFinder.java:59)
        at org.netbeans.modules.web.wicket.tree.ComponentIdFinder.visitNewClass(ComponentIdFinder.java:34)
        at com.sun.tools.javac.tree.JCTree$JCNewClass.accept(JCTree.java:1366)
        at com.sun.source.util.TreeScanner.scan(TreeScanner.java:76)
Comment 1 kidnapper 2009-04-24 14:51:56 UTC
Created attachment 80858 [details]
stacktrace
Comment 2 Dusan Balek 2009-05-04 11:47:37 UTC
ComponentIdFinder should not pass null to Trees.getTypeMirror(...). Reassigning.
Comment 3 Exceptions Reporter 2009-08-24 19:54:01 UTC
This issue already has 20 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=145470
Comment 4 Exceptions Reporter 2009-08-24 20:01:06 UTC
This issue already has 21 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=145470
Comment 5 Exceptions Reporter 2009-08-24 20:07:06 UTC
This issue already has 22 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=145470
Comment 6 massimo 2009-08-24 20:07:48 UTC
Created attachment 86584 [details]
edited java file that causes exception
Comment 7 Dusan Balek 2010-06-11 10:45:20 UTC
*** Bug 187415 has been marked as a duplicate of this bug. ***
Comment 8 Dusan Balek 2011-03-31 13:26:43 UTC
*** Bug 197251 has been marked as a duplicate of this bug. ***
Comment 9 Marian Mirilovic 2012-11-05 10:09:47 UTC
125 dups ... P1
Comment 10 carljmosca 2014-07-19 14:22:28 UTC
Created attachment 148147 [details]
stacktrace

starting NetBeans
Comment 11 pblakez 2017-02-07 22:56:19 UTC
A workaround 

disabled wicket plugins WicketCore and WicketFileTemplates worked for me 
at least I was able to open the files (.java, .htm) affected and keep working

NOT A FIX