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 94807 - Deadlock in SourcePathImplementation
Summary: Deadlock in SourcePathImplementation
Status: VERIFIED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Web Project (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Radko Najman
URL:
Keywords: THREAD
: 110992 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-02-07 00:52 UTC by Jesse Glick
Modified: 2008-11-10 09:53 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2007-02-07 00:52:26 UTC
Dev sources. Unsafe synchronization on this in both getResources and
propertyChange conflicts with ProjectManager.mutex.

"Java Source Worker Thread" prio=1 tid=0x08bd5a40 nid=0x5efe in Object.wait()
[0x974ce000..0x974cf130]
        at java.lang.Object.wait(Native Method)
        - waiting on <0xa2e47730> (a org.openide.util.Mutex$QueueCell)
        at java.lang.Object.wait(Object.java:474)
        at org.openide.util.Mutex$QueueCell.sleep(Mutex.java:1447)
        - locked <0xa2e47730> (a org.openide.util.Mutex$QueueCell)
        at org.openide.util.Mutex.enterImpl(Mutex.java:631)
        at org.openide.util.Mutex.enter(Mutex.java:538)
        at org.openide.util.Mutex.readEnter(Mutex.java:521)
        at org.openide.util.Mutex.readAccess(Mutex.java:227)
        at
org.netbeans.spi.project.support.ant.PropertyUtils$SequentialPropertyEvaluator.getProperty(PropertyUtils.java:786)
        at
org.netbeans.modules.web.project.classpath.SourcePathImplementation.getResources(SourcePathImplementation.java:88)
        - locked <0xa212ef18> (a
org.netbeans.modules.web.project.classpath.SourcePathImplementation)
        at org.netbeans.api.java.classpath.ClassPath.entries(ClassPath.java:251)
[...]


"Default RequestProcessor" daemon prio=1 tid=0x086d2e60 nid=0x5ef5 waiting for
monitor entry [0x97dd5000..0x97dd5db0]
        at
org.netbeans.modules.web.project.classpath.SourcePathImplementation.propertyChange(SourcePathImplementation.java:137)
        - waiting to lock <0xa212ef18> (a
org.netbeans.modules.web.project.classpath.SourcePathImplementation)
        at
java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:333)
        at
java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:270)
        at
org.netbeans.modules.web.project.SourceRoots.resetCache(SourceRoots.java:372)
        at
org.netbeans.modules.web.project.SourceRoots.access$1100(SourceRoots.java:62)
        at
org.netbeans.modules.web.project.SourceRoots$ProjectMetadataListener.configurationXmlChanged(SourceRoots.java:405)
        at sun.reflect.GeneratedMethodAccessor41.invoke(Unknown Source)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at
org.openide.util.WeakListenerImpl$ProxyListener.invoke(WeakListenerImpl.java:424)
        at $Proxy6.configurationXmlChanged(Unknown Source)
        at
org.netbeans.spi.project.support.ant.AntProjectHelper$6.run(AntProjectHelper.java:468)
        at
org.netbeans.spi.project.support.ant.AntProjectHelper$6.run(AntProjectHelper.java:464)
        at org.openide.util.Mutex.readAccess(Mutex.java:230)
        at
org.netbeans.spi.project.support.ant.AntProjectHelper.fireChange(AntProjectHelper.java:463)
[...]


Detected while trying to verify fix of issue #92287.
Comment 1 Radko Najman 2007-02-13 10:44:22 UTC
Solved by a fix for issue #92287.
Comment 2 David Konecny 2007-10-30 11:30:02 UTC
*** Issue 110992 has been marked as a duplicate of this issue. ***
Comment 3 martin_zmrhal 2008-11-10 09:53:45 UTC
verified

Product Version: NetBeans IDE Dev (Build 200811100201)
Java: 1.6.0_10; Java HotSpot(TM) Client VM 11.0-b15
System: Linux version 2.6.27-7-generic running on i386; UTF-8; en_US (nb)