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 64888 - deadlock while deleting project
Summary: deadlock while deleting project
Status: VERIFIED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Infrastructure (show other bugs)
Version: 5.x
Hardware: All All
: P1 blocker (vote)
Assignee: Jan Lahoda
URL:
Keywords: RANDOM, THREAD
Depends on:
Blocks:
 
Reported: 2005-09-22 11:54 UTC by Lukas Jungmann
Modified: 2005-09-24 09:45 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
thread dump (25.91 KB, text/plain)
2005-09-22 12:01 UTC, Lukas Jungmann
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lukas Jungmann 2005-09-22 11:54:38 UTC
[beta candidate - 200509211930]

-create ejb module
-create new websvc
-add operation to websvc - websvc's sources have to remain "dirty"
-delete project with all sources
-in Save dialog for modified classes press Save all

=> several error messages without any description & deadlock
Comment 1 Lukas Jungmann 2005-09-22 12:01:53 UTC
Created attachment 25057 [details]
thread dump
Comment 2 Lukas Jungmann 2005-09-22 12:11:58 UTC
happens only if websvc impl bean and its SEI are opened in editor and both have
"dirty" flag. Error message shows something like 'EJB???: ...no configuration
node ""'
Comment 3 Andrei Badea 2005-09-22 14:28:18 UTC
I experience similar behavior in all project types (without the deadlock
though). Happens when deleting a project which has at least one modified file
open in the editor.
Comment 4 Marian Mirilovic 2005-09-22 17:31:49 UTC
> happens only if websvc impl bean and its SEI are opened in editor and both have
> "dirty" flag. Error message shows something like 'EJB???: ...no configuration
> node ""'

It doesn't look like it's P1, neither Beta stopper ...

I can't reproduce it with Java project. Could anybody reproduce it?
Comment 5 Jan Lahoda 2005-09-22 21:08:35 UTC
mmirilovic:
Please try the following:
1. Create a new J2SE project.
2. Modify the created class, do not save it.
3. Try to delete the project (delete also sources).
4. After the confirmation dialog appears, do not press anything, only wait.
5. When the project is deleted, the project's node is still visible in the
project's tab, sometimes a new project cannot be created, some exception(s)
appear, etc.

I did the following:
1. all files are unconditionally saved before any "delete-like" operation
(project delete, move, rename). Not sure if this is correct. Filled issue #64932
for this.
2. the project close operation waits until the project is really closed (this
was the main problem). I am pretty sure this cannot deadlock, as the thread that
calls invokeAndWait is a thread that (AFAIK) does not hold any locks.

Checking in
projectuiapi/src/org/netbeans/modules/project/uiapi/DefaultProjectOperationsImplementation.java;
/cvs/projects/projectuiapi/src/org/netbeans/modules/project/uiapi/DefaultProjectOperationsImplementation.java,v
 <--  DefaultProjectOperationsImplementation.java
new revision: 1.14; previous revision: 1.13
done
Comment 6 Marian Mirilovic 2005-09-22 21:35:49 UTC
jlahoda:
Well, I can reproduce the project node stays visible in the Projects view, but
there is no exception, and definitely none deadlock! Did you reproduce the
deadlock? If so, it's beta stopper.
Comment 7 Jan Lahoda 2005-09-22 21:48:58 UTC
No, I was not able to reproduce the deadlock in either J2SE project or in the
EJB module/project (as described in the original report).
Comment 8 Andrei Badea 2005-09-23 08:25:05 UTC
I wasn't able to reproduce the deadlock either. To reporter: is the deadlock
reproducible on your machine?
Comment 9 Jaromir Uhrik 2005-09-23 10:37:52 UTC
I am not able to reproduce this issue today. The fix should be integrated to
beta branch but Honzo, please wait for verification from Jungi. Hi is going to
take a look at it now.
Comment 10 Lukas Jungmann 2005-09-23 10:57:26 UTC
in mentioned pre-beta build i was always able to reproduce the deadlock on my
box, but in dev build 20050923-0044 i can not do so. Honzo, please, integrate
the fix to the branch. thanks
Comment 11 Jan Lahoda 2005-09-23 12:11:29 UTC
Fixed also on the [release50_beta] branch. Please verify.

Checking in
projectuiapi/src/org/netbeans/modules/project/uiapi/DefaultProjectOperationsImplementation.java;
/cvs/projects/projectuiapi/src/org/netbeans/modules/project/uiapi/DefaultProjectOperationsImplementation.java,v
 <--  DefaultProjectOperationsImplementation.java
new revision: 1.13.2.1; previous revision: 1.13
done
Comment 12 Jaromir Uhrik 2005-09-24 09:45:30 UTC
Verified in 5.0 beta branch build #200509231930.