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.
Install VSS profile and all required modules.( I also try PVSC and clearcase profiles) Add Versioned Directory using VSS profile Try to create new java project in this directory. IDE hungs. In target folder I see ProjectName folder and only nbproject folder in it with "jax-ws.xml, project.xml and project.xml~" files
Can you please attach a thread dump? Please have a look at http://qa.netbeans.org/bugzilla/generating-thread-dumps.html for details.
Created attachment 29806 [details] IDE thread dump
Reproduced. Steps: 1. Install VCS generic modules and enable them. 2. Register new versioned directory, checkout sources which contain some projects. 3. Invoke "Versioning" (CTRL + 8) view 4. Expand node - registered directory in "Versioning" view. IDE hangs up. (threaddump2.txt)
Created attachment 29862 [details] threaddump2.txt
Q-Build stopper.
NetBeans 5.5 only issue. Can not be reproduced in trunk builds. The problem is caused by org.netbeans.modules.websvc.api.jaxws.project.WSUtils.retrieveJaxWsFromResource(WSUtils.java:72) When the project is being opened, it creates a file nbproject/jax-ws.xml. The call to jaxWsFo.lock() triggers another query to SharabilityQuery from VcsFileSystem, which causes the deadlock, because the project opening is already being done as a result to a previous call to SharabilityQuery. The fix can be either not to write anything during reading of a project structure (this might not be acceptable for WEB projects), or change the logic of VcsFileSystem.lock() so that it does not trigger the SharabilityQuery when it's not really necessary (in this case it knows that it's a local file).
I'm going to change the logic of VcsFileSystem.lock() method...
Hmm, createBackupFile() needs to be modified as well... java.lang.Thread.State: WAITING (on object monitor) at java.lang.Object.wait(Native Method) - waiting on <0xa8155920> (a java.util.WeakHashMap) at java.lang.Object.wait(Object.java:484) at org.netbeans.api.project.ProjectManager$2.run(ProjectManager.java:198) - locked <0xa8155920> (a java.util.WeakHashMap) at org.openide.util.Mutex.readAccess(Mutex.java:260) at org.netbeans.api.project.ProjectManager.findProject(ProjectManager.java:180) at org.netbeans.modules.projectapi.SimpleFileOwnerQueryImplementation.getOwner(SimpleFileOwnerQueryImplementation.java:68) at org.netbeans.api.project.FileOwnerQuery.getOwner(FileOwnerQuery.java:68) at org.netbeans.modules.projectapi.ProjectSharabilityQuery.getSharability(ProjectSharabilityQuery.java:36) at org.netbeans.api.queries.SharabilityQuery.getSharability(SharabilityQuery.java:85) at org.netbeans.modules.vcscore.VcsFileSystem.isImportant(VcsFileSystem.java:989) at org.netbeans.modules.vcscore.VcsFileSystem.createBackupFile(VcsFileSystem.java:3770) at org.netbeans.modules.vcscore.VcsFileSystem.outputStream(VcsFileSystem.java:3800)
"Fixed" in trunk. It needs to be ported to release55 branch, otherwise it has no effect now. /cvs/vcscore/src/org/netbeans/modules/vcscore/VcsFileSystem.java,v <-- VcsFileSystem.java new revision: 1.332; previous revision: 1.331 /cvs/vcscore/nbproject/project.properties,v <-- project.properties new revision: 1.19; previous revision: 1.18
Created attachment 29945 [details] The binary patch. Copy into ide7/modules/patches/org-netbeans-modules--vcscore folder.
Created attachment 29946 [details] The textual diff of the fix.
Peter, please check that the issue is fixed with the attached binary patch. Thanks.
Verified in trunk. (org.netbeans.modules.vcscore/1 [1.16.15.42 42 200604191800]) NetBeans IDE Dev (Build 200604191800) 1.5.0_06; Java HotSpot(TM) Client VM 1.5.0_06-b05 Windows XP version 5.1 running on x86 en_GB (nb); Cp1252
Verified in 5.5 (060418). ### Please you will have to do following: remove all "jax-ws.xml" files with 0 size from all your projects. (location of that file is in <projectname>/"nbproject" folder) and of course install new version of module. ###
This fix shouldn't impact standard distribution of NB. It was fixed in vcscore module which belongs to VCS generic modules accessible via Update Center.
Thanks for the verification, the fix is merged into release55 branch: /shared/data/ccvs/repository/vcscore/nbproject/project.properties,v <-- project.properties new revision: 1.3.12.3.2.1; previous revision: 1.3.12.3 /shared/data/ccvs/repository/vcscore/src/org/netbeans/modules/vcscore/VcsFileSystem.java,v <-- VcsFileSystem.java new revision: 1.329.6.2.2.1; previous revision: 1.329.6.2
*** Issue 76865 has been marked as a duplicate of this issue. ***