Please use the Apache issue tracking system for new NetBeans issues ( !!
Bug 179592 - Deadlock between maven.model.pom.impl.ProjectImpl and XDMModel
Deadlock between maven.model.pom.impl.ProjectImpl and XDMModel
Product: xml
Classification: Unclassified
Component: XAM
: P3 (vote)
Assigned To: Svata Dedic
: 179997 (view as bug list)
Depends on:
  Show dependency treegraph
Reported: 2010-01-17 02:57 UTC by abs
Modified: 2015-09-17 13:17 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT

thread dump (28.42 KB, text/plain)
2010-01-19 05:45 UTC, abs

Note You need to log in before you can comment on or make changes to this bug.
Description abs 2010-01-17 02:57:55 UTC
When I was developing web application using maven, netbeans was deadlocked.

My environment is following:
OS: Mac OS X 10.6.2
NetBeans: 6.8

I attach relevant thread dump.
Comment 1 Peter Pis 2010-01-17 03:35:14 UTC
Comment 2 abs 2010-01-19 05:45:13 UTC
Created attachment 93408 [details]
thread dump
Comment 3 Milos Kleint 2010-02-03 07:08:02 UTC
*** Bug 179997 has been marked as a duplicate of this bug. ***
Comment 4 Antonin Nebuzelsky 2010-07-30 15:18:06 UTC
Reassigning to default owner.
Comment 5 Jesse Glick 2010-11-16 21:54:44 UTC
Can you check this? Looks like a bug in XAM/XDM to me, but not sure. Looks a bit different from bug #191796.
Comment 6 Milos Kleint 2012-02-17 13:55:21 UTC
	at org.netbeans.modules.xml.xdm.XDMModel.sync(
	- locked <0x0000000115457338> (a org.netbeans.modules.xml.xdm.XDMModel)
	at org.netbeans.modules.xml.xdm.xam.XDMAccess.sync(
	at org.netbeans.modules.xml.xam.AbstractModel.sync(

the code in XDMAccess is called under a XAM transaction.

Since we support both poms with a namespace declaration and without it, POMComponentFactoryImpl.getQName() needs to query the namespace of the current file.

the POMModelVisitor.visit(Project) method checks in the beginning if synchronization is required, however only that piece of code is part of a transaction, the following reading operations that are performed in that method are not. And during the execution of the method the underlying model is created/updated..

reassigning to xml/xam, please advice what is the appropriate threading model with regard to model synchronization..
Comment 7 Martin Balin 2015-09-17 13:17:13 UTC
Report from old NetBeans version. Due to code changes since it was reported likely not reproducible now. Feel free to reopen if happens in 8.0.2 or 8.1.

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo