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 167943 - Find usages dialog is broken
Summary: Find usages dialog is broken
Status: RESOLVED DUPLICATE of bug 166092
Alias: None
Product: connecteddeveloper
Classification: Unclassified
Component: Team Framework (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Jan Becicka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-01 10:57 UTC by aekold
Modified: 2009-07-09 14:00 UTC (History)
5 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
uigestures file with exception stacktraces (909.71 KB, text/plain)
2009-07-02 10:57 UTC, aekold
Details

Note You need to log in before you can comment on or make changes to this bug.
Description aekold 2009-07-01 10:57:01 UTC
System info:
Product Version: NetBeans IDE 6.7 (Build 200906241340)
Java: 1.6.0_14; Java HotSpot(TM) Client VM 14.0-b16
System: Windows XP version 5.1 running on x86; Cp1251; ru_RU (nb)
Userdir: D:\develop\labs\nbprofile67

Steps to reproduce:
1. Download and install NetBeans 6.7
2. Download and unpack netbeans-6.7-200906241340-src.zip
3. Open java.editor project
4. Open EqualsHashCodeGenerator class
5. select public static void generateEqualsAndHashCode(WorkingCopy wc, TreePath path) method and press "Find usages".
6. Select search option only in Java Editor project.
7. Press search.

Progress dialog is shown then disappears without results, only red error notification is blikning. Here is stacktrace:

java.lang.NullPointerException
	at com.sun.java.swing.plaf.nimbus.NimbusStyle.init(NimbusStyle.java:418)
	at com.sun.java.swing.plaf.nimbus.NimbusStyle.validate(NimbusStyle.java:359)
	at com.sun.java.swing.plaf.nimbus.NimbusStyle.getValues(NimbusStyle.java:927)
	at com.sun.java.swing.plaf.nimbus.NimbusStyle.getInsets(NimbusStyle.java:605)
	at javax.swing.plaf.synth.SynthStyle.installDefaults(SynthStyle.java:896)
	at javax.swing.plaf.synth.SynthLookAndFeel.updateStyle(SynthLookAndFeel.java:276)
	at javax.swing.plaf.synth.SynthTextFieldUI.updateStyle(SynthTextFieldUI.java:62)
	at javax.swing.plaf.synth.SynthTextFieldUI.installDefaults(SynthTextFieldUI.java:218)
	at javax.swing.plaf.basic.BasicTextUI.installUI(BasicTextUI.java:765)
	at javax.swing.plaf.synth.SynthTextFieldUI.installUI(SynthTextFieldUI.java:235)
	at javax.swing.JComponent.setUI(JComponent.java:673)
	at javax.swing.text.JTextComponent.setUI(JTextComponent.java:322)
	at javax.swing.text.JTextComponent.updateUI(JTextComponent.java:332)
	at javax.swing.JPasswordField.updateUI(JPasswordField.java:148)
	at javax.swing.text.JTextComponent.<init>(JTextComponent.java:306)
	at javax.swing.JTextField.<init>(JTextField.java:212)
	at javax.swing.JPasswordField.<init>(JPasswordField.java:121)
	at javax.swing.JPasswordField.<init>(JPasswordField.java:68)
	at org.netbeans.modules.kenai.ui.LoginPanel.initComponents(LoginPanel.java:133)
	at org.netbeans.modules.kenai.ui.LoginPanel.<init>(LoginPanel.java:75)
	at org.netbeans.modules.kenai.ui.spi.UIUtils.showLogin(UIUtils.java:184)
	at org.netbeans.modules.kenai.collab.chat.PresenceIndicator$MouseL.mouseClicked(PresenceIndicator.java:135)
	at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:253)
	at java.awt.Component.processMouseEvent(Component.java:6266)
	at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
	at java.awt.Component.processEvent(Component.java:6028)
	at java.awt.Container.processEvent(Container.java:2041)
	at java.awt.Component.dispatchEventImpl(Component.java:4630)
	at java.awt.Container.dispatchEventImpl(Container.java:2099)
	at java.awt.Component.dispatchEvent(Component.java:4460)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4574)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4247)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
	at java.awt.Container.dispatchEventImpl(Container.java:2085)
	at java.awt.Window.dispatchEventImpl(Window.java:2475)
	at java.awt.Component.dispatchEvent(Component.java:4460)

First I supposed it's a Nimbus bug, but what Find Usages dialog have to do with Kenai login?...
Comment 1 Max Sauer 2009-07-01 11:56:25 UTC
Stack trace from Kenai UI, reassigning. 
Comment 2 Milan Kubec 2009-07-01 12:00:07 UTC
It's probably only bad coincidence. Reassigning for evaluation.
Comment 3 Jan Becicka 2009-07-01 13:21:49 UTC
can anyone test Login to Kenai on Windows XP with nimbus look and feel?
Thanks
Comment 4 Petr Dvorak 2009-07-01 14:08:38 UTC
I have just tried it and I didn't see anything wrong (except for the not-working chatrooms due to the fact I changed my
LDAP password recently).
Comment 5 Petr Dvorak 2009-07-01 14:09:07 UTC
Product Version: NetBeans IDE 6.7 (Build 200906170001)
Java: 1.6.0_11; Java HotSpot(TM) Client VM 11.0-b16
System: Windows XP version 5.1 running on x86; Cp1252; en_US (nb)
Comment 6 Jan Becicka 2009-07-01 14:14:32 UTC
can I ask you to try also latest 1.6.0_14
Comment 7 aekold 2009-07-01 15:39:53 UTC
I didn't logined to Kenai. Just did steps to reproduce I described, nothing more.
Comment 8 Petr Dvorak 2009-07-01 16:36:11 UTC
No issues with:

Product Version: NetBeans IDE 6.7 (Build 200906170001)
Java: 1.6.0_14; Java HotSpot(TM) Client VM 14.0-b16
System: Windows XP version 5.1 running on x86; Cp1252; en_US (nb)

Login to Kenai works as expected... also, I didn't manage to reproduce the issue with the original steps.

aekold: The stacktrace suggests that the exception is thrown from the Kenai login dialog (using Nimbus l&f)
Comment 9 aekold 2009-07-01 19:26:49 UTC
joshis, I see that stack trace, but I assure you I didn't even configured Kenai module and didn't opened it after
installing NB6.7. That's why I fired this bug to you but not to Sun Swing issues.

If you need more info about my configuration or some logs or something I can send you to help reproduce this?
Comment 10 Jan Becicka 2009-07-02 07:14:37 UTC
aekold, please attach messages.log.
This exception is not related to Find Usages. You probably clicked on small "offline" icon in the status area (lower
right corner) and it invoked login to Kenai action. This exception was logged and than you probably invoked Find Usages
-> different exception was thrown, but first unread exception was displayed.
Anyway, please attach messages.log. Thanks
Comment 11 aekold 2009-07-02 10:56:36 UTC
jbecicka, you must be right - it was really hard to click that red icon, so it must be true that I clicked "offline" icon.

But there is one problem - there is no exception report in messages.log. But there are few exceptions (including this one 
i posted) in uigestures file. Attaching it...
Comment 12 aekold 2009-07-02 10:57:59 UTC
Created attachment 84293 [details]
uigestures file with exception stacktraces
Comment 13 Jan Becicka 2009-07-02 12:36:01 UTC
ui gestures shows, that very similar exception is thrown also for Find Usages.
Attaching standa, the Swing Guru. Did you see such exception before?
Comment 14 Stanislav Aubrecht 2009-07-02 13:01:03 UTC
never seen this exception before.
perhaps the report has made some customizations to nimbus look and feel (don't know how though)
Comment 15 aekold 2009-07-02 14:39:32 UTC
All my customizations:

=== swing.properties:
swing.defaultlaf=com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel
swing.boldMetal=false
awt.useSystemAAFontSettings=lcd

in fontconfig.properties changed Courier New to Consolas

in netbeans.conf maximum memory: -J-Xmx980m

and command like arguments to netbeans.exe: --userdir D:\develop\labs\nbprofile67 --laf 
com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel
Comment 16 Jan Becicka 2009-07-02 15:32:49 UTC
please try to revert
swing.defaultlaf=com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel
swing.boldMetal=false
awt.useSystemAAFontSettings=lcd
to default values (or remove them)

and restart netbeans.
did it help?
Comment 17 aekold 2009-07-02 18:45:29 UTC
Honestly after disabling team module and other not used modules - i cannot reproduce this at all. Even clear new 
userdir didn't helped me to reproduce it. I even starting to beleive it was just a bad coincidence, but it's the first 
time I see something like this... But how can it be like this?
Comment 18 Jan Becicka 2009-07-03 09:37:19 UTC
no idea.
please attach more info if it happens again. Thanks
Comment 19 Jan Stola 2009-07-08 17:35:40 UTC
I believe that issue 166092 is responsible for the described problem.

Steps to reproduce (with NB 6.7 FCS):
1. Start IDE on JDK 1.6.0_14 with Nimbus look and feel.
   Note that it is important to use update 14 that contains some changes in Nimbus l&f.
2. Open GUI builder - it will break UIDefaults (because of issue 166092).
   You can see some NPEs already.
3. Try to open some dialog in the IDE => exception is thrown.

No exception is thrown if you follow these steps in the latest development builds (where issue 166092 is fixed).
Comment 20 aekold 2009-07-09 13:55:01 UTC
jstola, you're totally right! Even show exception dialog is not shown, just like I couldn't hit red icon. May be it's 
possible to mark this issue as duplicate of 166092?
Comment 21 Jan Becicka 2009-07-09 14:00:27 UTC
yes, it is duplicate. thanks for confirmation.

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