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.
Created attachment 140131 [details] thread dump Found this while evaluating a maven issue.
Created attachment 140132 [details] thread dump Different threads.
Well, yes, another school example of deadlock. :) Will try to fix ASAP.
This seems to be regression caused by Bug# 208447. 1st code path is coming from Hk2DeploymentManager.getCommonServerSupport() which was using Lookup to find GF server support API related to ServerInstance. Here I did some changes to avoid using Lookup. CommonServerSupport and GlassfishInstance objects are linked together to see each other now (before there was only one way link from support to instance). So it's possible to retrieve CommonServerSupport trough GlassfishInstanceProvider API using server URI. Guess it will be also bit faster to go stright trough URI -> GF instance Map. 2nd code path is going trough Hk2JavaEEPlatformImpl.getLookup() where lookup instance is being initialized inside synchronized(this) and [Hk2DeploymentManager].getCommonServerSupport().getInstance() was called from inside this block. This was closing loop in locks. I removed lazy initialization of lookup instance so this is now done in constructor with no locking. Deadlock conditions should be removed now.
Checked into web-main: ---------------------- changeset: 263832:c267c1426d63 summary: #236031 - Deadlock condition removed
*** Bug 230416 has been marked as a duplicate of this bug. ***
Pushed in. Peter, please check your use case to see if deadlock is still there.
(In reply to TomasKraus from comment #6) > Pushed in. Peter, please check your use case to see if deadlock is still > there. Seems to be ok now.
(In reply to TomasKraus from comment #4) > Checked into web-main: > ---------------------- > changeset: 263832:c267c1426d63 > summary: #236031 - Deadlock condition removed verified by QE
7.4 release branch changeset: ----------------------------- changeset: 272642:55119dc28300 branch: release74 summary: #236031 - Deadlock condition removed
*** Bug 236235 has been marked as a duplicate of this bug. ***