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 176014 - [68cat] 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\Li
Summary: [68cat] NullPointerException: #120577: Cannot resolve ElementHandle[kind=OTHE...
Status: RESOLVED DUPLICATE of bug 120577
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Tomas Zezula
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-04 17:07 UTC by matthies
Modified: 2011-02-07 15:41 UTC (History)
15 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 161496


Attachments
stacktrace (2.16 KB, text/plain)
2009-11-04 17:07 UTC, matthies
Details
stacktrace (2.16 KB, text/plain)
2009-11-04 18:34 UTC, matthies
Details
stacktrace (2.16 KB, text/plain)
2009-11-04 19:13 UTC, matthies
Details
stacktrace (2.10 KB, text/plain)
2010-02-06 13:15 UTC, _ tboudreau
Details
stacktrace (2.18 KB, text/plain)
2010-05-07 14:25 UTC, Alexander Simon
Details

Note You need to log in before you can comment on or make changes to this bug.
Description matthies 2009-11-04 17:07:45 UTC
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)
Comment 1 matthies 2009-11-04 17:07:52 UTC
Created attachment 90493 [details]
stacktrace
Comment 2 matthies 2009-11-04 18:34:09 UTC
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)
Comment 3 matthies 2009-11-04 18:34:13 UTC
Created attachment 90497 [details]
stacktrace
Comment 4 Jan Pokorsky 2009-11-04 18:40:53 UTC
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.
Comment 5 matthies 2009-11-04 19:13:10 UTC
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)
Comment 6 matthies 2009-11-04 19:13:14 UTC
Created attachment 90500 [details]
stacktrace
Comment 7 Exceptions Reporter 2009-11-06 03:27:15 UTC
This issue already has 21 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=161496
Comment 8 Tomas Zezula 2009-11-09 07:40:43 UTC
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.
Comment 9 matthies 2009-11-09 08:00:34 UTC
There is no archive file. "PenComCore.jar" is a regular directory, not a jar archive.
Comment 10 Tomas Zezula 2009-11-09 08:07:49 UTC
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
Comment 11 _ tboudreau 2010-02-06 13:15:10 UTC
Created attachment 93934 [details]
stacktrace
Comment 12 _ tboudreau 2010-02-07 00:57:24 UTC
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.
Comment 13 Alexander Simon 2010-05-07 14:25:11 UTC
Created attachment 98632 [details]
stacktrace
Comment 14 Tomas Zezula 2011-02-07 15:41:02 UTC
The issue #120577 has additional logging.

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