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 42128

Summary: Deadlock - when creating new project immediately after new platform
Product: projects Reporter: David Kaspar <dkaspar>
Component: Generic InfrastructureAssignee: issues@projects <issues>
Status: CLOSED WONTFIX    
Severity: blocker CC: dkonecny
Priority: P1 Keywords: THREAD
Version: 4.x   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Attachments: Deadlock

Description David Kaspar 2004-04-19 09:58:38 UTC
This problem is 100% reproducible when I create a
new project immediately after a new platform.

When I wait for 2 seconds between platform and
project creation, no deadlock occurs.

Attaching full thread dump.
Comment 1 David Kaspar 2004-04-19 09:59:16 UTC
Created attachment 14452 [details]
Deadlock
Comment 2 David Konecny 2004-04-19 12:32:43 UTC
Some info:
J2MEDataLoader extends JavaDataLoader and checks whether the file to
be recognized belongs to a J2MEProject - if it does then it will be
J2MEDO.
Comment 3 Jesse Glick 2004-04-19 17:42:55 UTC
J2MEDataLoader.findPrimaryFile may not call FileOwnerQuery, sorry.

I hope that you don't *need* a separate data loader anyway.
Subclassing JavaDataLoader (or any other data loader or data object
class) is strongly discouraged. Most of the use cases for it in NB 3.x
have been obsoleted by the project system AFAIK.

More generally, this bug is just one symptom of the *stupid* system in
Datasystems of forking a new thread to do basic work like recognizing
files and then blocking on it, which is a very deadlock-prone style in
general. Without that weirdness in FolderList, I think this deadlock
would still be possible, but much rarer.
Comment 4 Marian Mirilovic 2005-07-15 07:52:54 UTC
closed