Please use the Apache issue tracking system for new NetBeans issues ( !!
Bug 179034 - Warning window "Can not get exclusive access..." breaks UI tests
Warning window "Can not get exclusive access..." breaks UI tests
Product: cnd
Classification: Unclassified
Component: Project
All All
: P2 (vote)
: 6.x
Assigned To: Alexander Simon
Depends on: 167339
  Show dependency treegraph
Reported: 2009-12-25 09:34 UTC by Alexander Pepin
Modified: 2010-01-26 07:25 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT


Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Pepin 2009-12-25 09:34:06 UTC
While running automatic tests when we create makefile based projects we quite often get such warning window which prevents out tests from working properly. Despite it's very difficult to reproduce this issue while manual testing it brings instability into test results. Netbeans log shows:
INFO [org.netbeans.modules.cnd.discovery.projectimport.ImportProject]: #save configuration descriptor
INFO [org.netbeans.modules.cnd.discovery.projectimport.ImportProject]: #start discovery by model
INFO [org.netbeans.modules.cnd.discovery.projectimport.ImportProject]: #start fixing excluded header files by model
SEVERE:  Cannot get exclusive access to /export/hudson/workspace/ss-test-sparc-S2-5/tests/build/test/qa-functional/data/dbxGUI/breakpoint/ProcessEventBkpt1/testProcessEventBkpt1/tracedbxGUI.breakpoint.ProcessEventBkpt1/nbproject/project.xml (probably opened for reading).

Caused: org.netbeans.modules.masterfs.filebasedfs.utils.FSException: Cannot get exclusive access to /export/hudson/workspace/ss-test-sparc-S2-5/tests/build/test/qa-functional/data/dbxGUI/breakpoint/ProcessEventBkpt1/testProcessEventBkpt1/tracedbxGUI.breakpoint.ProcessEventBkpt1/nbproject/project.xml (probably opened for reading).
    at org.netbeans.modules.masterfs.filebasedfs.fileobjects.MutualExclusionSupport.addResource(
    at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FileObj.getOutputStream(
    at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FileObj.getOutputStream(
    at org.openide.filesystems.EventControl.runAtomicAction(
    at org.openide.filesystems.FileSystem.runAtomicAction(
    at org.netbeans.modules.project.ant.AntBasedProjectFactorySingleton.saveProject(
    at org.netbeans.api.project.ProjectManager$
    at org.netbeans.api.project.ProjectManager$
    at org.openide.util.Mutex.writeAccess(
    at org.netbeans.api.project.ProjectManager.saveProject(
    at org.netbeans.modules.cnd.makeproject.api.configurations.MakeConfigurationDescriptor.ConfigurationProjectXMLWriter(
    at org.netbeans.modules.cnd.makeproject.api.configurations.MakeConfigurationDescriptor.saveWorker(
    at org.netbeans.modules.cnd.makeproject.api.configurations.MakeConfigurationDescriptor.access$000(
[catch] at org.netbeans.modules.cnd.makeproject.api.configurations.MakeConfigurationDescriptor$
    at org.openide.util.RequestProcessor$
    at org.openide.util.RequestProcessor$
ALL [null]: Cannot get exclusive access to /export/hudson/workspace/ss-test-sparc-S2-5/tests/build/test/qa-functional/data/dbxGUI/breakpoint/ProcessEventBkpt1/testProcessEventBkpt1/tracedbxGUI.breakpoint.ProcessEventBkpt1/nbproject/project.xml (probably opened for reading).
INFO [org.netbeans.modules.cnd.discovery.projectimport.ImportProject]: #save configuration descriptor

see also bug #167339
Comment 1 Alexander Simon 2010-01-12 06:48:03 UTC
make UI less exception report, change set:
It is enough for automatic tests.
QA, please, verify fix.
Comment 2 Vladimir Voskresensky 2010-01-12 08:34:50 UTC
fix is safe, although I'd prefer to prepare StringBuilder in loop and then print it to prevent mix of output from different tracers
Comment 3 Alexander Pepin 2010-01-13 06:19:04 UTC
verified in dev build
Comment 4 Quality Engineering 2010-01-13 12:27:25 UTC
Integrated into 'main-golden', will be available in build *201001131418* on (upload may still be in progress)
User: Alexander Simon <>
Log: fixup  BZ#179034  Warning window "Can not get exclusive access..." breaks UI tests:
- make UI less exception message
Comment 5 pgebauer 2010-01-14 02:32:12 UTC
The fix has been ported into the release68_fixes repository.
Comment 6 Alexander Pepin 2010-01-26 07:25:09 UTC
verified in patch1 candidate

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