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.
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.
Created attachment 14452 [details] Deadlock
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.
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.
closed