db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ahsan shamsudeen (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (DERBY-6315) Improve test coverage of org.apache.derby.impl.io.InputStreamFile
Date Wed, 04 Sep 2013 19:30:51 GMT

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

ahsan shamsudeen commented on DERBY-6315:
-----------------------------------------

When I try run unit test for DatabaseClassLoadingTest.java , I am getting "access denied"
exception. What is the reason for this? anyway to overcome this issue  ?

java.security.AccessControlException: access denied ("java.io.FilePermission" "D:\Apache\Workspace\derby\system\wombat\jar\3d3b0068-0140-d54f-a291-0000589559b2.jar.G1377968313576"
"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.File.exists(Unknown Source)
	at org.apache.derby.impl.store.raw.data.RemoveFileOperation.needsRedo(RemoveFileOperation.java:154)
	at org.apache.derby.impl.store.raw.log.FileLogger.redo(FileLogger.java:1395)
	at org.apache.derby.impl.store.raw.log.LogToFile.recover(LogToFile.java:932)
	at org.apache.derby.impl.store.raw.RawStore.boot(RawStore.java:337)
	at org.apache.derby.impl.services.monitor.BaseMonitor.boot(BaseMonitor.java:1991)
	at org.apache.derby.impl.services.monitor.TopService.bootModule(TopService.java:334)
	at org.apache.derby.impl.services.monitor.BaseMonitor.startModule(BaseMonitor.java:541)
	at org.apache.derby.impl.services.monitor.FileMonitor.startModule(FileMonitor.java:44)
	at org.apache.derby.iapi.services.monitor.Monitor.bootServiceModule(Monitor.java:423)
	at org.apache.derby.impl.store.access.RAMAccessManager.boot(RAMAccessManager.java:1000)
	at org.apache.derby.impl.services.monitor.BaseMonitor.boot(BaseMonitor.java:1991)
	at org.apache.derby.impl.services.monitor.TopService.bootModule(TopService.java:334)
	at org.apache.derby.impl.services.monitor.BaseMonitor.startModule(BaseMonitor.java:541)
	at org.apache.derby.impl.services.monitor.FileMonitor.startModule(FileMonitor.java:44)
	at org.apache.derby.iapi.services.monitor.Monitor.bootServiceModule(Monitor.java:423)
	at org.apache.derby.impl.db.BasicDatabase.bootStore(BasicDatabase.java:760)
	at org.apache.derby.impl.db.BasicDatabase.boot(BasicDatabase.java:177)
	at org.apache.derby.impl.services.monitor.BaseMonitor.boot(BaseMonitor.java:1991)
	at org.apache.derby.impl.services.monitor.TopService.bootModule(TopService.java:334)
	at org.apache.derby.impl.services.monitor.BaseMonitor.bootService(BaseMonitor.java:1819)
	at org.apache.derby.impl.services.monitor.BaseMonitor.startProviderService(BaseMonitor.java:1685)
	at org.apache.derby.impl.services.monitor.BaseMonitor.findProviderAndStartService(BaseMonitor.java:1569)
	at org.apache.derby.impl.services.monitor.BaseMonitor.startPersistentService(BaseMonitor.java:988)
	at org.apache.derby.iapi.services.monitor.Monitor.startPersistentService(Monitor.java:546)
	at org.apache.derby.impl.jdbc.EmbedConnection.bootDatabase(EmbedConnection.java:2802)
	at org.apache.derby.impl.jdbc.EmbedConnection.<init>(EmbedConnection.java:404)
	at org.apache.derby.jdbc.InternalDriver.getNewEmbedConnection(InternalDriver.java:628)
	at org.apache.derby.jdbc.InternalDriver.connect(InternalDriver.java:282)
	at org.apache.derby.jdbc.InternalDriver.connect(InternalDriver.java:913)
	at org.apache.derby.jdbc.AutoloadedDriver.connect(AutoloadedDriver.java:147)
	at java.sql.DriverManager.getConnection(Unknown Source)
	at java.sql.DriverManager.getConnection(Unknown Source)
	at org.apache.derbyTesting.junit.DriverManagerConnector.openConnection(DriverManagerConnector.java:100)
	at org.apache.derbyTesting.junit.DriverManagerConnector.openConnection(DriverManagerConnector.java:67)
	at org.apache.derbyTesting.junit.DriverManagerConnector.openConnection(DriverManagerConnector.java:43)
	at org.apache.derbyTesting.junit.TestConfiguration.openDefaultConnection(TestConfiguration.java:1707)
	at org.apache.derbyTesting.junit.BaseJDBCTestSetup.getConnection(BaseJDBCTestSetup.java:72)
	at org.apache.derbyTesting.junit.CleanDatabaseTestSetup.setUp(CleanDatabaseTestSetup.java:103)
	at junit.extensions.TestSetup$1.protect(TestSetup.java:20)
	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 org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130)
	at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
                
> Improve test coverage of org.apache.derby.impl.io.InputStreamFile
> -----------------------------------------------------------------
>
>                 Key: DERBY-6315
>                 URL: https://issues.apache.org/jira/browse/DERBY-6315
>             Project: Derby
>          Issue Type: Sub-task
>          Components: JDBC
>            Reporter: ahsan shamsudeen
>            Assignee: ahsan shamsudeen
>            Priority: Minor
>              Labels: gsoc2013
>
> According to code coverage analysis, org.apache.derby.impl.io.InputStreamFile has a poor
code coverage.
> This task is to investigate this class and add regression test that exercise the code,
as appropriate. The current coverage report of the class can be found at  http://dbtg.foundry.sun.com/derby/test/coverage/_files/9a.html

--
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

Mime
View raw message