db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rick Hillegas <Richard.Hille...@Sun.COM>
Subject security exceptions when running the junit tests via the ant harness
Date Wed, 24 Oct 2007 21:35:23 GMT
I am seeing security exceptions when I run the junit tests via the ant 
harness. Since I don't normally run the junit tests that way, I'm 
guessing this is an environment problem. Does the following kind of 
error look familiar to anyone? Thanks-Rick

    [junit] Running 
org.apache.derbyTesting.functionTests.tests.jdbcapi.JDBCDriversEmbeddedTest
    [junit] Exception in thread "main" 
java.security.AccessControlException: access denied 
(java.io.FilePermission 
/Users/rh161140/derby/mainline/trunk/junitvmwatcher704717555.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)
    [junit] Running 
org.apache.derbyTesting.functionTests.tests.jdbcapi.JDBCDriversEmbeddedTest
    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec  
C-c C-c
    [junit] Test 
org.apache.derbyTesting.functionTests.tests.jdbcapi.JDBCDriversEmbeddedTest 
FAILED (crashed)


Mime
View raw message