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 178813 - [68cat] NullPointerException: #120577: Cannot resolve ElementHandle[kind=OTHER; sigs=org.netbeans.modules.apisupport.project.queries.ClassPathProviderImpl$1 ]; file: /space/src/nb/core-main/apisupport.project
Summary: [68cat] NullPointerException: #120577: Cannot resolve ElementHandle[kind=OTHE...
Status: RESOLVED DUPLICATE of bug 120577
Alias: None
Product: java
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal (vote)
Assignee: Jan Becicka
URL:
Keywords:
: 181408 181621 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-12-17 15:45 UTC by Jesse Glick
Modified: 2010-10-04 07:49 UTC (History)
12 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 163736


Attachments
stacktrace (2.02 KB, text/plain)
2009-12-17 15:45 UTC, Jesse Glick
Details
stacktrace (1.98 KB, text/plain)
2010-01-26 23:22 UTC, _ tboudreau
Details
stacktrace (1.98 KB, text/plain)
2010-02-05 14:56 UTC, _ tboudreau
Details
stacktrace (1.88 KB, text/plain)
2010-03-29 16:18 UTC, matthies
Details
stacktrace (1.98 KB, text/plain)
2010-04-15 17:31 UTC, matthies
Details
stacktrace (2.46 KB, text/plain)
2010-06-03 21:33 UTC, _ tboudreau
Details
stacktrace (2.47 KB, text/plain)
2010-09-10 10:41 UTC, aldobrucale
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2009-12-17 15:45:01 UTC
This bug was originally marked as duplicate of bug 120577, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE Dev (Build 091216-e04e6ba23600)
VM: Java HotSpot(TM) Client VM, 14.3-b01, Java(TM) SE Runtime Environment, 1.6.0_17-b04
OS: Linux, 2.6.31-16-generic, i386

User Comments:
mjr_1974: Renaming a method of an implemented interface. The message of the exception refers to a file I deleted. I cleaned and compiled everything before retrying, but the message refering to this file still exists.

jglick: Trying to rename a method in a nested interface.

hellochar: renaming interface method

GUEST: Trying to rename a method which.

GUEST: Tried to rename public abstract API method in a public package which is implemented in another module

matthies: Attempting to refactor-renam an interface method.

mikemaughan: Refactoring a method that is protected and overridden in multiple classes. The class that the error seems to point to has given multiple errors in the past. Merely scrolling through the file has thrown errors in previous netbeans versions.

jonast: Refactoring a function in an interface



Stacktrace: 
java.lang.NullPointerException: #120577: Cannot resolve ElementHandle[kind=OTHER; sigs=org.netbeans.modules.apisupport.project.queries.ClassPathProviderImpl$1 ]; file: /space/src/nb/core-main/apisupport.project/src/org/netbeans/modules/apisupport/project/queries/ClassPathProviderImpl.java
   at org.netbeans.modules.refactoring.java.RetoucheUtils.getOverridingMethods(RetoucheUtils.java:222)
   at org.netbeans.modules.refactoring.java.plugins.RenameRefactoringPlugin$2.run(RenameRefactoringPlugin.java:402)
   at org.netbeans.modules.refactoring.java.plugins.RenameRefactoringPlugin$2.run(RenameRefactoringPlugin.java:369)
   at org.netbeans.api.java.source.JavaSource$MultiTask.run(JavaSource.java:471)
   at org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:129)
   at org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:113)
Comment 1 Jesse Glick 2009-12-17 15:45:06 UTC
Created attachment 92731 [details]
stacktrace
Comment 2 _ tboudreau 2010-01-26 23:22:37 UTC
Created attachment 93577 [details]
stacktrace

Renamed a method called addChild to add (ValidationItem item, boolean disableUI).
Refactored an existing method add(ValidationItem) to add boolean parameter disableUI - so it would have exactly the same signature as the previously renamed method (i.e. I *wanted* uncompilable code, so that I would actually refactor all calls to add(ValidationItem) to now call the newly changed method.
Tried to rename *another* method, addWithDisabledUI(ValidationItem item) to "add".
Exception was thrown.
Comment 3 _ tboudreau 2010-02-05 14:56:50 UTC
Created attachment 93924 [details]
stacktrace

Exception is referring to a class I deleted several hours ago.  Attempting to refactor a package-private method name in the same package as the one I deleted (WrapTransaction).  I have done considerable renaming and moving of classes since that time (including several renames of classes from and back to the same name)
Comment 4 matthies 2010-03-29 16:18:31 UTC
Created attachment 96248 [details]
stacktrace

Refactor rename.
Comment 5 Exceptions Reporter 2010-03-29 16:18:43 UTC
This bug already has 20 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=163736
Comment 6 matthies 2010-04-15 17:31:46 UTC
Created attachment 97472 [details]
stacktrace
Comment 7 David Strupl 2010-04-27 08:44:48 UTC
*** Bug 181408 has been marked as a duplicate of this bug. ***
Comment 8 David Strupl 2010-04-27 08:46:14 UTC
*** Bug 181621 has been marked as a duplicate of this bug. ***
Comment 9 Jan Lahoda 2010-05-11 13:42:06 UTC
Precise steps to reproduce will be needed, IMO.
Comment 10 _ tboudreau 2010-06-03 21:33:18 UTC
Created attachment 99798 [details]
stacktrace

Tried to refactor rename
Comment 11 aldobrucale 2010-09-10 10:41:26 UTC
Created attachment 101977 [details]
stacktrace

Method rename
Comment 12 Jan Becicka 2010-10-04 07:49:56 UTC

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