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

Summary: Deadlock from j2ee Default RequestProcessor
Product: javaee Reporter: ehucka <ehucka>
Component: CodeAssignee: Pavel Buzek <pbuzek>
Status: VERIFIED DUPLICATE    
Severity: blocker CC: tzezula
Priority: P2 Keywords: RANDOM, THREAD
Version: 5.x   
Hardware: PC   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: threaddump

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