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.
[dev-200509122200, JDK 1.5.0_04] Steps to reproduce: 1) Start IDE with clean userdir 2) Click What's New in the Welcome screen (let browser display the page) 3) Go back to IDE and close the Welcome screen Attached exception is thrown and when clicking OK in Exception dialog new exceptions are poping up. I had to kill IDE to get rid of them. After restart Welcome screen is opened again and can be closed. java.lang.NullPointerException at java.awt.Component.requestFocusHelper(Component.java:6535) at java.awt.Component.requestFocus(Component.java:6370) at javax.swing.JComponent.requestFocus(JComponent.java:1416) at org.netbeans.core.windows.view.ViewHierarchy.updateDesktop(ViewHierarchy.java:673) at org.netbeans.core.windows.view.DefaultView.changeGUI(DefaultView.java:329) at org.netbeans.core.windows.ViewRequestor.dispatchRequest(ViewRequestor.java:238) ...
Created attachment 24727 [details] exc stack traces
Not reproductible for me, no matter how hard I try. Looks like JDK bug, please try to search JDK bug database for "Component.requestFocusHelper".
Just reproduced on different computer with Linux. Did you follow those steps exactly?
Just reproduced on JDK 1.4.2_09, WinXP.
very easily reproducible.. you can also try only closing/opening welcome screen (but this is a single exception and dialog can be closed) JDK 1.6.0 ea , IDE 20050912
Sorry, NPE after opening / closing WS appears not only one NPE, but while dialog closed, appears again after any acrion in IDE. makes ide completly unusable->P1
NOT REPRODUCTIBLE on my machine at all (Milan saw it :-) P1 or P2, still I can't fix it :-(
Created attachment 24747 [details] exceptions from JDK 1.4.2_09
Created attachment 24748 [details] exceptions from JDK 1.6.0
I have filed issues into bugster, number is #6323150. Dafe, before you close the Welcome screen hover mouse over the image and buttons in the welcome screen. Build 200509131800 seems to be even worse. I tried to close Welcome screen as first action in newly started IDE. First attempt: the same behavior as already described. Second attempt with clean userdir: Only one exception was thrown but then exceptions were thrown after clicking menus in Main window, right clicking tabs in Explorer or selecting items in Main Window context menu for toolbars. Third attempt, again with clean userdir: First close of Welcome was OK, but opening it and closing it started to thrown exceptions after almost any click anywhere in IDE - menus in Main window, context menus in Explorer tabs, ... It there is bug in JDK we have to create some workaround.
Ups, you are right I've got it right now. NB 5.0 (200509131800) , JDK1.5.0_05 Linux RH9 / Gnome Dafe, did you try exactly the same steps as Milan'd written? I have to mark this as a Q-build stopper.
Yes, I followed the steps exactly several times, still no luck. Various behaviour of exceptions proves that it is really random issue, as nearly all focus issues are. It is probably something triggered by new welcome screen, but at this time I don't even know what is going on and I don't know how to fix this.
I can reproduce it. Custom build of 20050914 sources, JDK 1.5.0_01, Win XP.
fixed in main trunk: /cvs/core/windows/src/org/netbeans/core/windows/view/ViewHierarchy.java,v <-- ViewHierarchy.java new revision: 1.39; previous revision: 1.38
fix integrated also into Qbuild branch: Checking in ViewHierarchy.java; /cvs/core/windows/src/org/netbeans/core/windows/view/ViewHierarchy.java,v <-- ViewHierarchy.java new revision: 1.38.28.1; previous revision: 1.38
verified in Q-build
Have to reopen:( still reproducible in 20050918
*** This issue has been marked as a duplicate of 64565 ***
ups, i did not search in UI/Welcome screen...sorry.. verified.
FYI: Interesting workaround: delete userdir.
*** Issue 64256 has been marked as a duplicate of this issue. ***