atom feed7 messages in org.apache.db.derby-devEnabling IO permissions
FromSent OnAttachments
Nirmal FernandoJul 8, 2010 6:46 am 
Knut Anders HatlenJul 8, 2010 8:13 am 
Nirmal FernandoJul 8, 2010 8:45 am 
Rick HillegasJul 8, 2010 9:10 am 
Nirmal FernandoJul 8, 2010 9:50 am 
Rick HillegasJul 8, 2010 10:22 am 
Nirmal FernandoJul 8, 2010 10:36 am 
Subject:Enabling IO permissions
From:Nirmal Fernando (nirm@gmail.com)
Date:Jul 8, 2010 6:46:24 am
List:org.apache.db.derby-dev

Hi All,

I'm getting following error stack trace while trying to read a content of a file inside the class "XplainStatisticsTest.java". How can I grant the permission to read these files to Derby?

Help is highly appreciated. Thanks.

Stack trace:

.java.security.AccessControlException: access denied (java.io.FilePermission 98614267-0129-adc8-49d3-ffffc4f6138e.xml read) at java.security.AccessControlContext.checkPermission(Unknown Source) at java.security.AccessController.checkPermission(Unknown Source) at java.lang.SecurityManager.checkPermission(Unknown Source) at java.lang.SecurityManager.checkRead(Unknown Source) at java.io.FileInputStream.<init>(Unknown Source) at java.io.FileInputStream.<init>(Unknown Source) at
org.apache.derbyTesting.functionTests.tests.lang.XplainStatisticsTest.xmlTagCount(XplainStatisticsTest.java:737) at
org.apache.derbyTesting.functionTests.tests.lang.XplainStatisticsTest.disableXplainStyle(XplainStatisticsTest.java:553) at
org.apache.derbyTesting.functionTests.tests.lang.XplainStatisticsTest.testSimpleQuery(XplainStatisticsTest.java:646) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at junit.framework.TestCase.runTest(TestCase.java:164) at junit.framework.TestCase.runBare(TestCase.java:130) at org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:109) 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:120) at junit.framework.TestSuite.runTest(TestSuite.java:230) at junit.framework.TestSuite.run(TestSuite.java:225) at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24) at junit.extensions.TestSetup$1.protect(TestSetup.java:21) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.extensions.TestSetup.run(TestSetup.java:25) at org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:57) at junit.textui.TestRunner.doRun(TestRunner.java:121) at junit.textui.TestRunner.start(TestRunner.java:185) at junit.textui.TestRunner.main(TestRunner.java:143)

C.S.Nirmal J. Fernando Department of Computer Science & Engineering, Faculty of Engineering, University of Moratuwa, Sri Lanka.