You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-dev@db.apache.org by "waikhom jai singh (JIRA)" <ji...@apache.org> on 2012/12/16 09:28:13 UTC

[jira] [Commented] (DERBY-3202) 'AccessControlException: access denied (java.io.FilePermission C:\....\file-2.log read)' in ErrorStreamTest.

    [ https://issues.apache.org/jira/browse/DERBY-3202?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13533303#comment-13533303 ] 

waikhom jai singh commented on DERBY-3202:
------------------------------------------

I am also using db-derby-10.9.1.0-bin. when I start the startNetworkServer.bat it gives me an error as follows.
java.security.AccessControlException: access denied (java.io.FilePermission derby.log read).

Could someone help me how to get the derby version with "Committed revision 594894" ?
                
> 'AccessControlException: access denied (java.io.FilePermission C:\....\file-2.log read)' in ErrorStreamTest.
> ------------------------------------------------------------------------------------------------------------
>
>                 Key: DERBY-3202
>                 URL: https://issues.apache.org/jira/browse/DERBY-3202
>             Project: Derby
>          Issue Type: Bug
>          Components: Test
>    Affects Versions: 10.4.1.3
>         Environment: OS: Windows
> JVM: Sun Microsystems Inc. 1.5.0, Sun Microsystems Inc. 1.4.2
>            Reporter: Ole Solberg
>            Assignee: Vemund Østgaard
>             Fix For: 10.4.1.3
>
>         Attachments: 3202-diff, 3202-diff.stat, 3202-vistaproblem-diff, 3202-vistaproblem-diff.stat, 3202-vistaproblem-diffv2, 3202-vistaproblem-diffv2.stat
>
>
> Seen on Windows only.
> See e.g. 
> http://dbtg.thresher.com/derby/test/Daily/jvm1.6/testing/Limited/testSummary-594211.html : vista, w2003.
> suitesAll fail *************************************************************
> 1) testFile(org.apache.derbyTesting.functionTests.tests.engine.ErrorStreamTest)java.security.AccessControlException: access denied (java.io.FilePermission C:\cludev\jagtmp\autoderbyN_regression\suitesAll_30\log\system\file-2.log read)
> 2) testWrongFile(org.apache.derbyTesting.functionTests.tests.engine.ErrorStreamTest)java.security.AccessControlException: access denied (java.io.FilePermission C:\cludev\jagtmp\autoderbyN_regression\suitesAll_30\log\system\foo\file-3.log read)
> 3) testFileOverMethod(org.apache.derbyTesting.functionTests.tests.engine.ErrorStreamTest)java.security.AccessControlException: access denied (java.io.FilePermission C:\cludev\jagtmp\autoderbyN_regression\suitesAll_30\log\system\file-8.log read)
> 4) testFileOverField(org.apache.derbyTesting.functionTests.tests.engine.ErrorStreamTest)java.security.AccessControlException: access denied (java.io.FilePermission C:\cludev\jagtmp\autoderbyN_regression\suitesAll_30\log\system\file-9.log read)
> 5) testFileOverMethodAndField(org.apache.derbyTesting.functionTests.tests.engine.ErrorStreamTest)java.security.AccessControlException: access denied (java.io.FilePermission C:\cludev\jagtmp\autoderbyN_regression\suitesAll_30\log\system\file-10.log read)
> 1) testDefault(org.apache.derbyTesting.functionTests.tests.engine.ErrorStreamTest)junit.framework.AssertionFailedError: File C:\cludev\jagtmp\autoderbyN_regression\suitesAll_30\log\system\derby.log could not be deleted
> 2) testMethod(org.apache.derbyTesting.functionTests.tests.engine.ErrorStreamTest)junit.framework.AssertionFailedError: assertNotEmpty failed:C:\cludev\jagtmp\autoderbyN_regression\suitesAll_30\log\system\method-4.log
> suitesAll fail *************************************************************
> 1) testFile(org.apache.derbyTesting.functionTests.tests.engine.ErrorStreamTest)java.security.AccessControlException: access denied (java.io.FilePermission C:\cludev\jagtmp\autoderbyN_regression\suitesAll_30\log\system\file-2.log read)
> 	at java.security.AccessControlContext.checkPermission(AccessControlContext.java:323)
> 	at java.security.AccessController.checkPermission(AccessController.java:546)
> 	at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
> 	at java.lang.SecurityManager.checkRead(SecurityManager.java:871)
> 	at java.io.File.exists(File.java:731)
> 	at java.io.Win32FileSystem.canonicalize(Win32FileSystem.java:402)
> 	at java.io.File.getCanonicalPath(File.java:559)
> 	at org.apache.derbyTesting.functionTests.tests.engine.ErrorStreamTest.testFile(ErrorStreamTest.java:140)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:95)
> ++

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira