db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Julius Stroffek <Julius.Strof...@Sun.COM>
Subject junitereport - getting 'access denied' errors
Date Tue, 11 Sep 2007 17:24:07 GMT
Hi All,

I am getting lot of exceptions (see bellow) while running junit tests on 
trunk throught juniretport target. Does anybody have an idea what I am 
doing wrong?

I am using Solaris 10U4, sun jdk 1.6.0u2, ant 1.7.0

Thanks

Julo
---

    [junit] Running 
org.apache.derbyTesting.functionTests.tests.jdbcapi.AutoloadTest
    [junit] Tests run: 3, Failures: 0, Errors: 1, Time elapsed: 2.048 sec
    [junit] Exception in thread "main" 
java.security.AccessControlException: access denied 
(java.io.FilePermission 
/zfs/derby/code/trunk/junitvmwatcher838225775.properties write)
    [junit]     at 
java.security.AccessControlContext.checkPermission(AccessControlContext.java:264)
    [junit]     at 
java.security.AccessController.checkPermission(AccessController.java:427)
    [junit]     at 
java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
    [junit]     at 
java.lang.SecurityManager.checkWrite(SecurityManager.java:962)
    [junit]     at 
java.io.FileOutputStream.<init>(FileOutputStream.java:169)
    [junit]     at java.io.FileOutputStream.<init>(FileOutputStream.java:70)
    [junit]     at java.io.FileWriter.<init>(FileWriter.java:46)
    [junit]     at 
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.registerNonCrash(JUnitTestRunner.java:924)
    [junit]     at 
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:772)
    [junit] Running 
org.apache.derbyTesting.functionTests.tests.jdbcapi.AutoloadTest
    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
    [junit] Test 
org.apache.derbyTesting.functionTests.tests.jdbcapi.AutoloadTest FAILED 
(crashed)
    [junit] Running 
org.apache.derbyTesting.functionTests.tests.jdbcapi.JDBCDriversEmbeddedTest
    [junit] Exception in thread "main" 
java.security.AccessControlException: access denied 
(java.io.FilePermission 
/zfs/derby/code/trunk/junitvmwatcher678111376.properties write)
    [junit]     at 
java.security.AccessControlContext.checkPermission(AccessControlContext.java:264)
    [junit]     at 
java.security.AccessController.checkPermission(AccessController.java:427)
    [junit]     at 
java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
    [junit]     at 
java.lang.SecurityManager.checkWrite(SecurityManager.java:962)
    [junit]     at 
java.io.FileOutputStream.<init>(FileOutputStream.java:169)
    [junit]     at java.io.FileOutputStream.<init>(FileOutputStream.java:70)
    [junit]     at java.io.FileWriter.<init>(FileWriter.java:46)
    [junit]     at 
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.registerTestCase(JUnitTestRunner.java:940)
    [junit]     at 
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.access$000(JUnitTestRunner.java:68)
    [junit]     at 
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner$3.startTest(JUnitTestRunner.java:807)
    [junit]     at 
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner$4.startTest(JUnitTestRunner.java:1005)
    [junit]     at junit.framework.TestResult.startTest(TestResult.java:151)
    [junit]     at junit.framework.TestResult.run(TestResult.java:103)
    [junit]     at junit.framework.TestCase.run(TestCase.java:120)
    [junit]     at junit.framework.TestSuite.runTest(TestSuite.java:230)
    [junit]     at junit.framework.TestSuite.run(TestSuite.java:225)
    [junit]     at junit.framework.TestSuite.runTest(TestSuite.java:230)
    [junit]     at junit.framework.TestSuite.run(TestSuite.java:225)
    [junit]     at junit.framework.TestSuite.runTest(TestSuite.java:230)
    [junit]     at junit.framework.TestSuite.run(TestSuite.java:225)
    [junit]     at 
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:421)
    [junit]     at 
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:912)
    [junit]     at 
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:766)


Mime
View raw message