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 230416 - org.netbeans.modules.deadlock.detector.Detector$DeadlockDetectedException at org.netbeans.modules.server.ui.node.RootNode$ChildFactory.updateState
Summary: org.netbeans.modules.deadlock.detector.Detector$DeadlockDetectedException at ...
Status: RESOLVED DUPLICATE of bug 236031
Alias: None
Product: serverplugins
Classification: Unclassified
Component: GlassFish (show other bugs)
Version: 7.4
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: TomasKraus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-29 04:50 UTC by MackSix
Modified: 2013-09-17 13:42 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
deadlock info (9.03 KB, text/plain)
2013-05-29 04:50 UTC, MackSix
Details
logfile (52.63 KB, text/plain)
2013-05-29 04:53 UTC, MackSix
Details

Note You need to log in before you can comment on or make changes to this bug.
Description MackSix 2013-05-29 04:50:56 UTC
Created attachment 135040 [details]
deadlock info

Starting NetBeans while viewing the Services Window and clicked the Server node. NetBeans is deadlocked and won't finish starting. 

See attached files.
Comment 1 MackSix 2013-05-29 04:53:26 UTC
Created attachment 135041 [details]
logfile
Comment 2 Jaroslav Havlin 2013-06-03 09:05:15 UTC
Probably related to GlassFish. Please evaluate. Thank you.
Comment 3 TomasKraus 2013-07-24 13:53:10 UTC
Unfortunately this is not thread dump with lock IDs. I need locks to see cycle in locks dependency.
Did you see this more than once? If so, please provide full Java VM thread dump. You can make it by sending signal 3 (SIGQUIT) to java process when it's in deadlock on UNIX systems. But I have no idea how to do this on windows.

Switching to incomplete until having thread dump with locks.
Comment 4 Petr Hejl 2013-07-24 14:04:38 UTC
(In reply to comment #3)
> Unfortunately this is not thread dump with lock IDs. I need locks to see cycle
> in locks dependency.
You need just source code and careful evaluation. Obviously the deadlock is between Node.INIT_LOCK and GlassfishInstance.lookupResult.
Comment 5 MackSix 2013-07-25 00:25:11 UTC
I can't reproduce it to get a thread dump or I would get you one.
Comment 6 MackSix 2013-07-25 00:50:19 UTC
Do you think this could have anything to do with JavaEE magically self deactivating when NetBeans starts up? There is a problem when changing things in Options--anywhere in options--and using the new Apply Button that when after using it, PHP or C/C++ (or both) are deactivated on restart. Today, on the latest Dev Build, I have JavaEE self deactivating when I restart NetBeans.

It doesn't do it every time, but what I do is:

1. change Keyboard profile to Eclipse
2. and then change to a new L&F theme. Click Apply and then OK 
3. and then click the link on the Notification to restart NetBeans. 

Then when it restarts, PHP, C/C++ and JavaEE is deactivated. Sometimes just PHP and C/C++. Then when I click the server link, the 2 GlassFish instances are gone because JavaEE was deactivated.

Product Version: NetBeans IDE Dev (Build 201307232300)
Updates: Updates available
Java: 1.7.0_25; Java HotSpot(TM) 64-Bit Server VM 23.25-b01
Runtime: Java(TM) SE Runtime Environment 1.7.0_25-b16
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
Comment 7 MackSix 2013-07-25 08:36:05 UTC
Well I didn't know until now that the full distribution would automatically
disable modules if they were not used, so that explains Comment 3 as to why
they are being disabled. Please ignore Comment 3.
Comment 8 TomasKraus 2013-09-17 13:42:16 UTC
This should be fixed with Bug# 236031 fix. Code paths that are causing deadlock are almost the same and the same methods are being involved here.
MArking as 236031 duplicate.

*** This bug has been marked as a duplicate of bug 236031 ***