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 241350 - Many org.netbeans.modules.xml.* tests fail with org.netbeans.modules.masterfs.filebasedfs.utils.FSException
Summary: Many org.netbeans.modules.xml.* tests fail with org.netbeans.modules.masterfs...
Status: NEW
Alias: None
Product: qa
Classification: Unclassified
Component: Tests (show other bugs)
Version: 8.0
Hardware: PC Mac OS X
: P3 normal (vote)
Assignee: issues@qa
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-03 15:48 UTC by lothe
Modified: 2014-02-03 15:49 UTC (History)
0 users

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 lothe 2014-02-03 15:48:16 UTC
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)
Comment 1 lothe 2014-02-03 15:49:29 UTC
This issue is MacOS-specific.