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 47460 - NPE & CCE's when using popup search field in new project wizard
Summary: NPE & CCE's when using popup search field in new project wizard
Status: CLOSED WORKSFORME
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Projects UI (show other bugs)
Version: 4.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Petr Hrebejk
URL:
Keywords: RANDOM
Depends on:
Blocks:
 
Reported: 2004-08-19 12:51 UTC by _ tboudreau
Modified: 2006-03-24 10:20 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Exceptions (19.86 KB, text/plain)
2004-08-19 12:51 UTC, _ tboudreau
Details

Note You need to log in before you can comment on or make changes to this bug.
Description _ tboudreau 2004-08-19 12:51:10 UTC
Only reproduced once, couldn't make it happen
again. JDK 1.5b59.

Open the New Project wizard and select some category.
Click the ListView with the project types in it.
Type "java pr"

The attached exception is thrown; the CCEs come
every time after that that the description field
tries to paint.

I'd guess that something asynchronously sets the
text for the description, and that there's some
threading issue that caused this.
Comment 1 _ tboudreau 2004-08-19 12:51:49 UTC
Created attachment 16949 [details]
Exceptions
Comment 2 Petr Hrebejk 2004-08-19 17:22:49 UTC
Can't reproduce. Reopen if it happen again.
Comment 3 _ tboudreau 2004-08-19 19:15:07 UTC
I can't reproduce it either.  But take a look at whatever code
populates the text of the description component - there is probably
something asynchronous happening there that causes the problem.

If you're totally sure nothing will ever be done to that dialog except
on the AWT thread, then okay, it's some bug in the text package, and
it won't be the first.
Comment 4 Petr Hrebejk 2004-08-20 11:11:16 UTC
It was recently rewritten by Tomas Zezula and all the code should run
in the AWT. Let's hope it will work.
Comment 5 Jesse Glick 2004-08-20 17:09:19 UTC
Correcting target milestone (Petr you reset it to TBD).
Comment 6 _ tboudreau 2004-08-20 19:29:11 UTC
Note that having ponderedTemplatesPanelGUI a bit, it seems to have a number of 
problems
 - Behavior is strange - components are added after the dialog is shown, so it's visibly 
empty for a while
 - Contains a bunch of nested classes like a subclass of BTV adding one method - these 
could be eliminated and the methods moved to the parent class

I'm guessing that the warmup task is no longer run for it, and that's why the behavior is 
noticable only recently.  There's clearly code for a warmup task, and it's clearly not 
warmed up after startup.

Suggest vastly simplifying it, and in particular, create the components normally, in the 
constructor - what's probably slow is resolving the nodes for the tree, not running a few 
component constructors (eliminating the nested classes would save loading a few classes 
too).  
Comment 7 Marian Mirilovic 2005-07-12 10:11:08 UTC
closed