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.
This issue was originally marked as duplicate of issue 120577, that is already resolved. This issue is still valid, so this seems to be another issue, but it might be related. Build: NetBeans IDE Dev (Build nbms-and-javadoc-4215-on-091104) 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: GUEST: this error happened after hitting CTRL-R refactoring tor: Tried to rename an abstract method t_h: Tried to rename method in interface GUEST: Wanted to do refactor on interface method. GUEST: Refactoring a protected method GUEST: refactor GUEST: CTRL-R to rename a method matthies: Rename refactoring on method. smsmithee: Refactoring (renaming) method. mikemaughan: Refactoring(renaming) a protected method that is overriden in many other classes. cashannon: Trying to refactor getter method. bburette: Same action but I quit the IDE and restarted it, my first action was to try to refactor the method name and Exception was triggered bburette: Begin refactoring an abstract method from abstract class to change its name. i30817: CTRL + R on a method of a interface got thruu ServiceLoader (not that it should matter since the implementation is in the sampe project). GUEST: refactoring method name Stacktrace: java.lang.NullPointerException: #120577: Cannot resolve ElementHandle[kind=OTHER; sigs=calc.library.Library$ConcatLhsVisitor$1 ]; file: C:\Home\nm\Devel\pencom\PenComBean\PenComCore.jar\src\java\calc\library\Library.java at org.netbeans.modules.refactoring.java.RetoucheUtils.getOverridingMethods(RetoucheUtils.java:222) at org.netbeans.modules.refactoring.java.plugins.RenameRefactoringPlugin.preCheck(RenameRefactoringPlugin.java:152) at org.netbeans.modules.refactoring.java.spi.JavaRefactoringPlugin$WorkingTask.run(JavaRefactoringPlugin.java:319) at org.netbeans.modules.refactoring.java.spi.JavaRefactoringPlugin$WorkingTask.run(JavaRefactoringPlugin.java:296) at org.netbeans.api.java.source.JavaSource$MultiTask.run(JavaSource.java:466) at org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:129)
Created attachment 90493 [details] stacktrace
Build: NetBeans IDE Dev (Build 200911040201) 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: Method rename. Stacktrace: java.lang.NullPointerException: #120577: Cannot resolve ElementHandle[kind=OTHER; sigs=calc.library.Library$ConcatLhsVisitor$1 ]; file: C:\Home\nm\Devel\pencom\PenComBean\PenComCore.jar\src\java\calc\library\Library.java at org.netbeans.modules.refactoring.java.RetoucheUtils.getOverridingMethods(RetoucheUtils.java:222) at org.netbeans.modules.refactoring.java.plugins.RenameRefactoringPlugin.preCheck(RenameRefactoringPlugin.java:152) at org.netbeans.modules.refactoring.java.spi.JavaRefactoringPlugin$WorkingTask.run(JavaRefactoringPlugin.java:319) at org.netbeans.modules.refactoring.java.spi.JavaRefactoringPlugin$WorkingTask.run(JavaRefactoringPlugin.java:296) at org.netbeans.api.java.source.JavaSource$MultiTask.run(JavaSource.java:466) at org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:129)
Created attachment 90497 [details] stacktrace
Yes, it fails in the same place but it is hard to determine the reason without source code or a test case. There is a bunch of unresolved ElementHandles in messages.log (http://statistics.netbeans.org/exceptions/messageslog?id=294044). The last is an unresolved anonymous class calc.library.Library$ConcatLhsVisitor$1. Would it be possible to attach here or send to email Library.java? tzezula: Take notice of the exception message that Library.java comes from jar archive ...\PenComCore.jar\src\java\calc\library\Library.java. From http://statistics.netbeans.org/exceptions/messageslog?id=290715 it seems like wrong package: Cannot resolve ElementHandle[kind=OTHER; sigs=ProPos.Gostinstvo.Nastanitev ]; file: C:\java_source\ProPos\src\java\ProPos\Gostinstvo\DobrodosliRecepcija.java An anonymous class sigs=pt.keywords.vars.Get$1 again in http://statistics.netbeans.org/exceptions/messageslog?id=287912.
Build: NetBeans IDE Dev (Build 200911040201) 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: Started a method rename refactoring right after a previous one had finished. (Maybe that was too fast. Race condition?) The source code was free from compilation errors. Stacktrace: java.lang.NullPointerException: #120577: Cannot resolve ElementHandle[kind=OTHER; sigs=calc.library.Library$ConcatLhsVisitor$1 ]; file: C:\Home\nm\Devel\pencom\PenComBean\PenComCore.jar\src\java\calc\library\Library.java at org.netbeans.modules.refactoring.java.RetoucheUtils.getOverridingMethods(RetoucheUtils.java:222) at org.netbeans.modules.refactoring.java.plugins.RenameRefactoringPlugin.preCheck(RenameRefactoringPlugin.java:152) at org.netbeans.modules.refactoring.java.spi.JavaRefactoringPlugin$WorkingTask.run(JavaRefactoringPlugin.java:319) at org.netbeans.modules.refactoring.java.spi.JavaRefactoringPlugin$WorkingTask.run(JavaRefactoringPlugin.java:296) at org.netbeans.api.java.source.JavaSource$MultiTask.run(JavaSource.java:466) at org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:129)
Created attachment 90500 [details] stacktrace
This issue already has 21 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=161496
How is it possible that the refactoring runs on the top of archive file? The jar sources are read only anyway and are not scanned.
There is no archive file. "PenComCore.jar" is a regular directory, not a jar archive.
Seems as several independent issues. I will split them by categories. 1st type) No source file at all. 2nd type) Anonymous inner classes 3rd) name != source file
Created attachment 93934 [details] stacktrace
Apparently this junk remains in the cache after several IDE restarts. It is still looking for this WrapTransaction class which I deleted yesterday, several restarts ago.
Created attachment 98632 [details] stacktrace
The issue #120577 has additional logging. *** This bug has been marked as a duplicate of bug 120577 ***