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 155968 - NullPointerException at com.sun.tools.javac.api.JavacTrees.getTypeMirror
Summary: NullPointerException at com.sun.tools.javac.api.JavacTrees.getTypeMirror
Status: NEW
Alias: None
Product: javaee
Classification: Unclassified
Component: Wicket (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: issues@javaee
URL: http://statistics.netbeans.org/except...
Keywords:
: 157014 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-12-22 22:56 UTC by aboujraf
Modified: 2012-10-01 13:02 UTC (History)
11 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 104149


Attachments
stacktrace (7.62 KB, text/plain)
2008-12-22 22:57 UTC, aboujraf
Details

Note You need to log in before you can comment on or make changes to this bug.
Description aboujraf 2008-12-22 22:56:31 UTC
Build: NetBeans IDE 6.5 (Build 200811100001)
VM: Java HotSpot(TM) Client VM, 11.0-b15, Java(TM) SE Runtime Environment, 1.6.0_10-b33
OS: Windows XP, 5.1, x86

User Comments:
aboujraf: I installed the wicket plugin

(i) I opened a java file containing import from org.apache.wicket.* elements
(ii) i right clicked on test wicket parser

then, the error occured

best regards, merry christmas and happy new year

GUEST: using "deploy on save" on glassfish v3, I saved a Wicket 1.4 class and the IDE tried redeployment

aboujraf: I installed the wicket plugin

(i) I opened a java file containing import from org.apache.wicket.* elements
(ii) i right clicked on test wicket parser

then, the error occured

best regards, merry christmas and happy new year



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.visitMethodInvocation(ComponentIdFinder.java:89)
        at org.netbeans.modules.web.wicket.tree.ComponentIdFinder.visitMethodInvocation(ComponentIdFinder.java:34)
        at com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1312)
        at com.sun.source.util.TreeScanner.scan(TreeScanner.java:76)
Comment 1 aboujraf 2008-12-22 22:57:41 UTC
Created attachment 75256 [details]
stacktrace
Comment 2 Dusan Balek 2009-01-02 09:05:23 UTC
'null' value should not be passed as argument to Trees.getTypeMirror(...) call. Reassigning.
Comment 3 Dusan Balek 2009-01-19 09:52:57 UTC
*** Issue 157014 has been marked as a duplicate of this issue. ***
Comment 4 Exceptions Reporter 2009-03-21 16:03:57 UTC
This issue has already 10 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=104149
Comment 5 Petr Jiricka 2009-06-12 10:12:57 UTC
Seems related to the wicket plugin itself, changing category.
Comment 6 Exceptions Reporter 2009-08-26 10:18:41 UTC
This issue already has 20 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=104149
Comment 7 Exceptions Reporter 2009-08-26 10:20:48 UTC
This issue already has 21 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=104149
Comment 8 Exceptions Reporter 2009-08-26 10:21:47 UTC
This issue already has 22 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=104149