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 76149 - Deadlock from j2ee Default RequestProcessor
Summary: Deadlock from j2ee Default RequestProcessor
Status: VERIFIED DUPLICATE of bug 77209
Alias: None
Product: javaee
Classification: Unclassified
Component: Code (show other bugs)
Version: 5.x
Hardware: PC All
: P2 blocker (vote)
Assignee: Pavel Buzek
URL:
Keywords: RANDOM, THREAD
Depends on:
Blocks:
 
Reported: 2006-05-10 11:00 UTC by ehucka
Modified: 2006-09-11 19:00 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
threaddump (34.97 KB, text/plain)
2006-05-10 11:01 UTC, ehucka
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ehucka 2006-05-10 11:00:10 UTC
NB 5.5 beta

I have no steps to reproduce. I worked on a web project and I invoked Go to
Class action - it contained wait... message.
Comment 1 ehucka 2006-05-10 11:01:06 UTC
Created attachment 30319 [details]
threaddump
Comment 2 Pavel Buzek 2006-06-15 01:42:07 UTC
It looks like the problem is in the 2 threads started in
org.netbeans.modules.j2ee.metadata.NNMDRListener$3.run(NNMDRListener.java:191)

They both lock on ClassPath.getRoots and then they wait on each other in
org.netbeans.api.java.classpath.ClassPath$RootsListener.fileFolderCreated(ClassPath.java:757)

Not sure if this is a wrong usage pattern in NNModelerListener or a problem in
CP API. 

Tomasi can you comment? Thanks.
Comment 3 Tomas Zezula 2006-06-19 20:02:44 UTC
The ClassPath.getRoots() is fixed in trunk to not to call SPI code in
synchronized block. See issue: #77209. I will integrate it to 5.5.


*** This issue has been marked as a duplicate of 77209 ***
Comment 4 ehucka 2006-07-24 14:23:44 UTC
verified
Comment 5 ehucka 2006-09-11 19:00:40 UTC
v