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 156582 - abstract method rename refactoring NullPointerException
Summary: abstract method rename refactoring NullPointerException
Status: RESOLVED DUPLICATE of bug 120577
Alias: None
Product: java
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 6.x
Hardware: Macintosh Mac OS X
: P1 blocker with 1 vote (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-11 22:23 UTC by pohl
Modified: 2009-01-12 10:48 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
messages.log (44.35 KB, text/plain)
2009-01-11 22:24 UTC, pohl
Details

Note You need to log in before you can comment on or make changes to this bug.
Description pohl 2009-01-11 22:23:10 UTC
When attempting to rename an abstract method in an abstract superclass, I get the following message:

Module Java Refactoring threw java.lang.NullPointerException.  Please
report a bug against Java Refactoring module and attach your
var/log/messages.log

I'll attach the whole log after I create this issue, but in summary there is the following stack trace:

INFO [org.netbeans.api.java.source.ElementHandle]: Cannot resolve: ElementHandle[kind=OTHER; sigs=net.nanonation.ui.client.form.NGTimeFiel ]
INFO [org.netbeans.modules.refactoring.java.RetoucheUtils]: #120577: Cannot resolve ElementHandle[kind=OTHER; 
sigs=net.nanonation.ui.client.form.NGTimeFiel ]; file: /Users/pohl/Source/CP/trunk/CPLib/src/net/nanonation/ui/client/form/NG
TimeField.java
SEVERE [global]
java.lang.NullPointerException
        at org.netbeans.modules.refactoring.java.RetoucheUtils.getOverridingMethods(RetoucheUtils.java:219)
        at org.netbeans.modules.refactoring.java.plugins.RenameRefactoringPlugin.preCheck(RenameRefactoringPlugin.java:159)
        at org.netbeans.modules.refactoring.java.spi.JavaRefactoringPlugin$WorkingTask.run(JavaRefactoringPlugin.java:318)
        at org.netbeans.modules.refactoring.java.spi.JavaRefactoringPlugin$WorkingTask.run(JavaRefactoringPlugin.java:295)
        at org.netbeans.api.java.source.JavaSource.runUserActionTaskImpl(JavaSource.java:680)
        at org.netbeans.api.java.source.JavaSource.runUserActionTask(JavaSource.java:607)
        at org.netbeans.modules.refactoring.java.spi.JavaRefactoringPlugin$WorkingTask.run(JavaRefactoringPlugin.java:308)
        at org.netbeans.modules.refactoring.java.spi.JavaRefactoringPlugin$WorkingTask.access$100(JavaRefactoringPlugin.java:295)
        at org.netbeans.modules.refactoring.java.spi.JavaRefactoringPlugin.preCheck(JavaRefactoringPlugin.java:105)
[catch] at org.netbeans.modules.refactoring.api.AbstractRefactoring.pluginsPreCheck(AbstractRefactoring.java:347)
        at org.netbeans.modules.refactoring.api.AbstractRefactoring.preCheck(AbstractRefactoring.java:184)
        at org.netbeans.modules.refactoring.spi.impl.ParametersPanel$10.run(ParametersPanel.java:482)
        at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:572)
        at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:997)


Note that the class name mentioned in the first INFO log message above is actually called NGTimeField, not "NGTimeFiel".  Either the log message is 
truncating the name or perhaps this is somehow significant in the bug.
Comment 1 pohl 2009-01-11 22:24:22 UTC
Created attachment 75676 [details]
messages.log
Comment 2 Jiri Prox 2009-01-12 10:48:18 UTC
This is same problem as issue 120577, please attach messages.log to that issue. The temporal workaround is to delete
${userdir}/var/chache/index . Please backup it before deleting, it may be needed for resolving this issue. Thanks for
your report!

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