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 - Deadlock - when creating new project immediately after new platform
Summary: Deadlock - when creating new project immediately after new platform
Status: CLOSED WONTFIX
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Infrastructure (show other bugs)
Version: 4.x
Hardware: PC Linux
: P1 blocker (vote)
Assignee: issues@projects
URL:
Keywords: THREAD
Depends on:
Blocks:
 
Reported: 2004-04-19 09:58 UTC by David Kaspar
Modified: 2006-03-24 10:17 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Deadlock (12.07 KB, text/plain)
2004-04-19 09:59 UTC, David Kaspar
Details

Note You need to log in before you can comment on or make changes to this bug.
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