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.
Build: NetBeans IDE Dev (Build 20080312071229) VM: Java HotSpot(TM) 64-Bit Server VM, 1.6.0_04-b12-45-optimized OS: Mac OS X, 10.5.2, x86_64 User Comments: This constantly pops up while I'm typing code while having debugger session active
Created attachment 58385 [details] stacktrace
It comes from a tooltip over some field. Can you please provide the source and the field you're evaluating?
Sorry, I've closed the session in the meantime and I don't remember what my mouse has been pointing at. I'll add the info if it occurs again.
I've reproduced it again. 1) Open Editor.Options module 2) Debug module from step 1) 4) In the debugged IDE, invoke Tools|Options|Fonts&Colors|[...] button 5) Place BP on ColorModel:311 6) Change Font Type in Font dialog from 4) 7) Confirm form dialog 8) Wait until BP hit 9) Point yout mouse to 312:testProfileName field
Created attachment 58669 [details] gestures
Created attachment 58670 [details] ide log
This issue has already 5 duplicates
Huh, what's Editor.Options module?? grep -r ColorModel main, gave me, besides others, options.editor/src/org/netbeans/modules/options/colors/ColorModel.java Reproduced, the problematic field is "testProfileName". There is one more problem, variables from the outer method - defaults, highlightings, syntaxColorings - are reported as unknown.
Eh, I meant options.editor of course. Sorry :)
Fixed: changeset: 75273:6635865247db http://hg.netbeans.org/main/rev/6635865247db
I was able to reproduce it in 6.1: Product Version: NetBeans IDE Dev (Build 200804082140) Java: 1.6.0_04; Java HotSpot(TM) Client VM 10.0-b19 System: SunOS version 5.11 running on x86; UTF-8; en_US (nb) http://statistics.netbeans.org/analytics/detail.do?id=45094 Is the fix in 6.1 branch?
The fix is in 6.1 branch, I've verified that. gorrus, we need the steps to reproduce this - the source code and the place where did you evaluated the field. I hope it's not confidential.
Sure, here is how I reproduce the problem: - run netbeans(1) on your machine(1) - run netbeans(2) with debug on a separate machine(2) - attach debugger from netbeans(1) to machine(2) - in netbeans(2) open Window->Debugging->Watches - in netbeans(1) set breakpoint at openide.explorer/src/org/openide/explorer/view/TreeTableView.java:1593 ( inside getTableCellRendererComponent method. It is called when you click on column header in a table) - click on column header inside Watches window in netbeans(2) - debugger in netbeans(1) stopped on the breakpoint - try to get the tooltip with the variable value for any class memeber (for example treeColumnProperty) and get the exception
It is still there in (I changed java and ide build slightly): Product Version: NetBeans IDE Dev (Build 200804090901) Java: 1.6.0_05; Java HotSpot(TM) Client VM 10.0-b19 System: SunOS version 5.11 running on x86; UTF-8; en_US (nb) Raising priority to P1.
Thanks for reproducible steps. However I believe that this is not a showstopper. NB 5.x and 6.0 had a lot of issues with expression evaluation and they were not considered as showstoppers. Decreasing to P2.
In described case if I have watch on this member I get an exception every debugger step. I will not argue about priorities, just wanted to see this fixed in 6.1.
This issue has already 20 duplicates
We did not take into account subclasses of object which contains the evaluated fields. It should be fixed now in trunk: changeset: 79039:5344d2156a92 http://hg.netbeans.org/main/rev/5344d2156a92
Issue '130144' Integrated in NB_Trunk_Production #154 : http://hg.netbeans.org/main/rev/5344d2156a92, with comment: #130144: When searching for object that contains the evaluated field, take subclasses of the outer class into account.
Verified Product Version: NetBeans IDE Dev (Build 200804250004) Java: 1.6.0_05; Java HotSpot(TM) Client VM 10.0-b19 System: Windows XP version 5.1 running on x86; Cp1250; cs_CZ (nb)
merged to release61_fixes repository changeset: 77442:54e97f89a549 user: mentlicher@netbeans.org date: Wed Apr 23 23:50:02 2008 +0200 summary: #130144: When searching for object that contains the evaluated field, take subclasses of the outer class into account.
Verified on Patch1.
I can reproduce it with Product Version: NetBeans IDE Dev (Build 080716) Java: 1.6.0_03; Java HotSpot(TM) Client VM 1.6.0_03-b05 System: Linux version 2.6.22-14-generic running on i386; UTF-8; en_US (nb) The exception occurs whenever I move mouse cursor over a java statement e.g. refactoring.setRefactorFields at setParameters(boolean checkOnly), EncapsulateFieldUI.java, refactoring.java project. private Problem setParameters(boolean checkOnly) { refactoring.setRefactorFields(panel.getAllFields()); refactoring.setMethodModifiers(panel.getMethodModifiers());
Jiri, I can not reproduce this "Invalid field" error when following your description. Where did you have the program counter during evaluation of the refactoring.setRefactorFields? I've found one case where "Invalid field" is thrown, but that seems to be a different problem. It's thrown when you try to evaluate a private field of a super class.
This is not reproducible for me as well. I have stopped debugger at breakpoint set in EncapsulateFieldUI.setParameters() method and tried to invoke tooltips for all possible identifiers of the method's body. No IllegalArgumentException has been thrown.
As you can read from the logger (http://statistics.netbeans.org/analytics/detail.do?id=77178) I did several Step Over actions. I am not sure if I was looking there via the Debugging view -> Make Current. Sorry, I am not able to reproduce it again.
There was no pointer to http://statistics.netbeans.org/analytics/detail.do?id=77178 from this issue! I can not read anything relevant from that anyway, it's not apparent where was the debugger stopped, where was your program counter. Thus, it's impossible to reproduce.
It is listed as a duplicate of the http://statistics.netbeans.org/exceptions/detail.do?id=34864. See 'URL:' field. My experience is that these debugger bugs are random between IDE sessions and I see a lot of different exceptions from the debugger lately. Thus I do not remember all circumstances. If you have some logging that I could turn on please let me know. I will provide more relevant details then.
O.K. Thanks. This bug is not random, I've found just one case when it's reproducible: public class InvalidField { private int field = 0; private static class Inner { public Inner() { int a = 0;// field } } public static void main(String[] args) { new Inner(); } } When the program counter is at line "int a = 0;" then when "field" variable is evaluated, the "Invalid field" exception is thrown. I'll fix that case.
I've fixed in problem with the described use-case in changeset: 91030:22584cb65360 Please reopen if this happens again. I will need the location where debugger was stopped and the string that was evaluated. http://hg.netbeans.org/main/rev/22584cb65360
If there are additional code changes (trunk changesets) to be included in Patch 3, ensure its status is "VERIFIED" before nominating. Please note NetBeans 6.1 Patch3 cut-off is going to happen on close of business August 5th.
Verified in trunk.
I've ported the changeset http://hg.netbeans.org/main/rev/22584cb65360 into release61_fixes repository as http://hg.netbeans.org/release61_fixes/rev/80628106ce96 and http://hg.netbeans.org/release61_fixes/rev/6b3c1e14601b (fix-up of manually applied changeset).
i have this problem with NetBeans IDE 6.1 (Build 200804211638)
collinm, if this exception still occurs, please provide steps to reproduce. Otherwise we can not fix it. Thanks.
collinm, have you applied all available patches? (BTW. patches don't change IDE build number so it's hard say if you applied any patch). You can use steps described at http://hg.netbeans.org/main/raw-file/63c0534adb36/usersguide/javahelp/org/netbeans/modules/usersguide/configure/modules/autoupdate.html for the IDE update, if needed.
found steps to reproduce in: Product Version: NetBeans IDE Dev (Build 200810060201) Java: 1.6.0_10-rc; Java HotSpot(TM) Client VM 11.0-b14 System: Windows Vista version 6.0 running on x86; Cp1250; cs_CZ (nb) place caret on line 129 of MemoryView.java -> invoke run to cursor -> invoke step into -> hold mouse over some non-primitive variable (to get baloon tooltip) -> exception
Reproduced. Thanks for the reproducible steps.
The problem is, that the reference to the outer class is not yet defined when entering the constructor of the inner class.
Fixed in changeset: 105159:209b78feb8ba http://hg.netbeans.org/main/rev/209b78feb8ba Please verify.
Integrated into 'main-golden', will be available in build *200810070201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/209b78feb8ba User: mentlicher@netbeans.org Log: #130144 - Report an error when we're not able to find the enclosing object instead of evaluating the field/method on a bad instance.
Verified fixed on: Product Version: NetBeans IDE Dev (Build 200810070201) Java: 1.6.0_10-rc; Java HotSpot(TM) Client VM 11.0-b14 System: Windows Vista version 6.0 running on x86; Cp1250; cs_CZ (nb)
I've ported the changeset http://hg.netbeans.org/main/rev/209b78feb8ba into release61_fixes repository as http://hg.netbeans.org/release61_fixes/rev/b1400e3bf201