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 64189 - Neverending stream of NPEs when closing welcome screen
Summary: Neverending stream of NPEs when closing welcome screen
Status: VERIFIED DUPLICATE of bug 64565
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 5.x
Hardware: All All
: P1 blocker (vote)
Assignee: David Simonek
URL:
Keywords:
: 64256 (view as bug list)
Depends on:
Blocks: 64288
  Show dependency tree
 
Reported: 2005-09-13 09:05 UTC by Milan Kubec
Modified: 2008-12-22 16:45 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
exc stack traces (4.74 KB, text/plain)
2005-09-13 09:06 UTC, Milan Kubec
Details
exceptions from JDK 1.4.2_09 (4.67 KB, text/plain)
2005-09-13 12:41 UTC, Milan Kubec
Details
exceptions from JDK 1.6.0 (4.89 KB, text/plain)
2005-09-13 12:42 UTC, Milan Kubec
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Milan Kubec 2005-09-13 09:05:29 UTC
[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)
...
Comment 1 Milan Kubec 2005-09-13 09:06:32 UTC
Created attachment 24727 [details]
exc stack traces
Comment 2 David Simonek 2005-09-13 09:54:26 UTC
Not reproductible for me, no matter how hard I try. Looks like JDK bug, please
try to search JDK bug database for "Component.requestFocusHelper".
Comment 3 Milan Kubec 2005-09-13 09:56:27 UTC
Just reproduced on different computer with Linux. Did you follow those steps
exactly?
Comment 4 Milan Kubec 2005-09-13 10:08:07 UTC
Just reproduced on JDK 1.4.2_09, WinXP.
Comment 5 Tomas Danek 2005-09-13 10:57:20 UTC
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
Comment 6 Tomas Danek 2005-09-13 11:03:36 UTC
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
Comment 7 David Simonek 2005-09-13 12:16:08 UTC
NOT REPRODUCTIBLE on my machine at all (Milan saw it :-) P1 or P2, still I can't
fix it :-( 
Comment 8 Milan Kubec 2005-09-13 12:41:42 UTC
Created attachment 24747 [details]
exceptions from JDK 1.4.2_09
Comment 9 Milan Kubec 2005-09-13 12:42:08 UTC
Created attachment 24748 [details]
exceptions from JDK 1.6.0
Comment 10 Milan Kubec 2005-09-14 08:15:33 UTC
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.
Comment 11 Marian Mirilovic 2005-09-14 09:01:45 UTC
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.
Comment 12 David Simonek 2005-09-14 15:18:19 UTC
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.
Comment 13 Jan Chalupa 2005-09-14 22:56:34 UTC
I can reproduce it. Custom build of 20050914 sources, JDK 1.5.0_01, Win XP.
Comment 14 David Simonek 2005-09-15 14:11:01 UTC
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
Comment 15 David Simonek 2005-09-15 14:57:10 UTC
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
Comment 16 Marian Mirilovic 2005-09-15 19:57:31 UTC
verified in Q-build
Comment 17 Tomas Danek 2005-09-19 12:47:05 UTC
Have to reopen:( still reproducible in 20050918
Comment 18 _ pkuzel 2005-09-19 12:50:01 UTC

*** This issue has been marked as a duplicate of 64565 ***
Comment 19 Tomas Danek 2005-09-19 13:22:54 UTC
ups, i did not search in UI/Welcome screen...sorry.. verified.
Comment 20 _ pkuzel 2005-09-20 11:47:37 UTC
FYI: Interesting workaround: delete userdir.
Comment 21 Marian Mirilovic 2005-09-21 12:48:54 UTC
*** Issue 64256 has been marked as a duplicate of this issue. ***