db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kathey Marsden <kmarsdende...@sbcglobal.net>
Subject Re: Question about JDBCHarnessJavaTest
Date Wed, 07 Mar 2007 22:51:06 GMT
Kathey Marsden wrote:
>
> When adding (really uncommenting) tests in JDBCHarnessJavaTest, I am 
> seeing an
> AccessControlException: access denied  exception.
>  
On Dan's suggestion, I tried running the test outside of eclipse and got 
the same result.
I also tried to make derby_tests.policy more liberal to no avail.  Any 
other thoughts on this are welcome.

Thanks

Kathey

> Is there some change I need to make to the test before enabling them 
> in the adapter?  For example I reduced setTransactionIsolation to a 
> single master and tried running it and got.
>
> java.security.AccessControlException: access denied 
> (java.io.FilePermission C:\svn\trunk read)
>
>            at 
> java.security.AccessControlContext.checkPermission(AccessControlContext.java(Compiled

> Code))
>
>            at 
> java.security.AccessController.checkPermission(AccessController.java(Compiled 
> Code))
>
>            at 
> java.lang.SecurityManager.checkPermission(SecurityManager.java(Compiled 
> Code))
>
>            at 
> java.lang.SecurityManager.checkRead(SecurityManager.java(Compiled Code))
>
>            at java.io.File.exists(File.java(Compiled Code))
>
>            at java.io.File.mkdirs(File.java:1146)
>
>            at java.io.File.mkdirs(File.java:1159)
>
>            at java.io.File.mkdirs(File.java:1159)
>
>            at java.io.File.mkdirs(File.java:1159)
>
>            at java.io.File.mkdirs(File.java:1159)
>
>            at 
> org.apache.derbyTesting.junit.TestConfiguration$4.run(TestConfiguration.java:971) 
>
>
>            at java.security.AccessController.doPrivileged1(Native Method)
>
>            at 
> java.security.AccessController.doPrivileged(AccessController.java(Compiled 
> Code))
>
>            at 
> org.apache.derbyTesting.junit.TestConfiguration.getFailureFolder(TestConfiguration.java:965)

>
>
>            at 
> org.apache.derbyTesting.junit.BaseTestCase.getFailureFolder(BaseTestCase.java(Inlined

> Compiled Code))
>
>            at 
> org.apache.derbyTesting.functionTests.util.CanonTestCase.dumpForFail(CanonTestCase.java(Inlined

> Compiled Code))
>
>            at 
> org.apache.derbyTesting.functionTests.util.CanonTestCase.compareCanon(CanonTestCase.java(Compiled

> Code))
>
>            at 
> org.apache.derbyTesting.functionTests.util.HarnessJavaTest.runTest(HarnessJavaTest.java:90)

>
>
>            at junit.framework.TestCase.runBare(TestCase.java:127)
>
>            at 
> org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:76)
>
>            at junit.framework.TestResult$1.protect(TestResult.java:106)
>
>            at 
> junit.framework.TestResult.runProtected(TestResult.java:124)
>
>            at junit.framework.TestResult.run(TestResult.java:109)
>
>            at junit.framework.TestCase.run(TestCase.java:118)
>
>            at 
> junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
>
>            at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
>
>            at 
> junit.framework.TestResult.runProtected(TestResult.java:124)
>
>            at junit.extensions.TestSetup.run(TestSetup.java:23)
>
>            at 
> junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
>
>            at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
>
>            at 
> junit.framework.TestResult.runProtected(TestResult.java:124)
>
>            at junit.extensions.TestSetup.run(TestSetup.java:23)
>
>            at 
> junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
>
>            at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
>
>            at 
> junit.framework.TestResult.runProtected(TestResult.java:124)
>
>            at junit.extensions.TestSetup.run(TestSetup.java:23)
>
>            at junit.framework.TestSuite.runTest(TestSuite.java:208)
>
>            at junit.framework.TestSuite.run(TestSuite.java:203)
>
>            at 
> junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
>
>            at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
>
>            at 
> junit.framework.TestResult.runProtected(TestResult.java:124)
>
>            at junit.extensions.TestSetup.run(TestSetup.java:23)
>
>            at 
> junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
>
>            at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
>
>            at 
> junit.framework.TestResult.runProtected(TestResult.java:124)
>
>            at junit.extensions.TestSetup.run(TestSetup.java:23)
>
>            at junit.framework.TestSuite.runTest(TestSuite.java:208)
>
>            at junit.framework.TestSuite.run(TestSuite.java:203)
>
>            at 
> org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:128)

>
>
>            at 
> org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) 
>
>
>            at 
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)

>
>
>            at 
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)

>
>
>            at 
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)

>
>
>            at 
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)

>
>
>
>
>
>
>



Mime
View raw message