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 46716

Summary: Different Exception on New Project dialog
Product: projects Reporter: zikmund <zikmund>
Component: Generic InfrastructureAssignee: Tomas Zezula <tzezula>
Status: CLOSED FIXED    
Severity: blocker CC: jglick, tzezula
Priority: P2 Keywords: RANDOM, THREAD
Version: 4.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 41535    
Attachments: NPE
NPE #2 from 200408101800 build
ClassCastException in Qbuild 200408121535
Changed line numbers in NPE #1 in beta builds: 200408172200 & 200408181510

Description zikmund 2004-07-28 17:08:03 UTC
Build 200407271830

This happened to me once:
1) I started with clean userdir
2) closed the Welcome screen
3) clicked New Project tool bar icon
4) ERROR:
NPE appeared -- see attachment
Notice: after exception dialog closing, the
description of project was empty.

BTW: I noticed twice that the description of
project contains licence HTML text a week ago. It
could be related to this - probably some race
condition.
Comment 1 zikmund 2004-07-28 17:08:42 UTC
Created attachment 16530 [details]
NPE
Comment 2 Jesse Glick 2004-08-04 03:05:18 UTC
What JDK? Probably a JDK bug.
Comment 3 zikmund 2004-08-04 14:32:13 UTC
Tested on JDK 1.5.0 beta3-b59 (WinXP SP1).
Comment 4 Jesse Glick 2004-08-10 05:00:15 UTC
Probably shouldn't be calling methods on JEditorPane off the event thread?
Comment 5 zikmund 2004-08-13 10:38:26 UTC
It happens me once in 10-20 IDE runs. Raising priority to P2.

I've got different exceptions (different NPE and ClassCastException)
in last 2 occurences -- see attachments (I have also IDE logs if it
could help you)
Comment 6 zikmund 2004-08-13 10:39:26 UTC
Created attachment 16796 [details]
NPE #2 from 200408101800 build
Comment 7 zikmund 2004-08-13 10:40:04 UTC
Created attachment 16797 [details]
ClassCastException in Qbuild 200408121535
Comment 8 Jesse Glick 2004-08-13 19:38:47 UTC
The last two exceptions may or may not be at all related to the
original one.
Comment 9 Marian Mirilovic 2004-08-17 08:33:39 UTC
*** Issue 47293 has been marked as a duplicate of this issue. ***
Comment 10 Petr Hrebejk 2004-08-17 17:00:51 UTC
This might probably be marked as fixt after all the setters in
TemplatesPanel will really run in the AWT thread.
Comment 11 zikmund 2004-08-18 17:36:32 UTC
Created attachment 16928 [details]
Changed line numbers in NPE #1 in beta builds: 200408172200 & 200408181510
Comment 12 Tomas Zezula 2004-08-19 13:38:53 UTC
I fixed a lots of bug in the ProjectsTemplateChooser related to
calling swing from non AWT thread, could you be so kind and verify
this issue with sources newer than 19/8/2004 14:40
Comment 13 Tomas Zezula 2004-08-19 13:54:10 UTC
I am not able to reproduce it anymore. If it happens again please
reopen it.
Comment 14 Tomas Zezula 2004-08-19 13:54:50 UTC
Fixed the AWT threading.
Comment 15 zikmund 2004-08-26 13:16:07 UTC
Marking as verified -- I can't reproduce it after the fix.
Comment 16 Marian Mirilovic 2004-08-31 09:37:08 UTC
*** Issue 47725 has been marked as a duplicate of this issue. ***