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 118632 - Exception thrown while doing "Find Usages"
Summary: Exception thrown while doing "Find Usages"
Status: RESOLVED DUPLICATE of bug 122664
Alias: None
Product: java
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 blocker with 2 votes (vote)
Assignee: issues@java
URL:
Keywords:
: 128683 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-10-11 23:13 UTC by massimo
Modified: 2008-02-29 16:12 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
netbeans messages.log (44.43 KB, text/plain)
2008-02-19 13:52 UTC, mtruesdell
Details

Note You need to log in before you can comment on or make changes to this bug.
Description massimo 2007-10-11 23:13:57 UTC
Happened few times when clicking "Find Usage" on a class in a module (writing modules for branded application on NB 6
with NB 6 IDE beta 1). Attaching log, as suggested by the pop up dialog of the error.
Comment 1 massimo 2007-10-11 23:57:35 UTC
I continuously get this, attaching another messages.log: this time is a NPE.
Comment 2 Jan Becicka 2007-10-12 06:21:02 UTC
OK. Please go ahead and attach messages.log. :)
Comment 3 massimo 2007-10-13 02:06:06 UTC
ok, sorry about that, have no idea why the log did not make it ... Attaching now (hopefully).. the exception is an NPE
like this:
INFO [global]: Refactoring plugin threw exception:
java.lang.NullPointerException
	at org.netbeans.modules.refactoring.java.plugins.FindUsagesVisitor.addIfMatch(FindUsagesVisitor.java:80)
Comment 4 rost 2007-12-03 17:12:06 UTC
I just installed NetBeans 6.0 final and after not more than fife minutes NetBeans threw the following 
NullPointerException:
-----------------
java.lang.NullPointerException
	at org.netbeans.modules.refactoring.java.plugins.FindUsagesVisitor.addIfMatch(FindUsagesVisitor.java:149)
	at 
org.netbeans.modules.refactoring.java.plugins.FindUsagesVisitor.visitMemberSelect(FindUsagesVisitor.java:116)
	at 
org.netbeans.modules.refactoring.java.plugins.FindUsagesVisitor.visitMemberSelect(FindUsagesVisitor.java:62)
	at com.sun.tools.javac.tree.JCTree$JCFieldAccess.accept(JCTree.java:1662)
	at com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:67)
	at com.sun.source.util.TreeScanner.visitImport(TreeScanner.java:124)
	at com.sun.tools.javac.tree.JCTree$JCImport.accept(JCTree.java:514)
	at com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:67)
	at com.sun.source.util.TreeScanner.scan(TreeScanner.java:90)
	at com.sun.source.util.TreeScanner.scanAndReduce(TreeScanner.java:98)
	at com.sun.source.util.TreeScanner.visitCompilationUnit(TreeScanner.java:118)
	at 
org.netbeans.modules.refactoring.java.plugins.FindUsagesVisitor.visitCompilationUnit(FindUsagesVisitor.java:105)
	at 
org.netbeans.modules.refactoring.java.plugins.FindUsagesVisitor.visitCompilationUnit(FindUsagesVisitor.java:62)
	at com.sun.tools.javac.tree.JCTree$JCCompilationUnit.accept(JCTree.java:485)
	at com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:67)
	at 
org.netbeans.modules.refactoring.java.plugins.JavaWhereUsedQueryPlugin$FindTask.run(JavaWhereUsedQueryPlugin.java:265)
	at 
org.netbeans.modules.refactoring.java.plugins.JavaWhereUsedQueryPlugin$FindTask.run(JavaWhereUsedQueryPlugin.java:235)
	at org.netbeans.api.java.source.JavaSource.runModificationTask(JavaSource.java:842)
	at 
org.netbeans.modules.refactoring.java.spi.JavaRefactoringPlugin.processFiles(JavaRefactoringPlugin.java:244)
	at 
org.netbeans.modules.refactoring.java.spi.JavaRefactoringPlugin.processFiles(JavaRefactoringPlugin.java:230)
	at 
org.netbeans.modules.refactoring.java.plugins.JavaWhereUsedQueryPlugin.prepare(JavaWhereUsedQueryPlugin.java:181)
	at org.netbeans.modules.refactoring.api.AbstractRefactoring.pluginsPrepare(AbstractRefactoring.java:380)
	at org.netbeans.modules.refactoring.api.AbstractRefactoring.prepare(AbstractRefactoring.java:202)
	at org.netbeans.modules.refactoring.spi.impl.ParametersPanel$Prepare.run(ParametersPanel.java:760)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:561)
[catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:986)
-----------------
Comment 5 mtruesdell 2008-02-19 13:48:46 UTC
I get this continuously as well. I have never been able to get Find Usages to work. Project is a straight servlet/jsp
project, no frameworks.

java.lang.NullPointerException
	at org.netbeans.modules.web.refactoring.WebXmlRefactoring.getServlets(WebXmlRefactoring.java:75)
	at org.netbeans.modules.web.refactoring.whereused.WebXmlWhereUsed.prepare(WebXmlWhereUsed.java:62)
	at org.netbeans.modules.web.refactoring.WebRefactoringPlugin.prepare(WebRefactoringPlugin.java:71)
[catch] at org.netbeans.modules.refactoring.api.AbstractRefactoring.pluginsPrepare(AbstractRefactoring.java:380)
	at org.netbeans.modules.refactoring.api.AbstractRefactoring.prepare(AbstractRefactoring.java:202)
	at org.netbeans.modules.refactoring.spi.impl.ParametersPanel$Prepare.run(ParametersPanel.java:760)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:561)
	at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:986)
Comment 6 mtruesdell 2008-02-19 13:52:25 UTC
Created attachment 56860 [details]
netbeans messages.log
Comment 7 Jiri Prox 2008-02-28 12:22:12 UTC
to mtruesdell: please file your stacktrace agains web module. This issue is related to different problem.
Comment 8 Jiri Prox 2008-02-28 12:25:03 UTC
*** Issue 128683 has been marked as a duplicate of this issue. ***
Comment 9 Jan Becicka 2008-02-29 16:12:52 UTC

*** This issue has been marked as a duplicate of 122664 ***