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.
Many org.netbeans.modules.xml.* tests fail with the following exception: "org.netbeans.modules.masterfs.filebasedfs.utils.FSException: Cannot lock read-only file". An example of the stack trace for this exception goes below: org.netbeans.modules.masterfs.filebasedfs.utils.FSException: Cannot lock read-only file /private/var/folders/1l/875c7zpd76j1sgh9trjbnjrc0000gn/T/schematest/PurchaseOrder.xsd. at org.netbeans.modules.masterfs.filebasedfs.utils.FSException.io(FSException.java:118) at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FileObj.lock(FileObj.java:401) at org.netbeans.modules.xml.schema.model.Util.copyResource(Util.java:341) at org.netbeans.modules.xml.schema.model.NamespaceLocation.refreshResourceFile(NamespaceLocation.java:112) at org.netbeans.modules.xml.schema.model.TestCatalogModel.getSchemaModel(TestCatalogModel.java:198) at org.netbeans.modules.xml.schema.model.Util.loadSchemaModel(Util.java:163) at org.netbeans.modules.xml.schema.model.SchemaTest.setUp(SchemaTest.java:79) at junit.framework.TestCase.runBare(TestCase.java:132) at junit.framework.TestResult$1.protect(TestResult.java:110) at junit.framework.TestResult.runProtected(TestResult.java:128) at junit.framework.TestResult.run(TestResult.java:113) at junit.framework.TestCase.run(TestCase.java:124) at junit.framework.TestSuite.runTest(TestSuite.java:243) at junit.framework.TestSuite.run(TestSuite.java:238) at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:520) at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:1060) at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:911)
This issue is MacOS-specific.