Issue Details (XML | Word | Printable)

Key: DERBY-2644
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Kathey Marsden
Reporter: Mike Matrigali
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Derby

multiple junit failures during nightly of the form: 2) Encryption Algorithm: defaultjava.security.AccessControlException: Access denied (java.util.PropertyPermission derby.system.home read)

Created: 14/May/07 05:26 PM   Updated: 30/Jun/09 12:14 AM
Return to search
Component/s: None
Affects Version/s: 10.3.1.4
Fix Version/s: 10.3.1.4

Time Tracking:
Not Specified

File Attachments:
  Size
Text File Licensed for inclusion in ASF works derby2644_policyreload.txt 2007-05-22 05:31 PM Daniel John Debrunner 2 kB
Text File insane_failures.txt 2007-05-17 09:05 PM Kathey Marsden 5 kB
Environment:
ibm15 jvm
ibm 142 jvm
insane build jar's

Bug behavior facts: Security
Resolution Date: 22/May/07 10:20 PM


 Description  « Hide
Multiple security manager errors labeled with "Encryption Algorithm" but not sure where they are coming from as the actual errors are from
tearDown, but I assume the real issue is the test that executed before the tearDown. Anyone know how to get more info from the failure?
I am reporting this separately from DERBY-2555 as it seems that code was backed out and this issue still appeared.

Here are 2 examples from a build done against 537324 , approximated 5:30pm, pacific time, friday 5/11.
http://people.apache.org/~fuzzylogic/derby_test_results/main/testlog/ibm142/537324-suites.All_diff.txt
http://people.apache.org/~fuzzylogic/derby_test_results/main/testlog/ibm15/537324-suites.All_diff.txt

Here is an example of some of the stacks inline so that searches for the bug will find it:
2) Encryption Algorithm: defaultjava.security.AccessControlException: access denied (java.util.PropertyPermission derby.system.home read)
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:292)
at java.security.AccessController.checkPermission(AccessController.java:476)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:538)
at java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:1290)
at java.lang.System.getProperty(System.java:645)
at org.apache.derbyTesting.junit.BaseTestCase$3.run(BaseTestCase.java:202)
at java.security.AccessController.doPrivileged1(Native Method)
at java.security.AccessController.doPrivileged(AccessController.java:287)
at org.apache.derbyTesting.junit.BaseTestCase.getSystemProperty(BaseTestCase.java:198)
at org.apache.derbyTesting.junit.DropDatabaseSetup.removeDatabase(DropDatabaseSetup.java:88)
at org.apache.derbyTesting.junit.DropDatabaseSetup.tearDown(DropDatabaseSetup.java:80)
at junit.extensions.TestSetup$1.protect(TestSetup.java:20)
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.extensions.TestSetup.run(TestSetup.java:23)
3) Encryption Algorithm: AES/CBC/NoPaddingjava.sql.SQLException: Java exception: 'access denied (java.io.FilePermission C:\jartest\JarResults.2007-05-11\ibm142_suites.All\system read): java.security.AccessControlException'.
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:292)
at java.security.AccessController.checkPermission(AccessController.java:476)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:538)
at java.lang.SecurityManager.checkRead(SecurityManager.java:877)
at java.io.File.exists(File.java:705)
at java.io.File.mkdirs(File.java:1146)
at org.apache.derby.impl.services.monitor.StorageFactoryService$1.run(Unknown Source)
at java.security.AccessController.doPrivileged1(Native Method)
at java.security.AccessController.doPrivileged(AccessController.java:351)
at org.apache.derby.impl.services.monitor.StorageFactoryService.<init>(Unknown Source)
at org.apache.derby.impl.services.monitor.BaseMonitor.getPersistentService(Unknown Source)
at org.apache.derby.impl.services.monitor.BaseMonitor.access$100(Unknown Source)
at org.apache.derby.impl.services.monitor.BaseMonitor$ProviderEnumeration.getNextStorageFactory(Unknown Source)
at org.apache.derby.impl.services.monitor.BaseMonitor$ProviderEnumeration.hasMoreElements(Unknown Source)
at org.apache.derby.impl.services.monitor.BaseMonitor.findProviderAndStartService(Unknown Source)
at org.apache.derby.impl.services.monitor.BaseMonitor.startPersistentService(Unknown Source)
at org.apache.derby.iapi.services.monitor.Monitor.startPersistentService(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedConnection.bootDatabase(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedConnection.<init>(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedConnection30.<init>(Unknown Source)
at org.apache.derby.jdbc.Driver30.getNewEmbedConnection(Unknown Source)
at org.apache.derby.jdbc.InternalDriver.connect(Unknown Source)
at org.apache.derby.jdbc.EmbeddedDataSource.getConnection(Unknown Source)
at org.apache.derby.jdbc.EmbeddedDataSource.getConnection(Unknown Source)
at org.apache.derbyTesting.junit.Decorator$2.setUp(Decorator.java:129)
at junit.extensions.TestSetup$1.protect(TestSetup.java:18)
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.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.extensions.TestSetup.run(TestSetup.java:23)
4) Encryption Algorithm: AES/CBC/NoPaddingjava.sql.SQLException: Java exception: 'access denied (java.io.FilePermission C:\jartest\JarResults.2007-05-11\ibm142_suites.All\system read): java.security.AccessControlException'.
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:292)
at java.security.AccessController.checkPermission(AccessController.java:476)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:538)
at java.lang.SecurityManager.checkRead(SecurityManager.java:877)
at java.io.File.exists(File.java:705)
at java.io.File.mkdirs(File.java:1146)
at org.apache.derby.impl.services.monitor.StorageFactoryService$1.run(Unknown Source)
at java.security.AccessController.doPrivileged1(Native Method)
at java.security.AccessController.doPrivileged(AccessController.java:351)
at org.apache.derby.impl.services.monitor.StorageFactoryService.<init>(Unknown Source)
at org.apache.derby.impl.services.monitor.BaseMonitor.getPersistentService(Unknown Source)
at org.apache.derby.impl.services.monitor.BaseMonitor.access$100(Unknown Source)
at org.apache.derby.impl.services.monitor.BaseMonitor$ProviderEnumeration.getNextStorageFactory(Unknown Source)
at org.apache.derby.impl.services.monitor.BaseMonitor$ProviderEnumeration.hasMoreElements(Unknown Source)
at org.apache.derby.impl.services.monitor.BaseMonitor.findProviderAndStartService(Unknown Source)
at org.apache.derby.impl.services.monitor.BaseMonitor.startPersistentService(Unknown Source)
at org.apache.derby.iapi.services.monitor.Monitor.startPersistentService(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedConnection.bootDatabase(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedConnection.<init>(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedConnection30.<init>(Unknown Source)
at org.apache.derby.jdbc.Driver30.getNewEmbedConnection(Unknown Source)
at org.apache.derby.jdbc.InternalDriver.connect(Unknown Source)
at org.apache.derby.jdbc.AutoloadedDriver.connect(Unknown Source)
at java.sql.DriverManager.getConnection(DriverManager.java:559)
at java.sql.DriverManager.getConnection(DriverManager.java:189)
at org.apache.derbyTesting.junit.DriverManagerConnector.openConnection(DriverManagerConnector.java:76)
at org.apache.derbyTesting.junit.DriverManagerConnector.openConnection(DriverManagerConnector.java:47)
at org.apache.derbyTesting.junit.TestConfiguration.openConnection(TestConfiguration.java:986)
at org.apache.derbyTesting.junit.DropDatabaseSetup.tearDown(DropDatabaseSetup.java:57)
at junit.extensions.TestSetup$1.protect(TestSetup.java:20)
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.extensions.TestSetup.run(TestSetup.java:23)
5) Encryption Algorithm: DES/ECB/NoPaddingjava.sql.SQLException: Java exception: 'access denied (java.io.FilePermission C:\jartest\JarResults.2007-05-11\ibm142_suites.All\system read): java.security.AccessControlException'.
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:292)
at java.security.AccessController.checkPermission(AccessController.java:476)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:538)
at java.lang.SecurityManager.checkRead(SecurityManager.java:877)
at java.io.File.exists(File.java:705)
at java.io.File.mkdirs(File.java:1146)
at org.apache.derby.impl.services.monitor.StorageFactoryService$1.run(Unknown Source)
at java.security.AccessController.doPrivileged1(Native Method)
at java.security.AccessController.doPrivileged(AccessController.java:351)
at org.apache.derby.impl.services.monitor.StorageFactoryService.<init>(Unknown Source)
at org.apache.derby.impl.services.monitor.BaseMonitor.getPersistentService(Unknown Source)
at org.apache.derby.impl.services.monitor.BaseMonitor.access$100(Unknown Source)
at org.apache.derby.impl.services.monitor.BaseMonitor$ProviderEnumeration.getNextStorageFactory(Unknown Source)
at org.apache.derby.impl.services.monitor.BaseMonitor$ProviderEnumeration.hasMoreElements(Unknown Source)
at org.apache.derby.impl.services.monitor.BaseMonitor.findProviderAndStartService(Unknown Source)
at org.apache.derby.impl.services.monitor.BaseMonitor.startPersistentService(Unknown Source)
at org.apache.derby.iapi.services.monitor.Monitor.startPersistentService(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedConnection.bootDatabase(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedConnection.<init>(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedConnection30.<init>(Unknown Source)
at org.apache.derby.jdbc.Driver30.getNewEmbedConnection(Unknown Source)
at org.apache.derby.jdbc.InternalDriver.connect(Unknown Source)
at org.apache.derby.jdbc.EmbeddedDataSource.getConnection(Unknown Source)
at org.apache.derby.jdbc.EmbeddedDataSource.getConnection(Unknown Source)
at org.apache.derbyTesting.junit.Decorator$2.setUp(Decorator.java:129)
at junit.extensions.TestSetup$1.protect(TestSetup.java:18)
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.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.extensions.TestSetup.run(TestSetup.java:23)
6) Encryption Algorithm: DES/ECB/NoPaddingjava.sql.SQLException: Java exception: 'access denied (java.io.FilePermission C:\jartest\JarResults.2007-05-11\ibm142_suites.All\system read): java.security.AccessControlException'.
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:292)
at java.security.AccessController.checkPermission(AccessController.java:476)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:538)
at java.lang.SecurityManager.checkRead(SecurityManager.java:877)
at java.io.File.exists(File.java:705)
at java.io.File.mkdirs(File.java:1146)
at org.apache.derby.impl.services.monitor.StorageFactoryService$1.run(Unknown Source)
at java.security.AccessController.doPrivileged1(Native Method)
at java.security.AccessController.doPrivileged(AccessController.java:351)
at org.apache.derby.impl.services.monitor.StorageFactoryService.<init>(Unknown Source)
at org.apache.derby.impl.services.monitor.BaseMonitor.getPersistentService(Unknown Source)
at org.apache.derby.impl.services.monitor.BaseMonitor.access$100(Unknown Source)
at org.apache.derby.impl.services.monitor.BaseMonitor$ProviderEnumeration.getNextStorageFactory(Unknown Source)
at org.apache.derby.impl.services.monitor.BaseMonitor$ProviderEnumeration.hasMoreElements(Unknown Source)
at org.apache.derby.impl.services.monitor.BaseMonitor.findProviderAndStartService(Unknown Source)
at org.apache.derby.impl.services.monitor.BaseMonitor.startPersistentService(Unknown Source)
at org.apache.derby.iapi.services.monitor.Monitor.startPersistentService(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedConnection.bootDatabase(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedConnection.<init>(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedConnection30.<init>(Unknown Source)
at org.apache.derby.jdbc.Driver30.getNewEmbedConnection(Unknown Source)
at org.apache.derby.jdbc.InternalDriver.connect(Unknown Source)
at org.apache.derby.jdbc.AutoloadedDriver.connect(Unknown Source)
at java.sql.DriverManager.getConnection(DriverManager.java:559)
at java.sql.DriverManager.getConnection(DriverManager.java:189)
at org.apache.derbyTesting.junit.DriverManagerConnector.openConnection(DriverManagerConnector.java:76)
at org.apache.derbyTesting.junit.DriverManagerConnector.openConnection(DriverManagerConnector.java:47)
at org.apache.derbyTesting.junit.TestConfiguration.openConnection(TestConfiguration.java:986)
at org.apache.derbyTesting.junit.DropDatabaseSetup.tearDown(DropDatabaseSetup.java:57)
at junit.extensions.TestSetup$1.protect(TestSetup.java:20)
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.extensions.TestSetup.run(TestSetup.java:23)
7) Encryption Algorithm: DESede/CFB/NoPaddingjava.sql.SQLException: Java exception: 'access denied (java.io.FilePermission C:\jartest\JarResults.2007-05-11\ibm142_suites.All\system read): java.security.AccessControlException'.
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:292)
at java.security.AccessController.checkPermission(AccessController.java:476)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:538)
at java.lang.SecurityManager.checkRead(SecurityManager.java:877)
at java.io.File.exists(File.java:705)
at java.io.File.mkdirs(File.java:1146)
at org.apache.derby.impl.services.monitor.StorageFactoryService$1.run(Unknown Source)
at java.security.AccessController.doPrivileged1(Native Method)
at java.security.AccessController.doPrivileged(AccessController.java:351)
at org.apache.derby.impl.services.monitor.StorageFactoryService.<init>(Unknown Source)
at org.apache.derby.impl.services.monitor.BaseMonitor.getPersistentService(Unknown Source)
at org.apache.derby.impl.services.monitor.BaseMonitor.access$100(Unknown Source)
at org.apache.derby.impl.services.monitor.BaseMonitor$ProviderEnumeration.getNextStorageFactory(Unknown Source)
at org.apache.derby.impl.services.monitor.BaseMonitor$ProviderEnumeration.hasMoreElements(Unknown Source)
at org.apache.derby.impl.services.monitor.BaseMonitor.findProviderAndStartService(Unknown Source)
at org.apache.derby.impl.services.monitor.BaseMonitor.startPersistentService(Unknown Source)
at org.apache.derby.iapi.services.monitor.Monitor.startPersistentService(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedConnection.bootDatabase(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedConnection.<init>(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedConnection30.<init>(Unknown Source)
at org.apache.derby.jdbc.Driver30.getNewEmbedConnection(Unknown Source)
at org.apache.derby.jdbc.InternalDriver.connect(Unknown Source)
at org.apache.derby.jdbc.EmbeddedDataSource.getConnection(Unknown Source)
at org.apache.derby.jdbc.EmbeddedDataSource.getConnection(Unknown Source)
at org.apache.derbyTesting.junit.Decorator$2.setUp(Decorator.java:129)
at junit.extensions.TestSetup$1.protect(TestSetup.java:18)
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.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.extensions.TestSetup.run(TestSetup.java:23)
8) Encryption Algorithm: DESede/CFB/NoPaddingjava.sql.SQLException: Java exception: 'access denied (java.io.FilePermission C:\jartest\JarResults.2007-05-11\ibm142_suites.All\system read): java.security.AccessControlException'.
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:292)
at java.security.AccessController.checkPermission(AccessController.java:476)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:538)
at java.lang.SecurityManager.checkRead(SecurityManager.java:877)
at java.io.File.exists(File.java:705)
at java.io.File.mkdirs(File.java:1146)
at org.apache.derby.impl.services.monitor.StorageFactoryService$1.run(Unknown Source)
at java.security.AccessController.doPrivileged1(Native Method)
at java.security.AccessController.doPrivileged(AccessController.java:351)
at org.apache.derby.impl.services.monitor.StorageFactoryService.<init>(Unknown Source)
at org.apache.derby.impl.services.monitor.BaseMonitor.getPersistentService(Unknown Source)
at org.apache.derby.impl.services.monitor.BaseMonitor.access$100(Unknown Source)
at org.apache.derby.impl.services.monitor.BaseMonitor$ProviderEnumeration.getNextStorageFactory(Unknown Source)
at org.apache.derby.impl.services.monitor.BaseMonitor$ProviderEnumeration.hasMoreElements(Unknown Source)
at org.apache.derby.impl.services.monitor.BaseMonitor.findProviderAndStartService(Unknown Source)
at org.apache.derby.impl.services.monitor.BaseMonitor.startPersistentService(Unknown Source)
at org.apache.derby.iapi.services.monitor.Monitor.startPersistentService(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedConnection.bootDatabase(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedConnection.<init>(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedConnection30.<init>(Unknown Source)
at org.apache.derby.jdbc.Driver30.getNewEmbedConnection(Unknown Source)
at org.apache.derby.jdbc.InternalDriver.connect(Unknown Source)
at org.apache.derby.jdbc.AutoloadedDriver.connect(Unknown Source)
at java.sql.DriverManager.getConnection(DriverManager.java:559)
at java.sql.DriverManager.getConnection(DriverManager.java:189)
at org.apache.derbyTesting.junit.DriverManagerConnector.openConnection(DriverManagerConnector.java:76)
at org.apache.derbyTesting.junit.DriverManagerConnector.openConnection(DriverManagerConnector.java:47)
at org.apache.derbyTesting.junit.TestConfiguration.openConnection(TestConfiguration.java:986)
at org.apache.derbyTesting.junit.DropDatabaseSetup.tearDown(DropDatabaseSetup.java:57)
at junit.extensions.TestSetup$1.protect(TestSetup.java:20)
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.extensions.TestSetup.run(TestSetup.java:23)
9) Encryption Algorithm: DES/CBC/NoPaddingjava.sql.SQLException: Java exception: 'access denied (java.io.FilePermission C:\jartest\JarResults.2007-05-11\ibm142_suites.All\system read): java.security.AccessControlException'.
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:292)
at java.security.AccessController.checkPermission(AccessController.java:476)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:538)
at java.lang.SecurityManager.checkRead(SecurityManager.java:877)
at java.io.File.exists(File.java:705)
at java.io.File.mkdirs(File.java:1146)
at org.apache.derby.impl.services.monitor.StorageFactoryService$1.run(Unknown Source)
at java.security.AccessController.doPrivileged1(Native Method)
at java.security.AccessController.doPrivileged(AccessController.java:351)
at org.apache.derby.impl.services.monitor.StorageFactoryService.<init>(Unknown Source)
at org.apache.derby.impl.services.monitor.BaseMonitor.getPersistentService(Unknown Source)
at org.apache.derby.impl.services.monitor.BaseMonitor.access$100(Unknown Source)
at org.apache.derby.impl.services.monitor.BaseMonitor$ProviderEnumeration.getNextStorageFactory(Unknown Source)
at org.apache.derby.impl.services.monitor.BaseMonitor$ProviderEnumeration.hasMoreElements(Unknown Source)
at org.apache.derby.impl.services.monitor.BaseMonitor.findProviderAndStartService(Unknown Source)
at org.apache.derby.impl.services.monitor.BaseMonitor.startPersistentService(Unknown Source)
at org.apache.derby.iapi.services.monitor.Monitor.startPersistentService(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedConnection.bootDatabase(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedConnection.<init>(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedConnection30.<init>(Unknown Source)
at org.apache.derby.jdbc.Driver30.getNewEmbedConnection(Unknown Source)
at org.apache.derby.jdbc.InternalDriver.connect(Unknown Source)
at org.apache.derby.jdbc.EmbeddedDataSource.getConnection(Unknown Source)
at org.apache.derby.jdbc.EmbeddedDataSource.getConnection(Unknown Source)
at org.apache.derbyTesting.junit.Decorator$2.setUp(Decorator.java:129)
at junit.extensions.TestSetup$1.protect(TestSetup.java:18)
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.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.extensions.TestSetup.run(TestSetup.java:23)
10) Encryption Algorithm: DES/CBC/NoPaddingjava.sql.SQLException: Java exception: 'access denied (java.io.FilePermission C:\jartest\JarResults.2007-05-11\ibm142_suites.All\system read): java.security.AccessControlException'.
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:292)
at java.security.AccessController.checkPermission(AccessController.java:476)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:538)
at java.lang.SecurityManager.checkRead(SecurityManager.java:877)
at java.io.File.exists(File.java:705)
at java.io.File.mkdirs(File.java:1146)
at org.apache.derby.impl.services.monitor.StorageFactoryService$1.run(Unknown Source)
at java.security.AccessController.doPrivileged1(Native Method)
at java.security.AccessController.doPrivileged(AccessController.java:351)
at org.apache.derby.impl.services.monitor.StorageFactoryService.<init>(Unknown Source)
at org.apache.derby.impl.services.monitor.BaseMonitor.getPersistentService(Unknown Source)
at org.apache.derby.impl.services.monitor.BaseMonitor.access$100(Unknown Source)
at org.apache.derby.impl.services.monitor.BaseMonitor$ProviderEnumeration.getNextStorageFactory(Unknown Source)
at org.apache.derby.impl.services.monitor.BaseMonitor$ProviderEnumeration.hasMoreElements(Unknown Source)
at org.apache.derby.impl.services.monitor.BaseMonitor.findProviderAndStartService(Unknown Source)
at org.apache.derby.impl.services.monitor.BaseMonitor.startPersistentService(Unknown Source)
at org.apache.derby.iapi.services.monitor.Monitor.startPersistentService(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedConnection.bootDatabase(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedConnection.<init>(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedConnection30.<init>(Unknown Source)
at org.apache.derby.jdbc.Driver30.getNewEmbedConnection(Unknown Source)
at org.apache.derby.jdbc.InternalDriver.connect(Unknown Source)
at org.apache.derby.jdbc.AutoloadedDriver.connect(Unknown Source)
at java.sql.DriverManager.getConnection(DriverManager.java:559)
at java.sql.DriverManager.getConnection(DriverManager.java:189)
at org.apache.derbyTesting.junit.DriverManagerConnector.openConnection(DriverManagerConnector.java:76)
at org.apache.derbyTesting.junit.DriverManagerConnector.openConnection(DriverManagerConnector.java:47)
at org.apache.derbyTesting.junit.TestConfiguration.openConnection(TestConfiguration.java:986)
at org.apache.derbyTesting.junit.DropDatabaseSetup.tearDown(DropDatabaseSetup.java:57)
at junit.extensions.TestSetup$1.protect(TestSetup.java:20)
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.extensions.TestSetup.run(TestSetup.java:23)
11) Encryption Algorithm: Blowfish/CBC/NoPaddingjava.sql.SQLException: Java exception: 'access denied (java.io.FilePermission C:\jartest\JarResults.2007-05-11\ibm142_suites.All\system read): java.security.AccessControlException'.
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:292)
at java.security.AccessController.checkPermission(AccessController.java:476)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:538)
at java.lang.SecurityManager.checkRead(SecurityManager.java:877)
at java.io.File.exists(File.java:705)
at java.io.File.mkdirs(File.java:1146)
at org.apache.derby.impl.services.monitor.StorageFactoryService$1.run(Unknown Source)
at java.security.AccessController.doPrivileged1(Native Method)
at java.security.AccessController.doPrivileged(AccessController.java:351)
at org.apache.derby.impl.services.monitor.StorageFactoryService.<init>(Unknown Source)
at org.apache.derby.impl.services.monitor.BaseMonitor.getPersistentService(Unknown Source)
at org.apache.derby.impl.services.monitor.BaseMonitor.access$100(Unknown Source)
at org.apache.derby.impl.services.monitor.BaseMonitor$ProviderEnumeration.getNextStorageFactory(Unknown Source)
at org.apache.derby.impl.services.monitor.BaseMonitor$ProviderEnumeration.hasMoreElements(Unknown Source)
at org.apache.derby.impl.services.monitor.BaseMonitor.findProviderAndStartService(Unknown Source)
at org.apache.derby.impl.services.monitor.BaseMonitor.startPersistentService(Unknown Source)
at org.apache.derby.iapi.services.monitor.Monitor.startPersistentService(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedConnection.bootDatabase(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedConnection.<init>(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedConnection30.<init>(Unknown Source)
at org.apache.derby.jdbc.Driver30.getNewEmbedConnection(Unknown Source)
at org.apache.derby.jdbc.InternalDriver.connect(Unknown Source)
at org.apache.derby.jdbc.EmbeddedDataSource.getConnection(Unknown Source)
at org.apache.derby.jdbc.EmbeddedDataSource.getConnection(Unknown Source)
at org.apache.derbyTesting.junit.Decorator$2.setUp(Decorator.java:129)
at junit.extensions.TestSetup$1.protect(TestSetup.java:18)
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.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.extensions.TestSetup.run(TestSetup.java:23)
12) Encryption Algorithm: Blowfish/CBC/NoPaddingjava.sql.SQLException: Java exception: 'access denied (java.io.FilePermission C:\jartest\JarResults.2007-05-11\ibm142_suites.All\system read): java.security.AccessControlException'.
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:292)
at java.security.AccessController.checkPermission(AccessController.java:476)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:538)
at java.lang.SecurityManager.checkRead(SecurityManager.java:877)
at java.io.File.exists(File.java:705)
at java.io.File.mkdirs(File.java:1146)
at org.apache.derby.impl.services.monitor.StorageFactoryService$1.run(Unknown Source)
at java.security.AccessController.doPrivileged1(Native Method)
at java.security.AccessController.doPrivileged(AccessController.java:351)
at org.apache.derby.impl.services.monitor.StorageFactoryService.<init>(Unknown Source)
at org.apache.derby.impl.services.monitor.BaseMonitor.getPersistentService(Unknown Source)
at org.apache.derby.impl.services.monitor.BaseMonitor.access$100(Unknown Source)
at org.apache.derby.impl.services.monitor.BaseMonitor$ProviderEnumeration.getNextStorageFactory(Unknown Source)
at org.apache.derby.impl.services.monitor.BaseMonitor$ProviderEnumeration.hasMoreElements(Unknown Source)
at org.apache.derby.impl.services.monitor.BaseMonitor.findProviderAndStartService(Unknown Source)
at org.apache.derby.impl.services.monitor.BaseMonitor.startPersistentService(Unknown Source)
at org.apache.derby.iapi.services.monitor.Monitor.startPersistentService(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedConnection.bootDatabase(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedConnection.<init>(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedConnection30.<init>(Unknown Source)
at org.apache.derby.jdbc.Driver30.getNewEmbedConnection(Unknown Source)
at org.apache.derby.jdbc.InternalDriver.connect(Unknown Source)
at org.apache.derby.jdbc.AutoloadedDriver.connect(Unknown Source)
at java.sql.DriverManager.getConnection(DriverManager.java:559)
at java.sql.DriverManager.getConnection(DriverManager.java:189)
at org.apache.derbyTesting.junit.DriverManagerConnector.openConnection(DriverManagerConnector.java:76)
at org.apache.derbyTesting.junit.DriverManagerConnector.openConnection(DriverManagerConnector.java:47)
at org.apache.derbyTesting.junit.TestConfiguration.openConnection(TestConfiguration.java:986)
at org.apache.derbyTesting.junit.DropDatabaseSetup.tearDown(DropDatabaseSetup.java:57)
at junit.extensions.TestSetup$1.protect(TestSetup.java:20)
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.extensions.TestSetup.run(TestSetup.java:23)
13) Encryption Algorithm: AES/OFB/NoPaddingjava.sql.SQLException: Java exception: 'access denied (java.io.FilePermission C:\jartest\JarResults.2007-05-11\ibm142_suites.All\system read): java.security.AccessControlException'.
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:292)
at java.security.AccessController.checkPermission(AccessController.java:476)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:538)
at java.lang.SecurityManager.checkRead(SecurityManager.java:877)
at java.io.File.exists(File.java:705)
at java.io.File.mkdirs(File.java:1146)
at org.apache.derby.impl.services.monitor.StorageFactoryService$1.run(Unknown Source)
at java.security.AccessController.doPrivileged1(Native Method)
at java.security.AccessController.doPrivileged(AccessController.java:351)
at org.apache.derby.impl.services.monitor.StorageFactoryService.<init>(Unknown Source)
at org.apache.derby.impl.services.monitor.BaseMonitor.getPersistentService(Unknown Source)
at org.apache.derby.impl.services.monitor.BaseMonitor.access$100(Unknown Source)
at org.apache.derby.impl.services.monitor.BaseMonitor$ProviderEnumeration.getNextStorageFactory(Unknown Source)
at org.apache.derby.impl.services.monitor.BaseMonitor$ProviderEnumeration.hasMoreElements(Unknown Source)
at org.apache.derby.impl.services.monitor.BaseMonitor.findProviderAndStartService(Unknown Source)
at org.apache.derby.impl.services.monitor.BaseMonitor.startPersistentService(Unknown Source)
at org.apache.derby.iapi.services.monitor.Monitor.startPersistentService(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedConnection.bootDatabase(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedConnection.<init>(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedConnection30.<init>(Unknown Source)
at org.apache.derby.jdbc.Driver30.getNewEmbedConnection(Unknown Source)
at org.apache.derby.jdbc.InternalDriver.connect(Unknown Source)
at org.apache.derby.jdbc.EmbeddedDataSource.getConnection(Unknown Source)
at org.apache.derby.jdbc.EmbeddedDataSource.getConnection(Unknown Source)
at org.apache.derbyTesting.junit.Decorator$2.setUp(Decorator.java:129)
at junit.extensions.TestSetup$1.protect(TestSetup.java:18)
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.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.extensions.TestSetup.run(TestSetup.java:23)
14) Encryption Algorithm: AES/OFB/NoPaddingjava.sql.SQLException: Java exception: 'access denied (java.io.FilePermission C:\jartest\JarResults.2007-05-11\ibm142_suites.All\system read): java.security.AccessControlException'.
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:292)
at java.security.AccessController.checkPermission(AccessController.java:476)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:538)
at java.lang.SecurityManager.checkRead(SecurityManager.java:877)
at java.io.File.exists(File.java:705)
at java.io.File.mkdirs(File.java:1146)
at org.apache.derby.impl.services.monitor.StorageFactoryService$1.run(Unknown Source)
at java.security.AccessController.doPrivileged1(Native Method)
at java.security.AccessController.doPrivileged(AccessController.java:351)
at org.apache.derby.impl.services.monitor.StorageFactoryService.<init>(Unknown Source)
at org.apache.derby.impl.services.monitor.BaseMonitor.getPersistentService(Unknown Source)
at org.apache.derby.impl.services.monitor.BaseMonitor.access$100(Unknown Source)
at org.apache.derby.impl.services.monitor.BaseMonitor$ProviderEnumeration.getNextStorageFactory(Unknown Source)
at org.apache.derby.impl.services.monitor.BaseMonitor$ProviderEnumeration.hasMoreElements(Unknown Source)
at org.apache.derby.impl.services.monitor.BaseMonitor.findProviderAndStartService(Unknown Source)
at org.apache.derby.impl.services.monitor.BaseMonitor.startPersistentService(Unknown Source)
at org.apache.derby.iapi.services.monitor.Monitor.startPersistentService(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedConnection.bootDatabase(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedConnection.<init>(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedConnection30.<init>(Unknown Source)
at org.apache.derby.jdbc.Driver30.getNewEmbedConnection(Unknown Source)
at org.apache.derby.jdbc.InternalDriver.connect(Unknown Source)
at org.apache.derby.jdbc.AutoloadedDriver.connect(Unknown Source)
at java.sql.DriverManager.getConnection(DriverManager.java:559)
at java.sql.DriverManager.getConnection(DriverManager.java:189)
at org.apache.derbyTesting.junit.DriverManagerConnector.openConnection(DriverManagerConnector.java:76)
at org.apache.derbyTesting.junit.DriverManagerConnector.openConnection(DriverManagerConnector.java:47)
at org.apache.derbyTesting.junit.TestConfiguration.openConnection(TestConfiguration.java:986)
at org.apache.derbyTesting.junit.DropDatabaseSetup.tearDown(DropDatabaseSetup.java:57)
at junit.extensions.TestSetup$1.protect(TestSetup.java:20)
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.extensions.TestSetup.run(TestSetup.java:23)


 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Mike Matrigali added a comment - 14/May/07 05:27 PM
Does anyone know, do you need jar files vs. classes to get security manager errors? I have run full suites 3 or 4 times agains ibm15 since this build and never see these errors, but I tend to run against SANE, classes.

Mike Matrigali made changes - 14/May/07 05:40 PM
Field Original Value New Value
Component/s Regression Test Failure [ 12310664 ]
Mike Matrigali added a comment - 17/May/07 05:06 PM
I spoke with Dan and he verified that Security manager execeptions are likely to only happen if you are running against jars, if you happen to be running against classes you will not reproduce the errors.

Kathey Marsden made changes - 17/May/07 08:23 PM
Assignee Kathey Marsden [ kmarsden ]
Kathey Marsden added a comment - 17/May/07 09:05 PM
I was able to reproduce this using insane jars and matching the classpath order of the failed run:

[C:/svn2/trunk] echo $CLASSPATH
C:/svn2/trunk/jars/insane/derby.jar;JARDIR/derbyLocale_fr.jar;C:/svn2/trunk/jars/insane/derbyLocale_pl.jar;C:/svn2/trunk
/jars/insane/derbyLocale_hu.jar;C:/svn2/trunk/jars/insane/derbyLocale_pt_BR.jar;C:/svn2/trunk/jars/insane/derbyLocale_it
.jar;C:/svn2/trunk/jars/insane/derbyLocale_ru.jar;C:/svn2/trunk/jars/insane/derbyLocale_ja_JP.jar;C:/svn2/trunk/jars/ins
ane/derbyLocale_zh_CN.jar;C:/svn2/trunk/jars/insane/derbyLocale_ko_KR.jar;C:/svn2/trunk/jars/insane/derbyLocale_zh_TW.ja
r;C:/svn2/trunk/jars/insane/derbytools.jar;C:/svn2/trunk/jars/insane/derbyclient.jar;C:/svn2/trunk/jars/insane/derbynet.
jar;C:/svn2/trunk/jars/insane/derbyTesting.jar;c:/svn/tools/db2jcc.jar;c:/svn/tools/db2jcc_license_c.jar;C:/svn2/trunk/tools/java/jakarta-oro-2.0.8.jar;C:/svn2/trunk/tools/java/osgi.jar;c:/svn/tools/junit.jar

I am not sure yet why the errors. The failures are for permissions granted by the default policy file.

Kathey Marsden made changes - 17/May/07 09:05 PM
Attachment insane_failures.txt [ 12357582 ]
Daniel John Debrunner added a comment - 17/May/07 09:43 PM
Do the failures occur with a simpler user defined classpath?

All the locale files can be dropped since they are implicitly added by derby.jar

jakarta-oro-2.0.8.jar can be dropped since it's not required for the junit tests

osgi.jar can be dropped since it's not required for the junit tests

derby.jar can be dropped since derbynet.jar is in the classpath

db2jcc.jar and db2jcc_license_c.jar are not required for the junit tests

The classpath used by this nightly testing does not refect how users are expected to set a classpath, is it a specific test case of doing something extreme?

Mike Matrigali added a comment - 17/May/07 10:47 PM
I am now pretty consistently seeing these errors in my development line runs on XP, running ibm15 jvm. I believe that somehow these errors in the encryption test cleanup is related to the upgrade tests -- but not sure how. If I hand edit
the AllPackages.java to remove the upgrade tests then the encryption unit tests work. If I add the upgrade tests back and
run the whole suite I get the encryption errors. Maybe upgrade tests are leaving something around that is causing issues
for subsequent encrypt tests?

I know junit does not guarantee an order of test running. On my system it looks like upgrade tests run first and then
the encryption tests later. Does anyone know if order of running tests is somehow JVM/OS dependent - maybe a hash
table somewhere? I don't want to count on the order, but it would be nice when debugging these kinds of issues to know
what might make something work on one system and not another.

Daniel John Debrunner added a comment - 17/May/07 11:12 PM
> I know junit does not guarantee an order of test running. On my system it looks like upgrade tests run first and then
the encryption tests later.

Junit will maintain the order that is defined in the suite, so the tests added first to the suite are run first.

The lack of ordering comes in when adding tests to the suite automatically, ie. when using the class
to add all fixtures that start with 'test'. In that case the order they are added into the suite is not guaranteed.

So in a suitation like

 suite.addTestSuite(A.class);
 suite.addTestSuite(B.class);

All of the fixtures in A.class will be run before those of B.class, but the order of fixtures within A.class is not defined.

Daniel John Debrunner added a comment - 17/May/07 11:18 PM
Is the folder the tests are being run being cleared out before the each run?
Ideally that should not matter, but I don't think we have yet reached the point with the junit tests where they all can be re-run in the same folder.

Kathey Marsden added a comment - 17/May/07 11:18 PM
Dan asked:
>Do the failures occur with a simpler user defined classpath?

Yes, they occur with a classpath of:
C:/svn2/trunk/jars/insane/derbytools.jar;C:/svn2/trunk/jars/insane/derbyclient.jar;C:/svn2/trunk/jars/insane/derbynet.ja
r;C:/svn2/trunk/jars/insane/derbytesting.jar;c:/svn/tools/junit.jar

Kathey Marsden added a comment - 17/May/07 11:34 PM
Dan asked:
>Is the folder the tests are being run being cleared out before the each run?
yes

Kathey Marsden added a comment - 18/May/07 02:54 AM
Printing the nested exceptions, this one seems to be the source of the trouble:
Adding permission java.util.PropertyPermission "user.dir", "read"; to the policy file seems to rectify all the errors.
I am rerunning to see if it is perhaps a fluke. I think we would have to change the documentation to say that this
property is required for backup. I still have no idea, why we sometimes get this and sometime not.
 I am running suites.All a few times to see if it is really fixed.



java.sql.SQLException: The exception 'java.security.AccessControlException: access denied (java.util.PropertyPermission user.dir read)' was thrown while evaluating an expression.
at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.Util.generateCsSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.TransactionResourceImpl.wrapInSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.TransactionResourceImpl.handleException(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedConnection.handleException(Unknown Source)
at org.apache.derby.impl.jdbc.ConnectionChild.handleException(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedStatement.executeStatement(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedPreparedStatement.executeStatement(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedCallableStatement.executeStatement(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedPreparedStatement.execute(Unknown Source)
at org.apache.derbyTesting.functionTests.tests.store.EncryptionKeyTest.testBackupEncryptedDatabase(EncryptionKeyTest.java:242)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java(Compiled Code))
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java(Compiled Code))
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(Compiled Code))
at java.lang.reflect.Method.invoke(Method.java(Compiled Code))
at junit.framework.TestCase.runTest(TestCase.java(Compiled Code))
at junit.framework.TestCase.runBare(TestCase.java(Compiled Code))
at org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java(Compiled Code))
at junit.framework.TestResult$1.protect(TestResult.java(Inlined Compiled Code))
at junit.framework.TestResult.runProtected(TestResult.java(Inlined Compiled Code))
at junit.framework.TestResult.run(TestResult.java(Inlined Compiled Code))
at junit.framework.TestCase.run(TestCase.java(Compiled Code))
at junit.framework.TestSuite.runTest(TestSuite.java(Inlined Compiled Code))
at junit.framework.TestSuite.run(TestSuite.java(Compiled Code))
at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
at junit.framework.TestResult.runProtected(TestResult.java(Compiled Code))
at junit.extensions.TestSetup.run(TestSetup.java:23)
at junit.framework.TestSuite.runTest(TestSuite.java(Inlined Compiled Code))
at junit.framework.TestSuite.run(TestSuite.java(Compiled Code))
at junit.framework.TestSuite.runTest(TestSuite.java(Compiled Code))
at junit.framework.TestSuite.run(TestSuite.java:203)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at TimeRunner.main(TimeRunner.java:29)
Caused by: ERROR 38000: The exception 'java.security.AccessControlException: access denied (java.util.PropertyPermission user.dir read)' was thrown while evaluating an expression.
at org.apache.derby.iapi.error.StandardException.newException(Unknown Source)
at org.apache.derby.iapi.error.StandardException.unexpectedUserException(Unknown Source)
at org.apache.derby.impl.services.reflect.ReflectMethod.invoke(Unknown Source)
at org.apache.derby.impl.sql.execute.CallStatementResultSet.open(Unknown Source)
at org.apache.derby.impl.sql.GenericPreparedStatement.execute(Unknown Source)
... 30 more
Caused by: java.security.AccessControlException: access denied (java.util.PropertyPermission user.dir 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.checkPropertyAccess(SecurityManager.java(Compiled Code))
at java.lang.System.getProperty(System.java(Inlined Compiled Code))
at java.io.Win32FileSystem.getUserPath(Win32FileSystem.java(Inlined Compiled Code))
at java.io.Win32FileSystem.resolve(Win32FileSystem.java(Compiled Code))
at java.io.File.getCanonicalPath(File.java(Inlined Compiled Code))
at java.io.File.getCanonicalFile(File.java(Inlined Compiled Code))
at java.io.File.mkdirs(File.java(Compiled Code))
at org.apache.derby.impl.store.raw.RawStore.run(Unknown Source)
at java.security.AccessController.doPrivileged1(Native Method)
at java.security.AccessController.doPrivileged(AccessController.java(Compiled Code))
at org.apache.derby.impl.store.raw.RawStore.privMkdirs(Unknown Source)
at org.apache.derby.impl.store.raw.RawStore.backup(Unknown Source)
at org.apache.derby.impl.store.raw.RawStore.backup(Unknown Source)
at org.apache.derby.impl.store.access.RAMAccessManager.backup(Unknown Source)
at org.apache.derby.impl.db.BasicDatabase.backup(Unknown Source)
at org.apache.derby.catalog.SystemProcedures.SYSCS_BACKUP_DATABASE(Unknown Source)
at org.apache.derby.exe.ac63c241b2x0112x9c7ax6657x00000e3213ef2.g0(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java(Compiled Code))
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java(Compiled Code))
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(Compiled Code))
at java.lang.reflect.Method.invoke(Method.java(Compiled Code))

Kathey Marsden added a comment - 18/May/07 04:16 AM
nope. failed again #:(

Mike Matrigali added a comment - 18/May/07 06:31 AM
Dan asked:
>Is the folder the tests are being run being cleared out before the each run?
Also in my case I by hand delete and recreate the directory that the junit is run and cd into that new directory to run them.

To lower the amount of time to reproduce I got it to reproduce consistently in my environment when I commented out
every addTest call in AllPackages except for the following 2:
        // Adding JUnit unit tests here to avoid creating a new JUnit
        // harness above the functionTests and unitTests
        // directories(packages)
        suite.addTest(org.apache.derbyTesting.unitTests.junit._Suite.suite());

        // Add the upgrade tests, though will only run tests if the
        // System property derbyTesting.oldReleasePath is set
        // to point at old releases. See upgradeTests._Suite
        // for more information.
        suite.addTest(
           org.apache.derbyTesting.functionTests.tests.upgradeTests._Suite.suite
());

In my environment the upgrade tests run first, though are added last.

Daniel John Debrunner added a comment - 18/May/07 04:04 PM
I saw this on MacOS with the 1.5 jvm running in the swing test runner using insane jars.

Kathey Marsden added a comment - 18/May/07 05:22 PM
I think I will disable EncryptionKeyAESTest EncryptionKeyDESTest and EncryptionKeyBlowfishTest until this issue can be resolved, since it is disrupting the nightlies.

Repository Revision Date User Message
ASF #539598 Fri May 18 20:47:09 UTC 2007 kmarsden DERBY-2644 disable EncryptionKeyXXXTests for now until we resolve the permissions errors.
Files Changed
MODIFY /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/store/_Suite.java

Kathey Marsden added a comment - 18/May/07 08:49 PM
committed revision 539598 to disable EncryptionKeyAESTest, EncryptionKeyDESTest and EncryptionKeyBlowfishTest until permissions errors can be resolved. I saw a failure in DataSourceTest in running Suites.All which fails also in a client without this change, so I don't think it is related.




Kathey Marsden added a comment - 18/May/07 11:25 PM
At least part of the problem is that the jars require:
permission java.util.PropertyPermission "user.dir", "read";

This is required for mkDirs() as shown from the stack trace.
classes was already being granted permission to read all properties but Mike is still seeing errors there, so there is something else as well.

Mike Matrigali added a comment - 19/May/07 12:31 AM
I am still seeing the errors even after your checkin. I think the errors are actually coming from this line
in All.java:
 // Encrypted tests
 suite.addTest(EncryptionSuite.suite());

And if I am following junit stuff correctly I think that the only thing being tested by these is that we can create them, and
get a connection to them.

The test I just ran was bringing my client up to date, 539642. I then hand edited Allpackages.java to not run any test except for the upgrade tests - this is so I could get whole suite to run in 10 minutes vs. 2 hours). When I ran I got the same set of errors:
This is running against SANE, classes build:

.........................................
.........................................
.........................................
.........................................
.........................................
.........................................
.........................................
.........................................
.........................................
.........................................
.........................................
.........................................
.........................................
.........................................
.........................................
......................EEEEEEEEEEEEE
Time: 915.396
There were 13 errors:
1) Encryption Algorithm: defaultjava.security.AccessControlException: Access denied (java.util.PropertyPermission derby.system.home read)
at java.security.AccessController.checkPermission(AccessController.java:104)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:547)
at java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:1300)
at java.lang.System.getProperty(System.java:369)
at java.lang.System.getProperty(System.java:354)
at org.apache.derbyTesting.junit.BaseTestCase$3.run(BaseTestCase.java:202)
at java.security.AccessController.doPrivileged(AccessController.java:193)
at org.apache.derbyTesting.junit.BaseTestCase.getSystemProperty(BaseTestCase.java:198)
at org.apache.derbyTesting.junit.DropDatabaseSetup.removeDatabase(DropDatabaseSetup.java:88)
at org.apache.derbyTesting.junit.DropDatabaseSetup.tearDown(DropDatabaseSetup.java:80)
at junit.extensions.TestSetup$1.protect(TestSetup.java:20)
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.extensions.TestSetup.run(TestSetup.java:23)
2) Encryption Algorithm: AES/CBC/NoPaddingjava.sql.SQLException: Java exception: 'Access denied (java.io.FilePermission C:\p4\m2\systest\out\junit\system read): java.security.AccessControlException'.
at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(SQLExceptionFactory.java:45)
at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Util.java:88)
at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Util.java:99)
at org.apache.derby.impl.jdbc.Util.javaException(Util.java:234)
at org.apache.derby.impl.jdbc.TransactionResourceImpl.wrapInSQLException(TransactionResourceImpl.java:386)
at org.apache.derby.impl.jdbc.TransactionResourceImpl.handleException(TransactionResourceImpl.java:345)
at org.apache.derby.impl.jdbc.EmbedConnection.handleException(EmbedConnection.java:1549)
at org.apache.derby.impl.jdbc.EmbedConnection.<init>(EmbedConnection.java:373)
at org.apache.derby.jdbc.Driver30.getNewEmbedConnection(Driver30.java:80)
at org.apache.derby.jdbc.InternalDriver.connect(InternalDriver.java:209)
at org.apache.derby.jdbc.EmbeddedDataSource.getConnection(EmbeddedDataSource.java:479)
at org.apache.derby.jdbc.EmbeddedDataSource.getConnection(EmbeddedDataSource.java:423)
at org.apache.derbyTesting.junit.Decorator$2.setUp(Decorator.java:129)
at junit.extensions.TestSetup$1.protect(TestSetup.java:18)
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.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.extensions.TestSetup.run(TestSetup.java:23)
Caused by: java.security.AccessControlException: Access denied (java.io.FilePermission C:\p4\m2\systest\out\junit\system read)
at java.security.AccessController.checkPermission(AccessController.java:104)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:547)
at java.lang.SecurityManager.checkRead(SecurityManager.java:886)
at java.io.File.exists(File.java:726)
at java.io.File.mkdirs(File.java:1171)
at org.apache.derby.impl.services.monitor.StorageFactoryService$1.run(StorageFactoryService.java:98)
at java.security.AccessController.doPrivileged(AccessController.java:242)
at org.apache.derby.impl.services.monitor.StorageFactoryService.<init>(StorageFactoryService.java:87)
at org.apache.derby.impl.services.monitor.BaseMonitor.getPersistentService(BaseMonitor.java:1645)
at org.apache.derby.impl.services.monitor.BaseMonitor.access$100(BaseMonitor.java:107)
at org.apache.derby.impl.services.monitor.BaseMonitor$ProviderEnumeration.getNextStorageFactory(BaseMonitor.java:2155)
at org.apache.derby.impl.services.monitor.BaseMonitor$ProviderEnumeration.hasMoreElements(BaseMonitor.java:2168)
at org.apache.derby.impl.services.monitor.BaseMonitor.findProviderAndStartService(BaseMonitor.java:1531)
at org.apache.derby.impl.services.monitor.BaseMonitor.startPersistentService(BaseMonitor.java:994)
at org.apache.derby.iapi.services.monitor.Monitor.startPersistentService(Monitor.java:542)
at org.apache.derby.impl.jdbc.EmbedConnection.bootDatabase(EmbedConnection.java:1811)
at org.apache.derby.impl.jdbc.EmbedConnection.<init>(EmbedConnection.java:253)
... 23 more
3) Encryption Algorithm: AES/CBC/NoPaddingjava.sql.SQLException: Java exception: 'Access denied (java.io.FilePermission C:\p4\m2\systest\out\junit\system read): java.security.AccessControlException'.
at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(SQLExceptionFactory.java:45)
at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Util.java:88)
at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Util.java:99)
at org.apache.derby.impl.jdbc.Util.javaException(Util.java:234)
at org.apache.derby.impl.jdbc.TransactionResourceImpl.wrapInSQLException(TransactionResourceImpl.java:386)
at org.apache.derby.impl.jdbc.TransactionResourceImpl.handleException(TransactionResourceImpl.java:345)
at org.apache.derby.impl.jdbc.EmbedConnection.handleException(EmbedConnection.java:1549)
at org.apache.derby.impl.jdbc.EmbedConnection.<init>(EmbedConnection.java:373)
at org.apache.derby.jdbc.Driver30.getNewEmbedConnection(Driver30.java:80)
at org.apache.derby.jdbc.InternalDriver.connect(InternalDriver.java:209)
at org.apache.derby.jdbc.AutoloadedDriver.connect(AutoloadedDriver.java:117)
at java.sql.DriverManager.getConnection(DriverManager.java:562)
at java.sql.DriverManager.getConnection(DriverManager.java:186)
at org.apache.derbyTesting.junit.DriverManagerConnector.openConnection(DriverManagerConnector.java:76)
at org.apache.derbyTesting.junit.DriverManagerConnector.openConnection(DriverManagerConnector.java:47)
at org.apache.derbyTesting.junit.TestConfiguration.openConnection(TestConfiguration.java:986)
at org.apache.derbyTesting.junit.DropDatabaseSetup.tearDown(DropDatabaseSetup.java:57)
at junit.extensions.TestSetup$1.protect(TestSetup.java:20)
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.extensions.TestSetup.run(TestSetup.java:23)
Caused by: java.security.AccessControlException: Access denied (java.io.FilePermission C:\p4\m2\systest\out\junit\system read)
at java.security.AccessController.checkPermission(AccessController.java:104)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:547)
at java.lang.SecurityManager.checkRead(SecurityManager.java:886)
at java.io.File.exists(File.java:726)
at java.io.File.mkdirs(File.java:1171)
at org.apache.derby.impl.services.monitor.StorageFactoryService$1.run(StorageFactoryService.java:98)
at java.security.AccessController.doPrivileged(AccessController.java:242)
at org.apache.derby.impl.services.monitor.StorageFactoryService.<init>(StorageFactoryService.java:87)
at org.apache.derby.impl.services.monitor.BaseMonitor.getPersistentService(BaseMonitor.java:1645)
at org.apache.derby.impl.services.monitor.BaseMonitor.access$100(BaseMonitor.java:107)
at org.apache.derby.impl.services.monitor.BaseMonitor$ProviderEnumeration.getNextStorageFactory(BaseMonitor.java:2155)
at org.apache.derby.impl.services.monitor.BaseMonitor$ProviderEnumeration.hasMoreElements(BaseMonitor.java:2168)
at org.apache.derby.impl.services.monitor.BaseMonitor.findProviderAndStartService(BaseMonitor.java:1531)
at org.apache.derby.impl.services.monitor.BaseMonitor.startPersistentService(BaseMonitor.java:994)
at org.apache.derby.iapi.services.monitor.Monitor.startPersistentService(Monitor.java:542)
at org.apache.derby.impl.jdbc.EmbedConnection.bootDatabase(EmbedConnection.java:1811)
at org.apache.derby.impl.jdbc.EmbedConnection.<init>(EmbedConnection.java:253)
... 23 more
4) Encryption Algorithm: DES/ECB/NoPaddingjava.sql.SQLException: Java exception: 'Access denied (java.io.FilePermission C:\p4\m2\systest\out\junit\system read): java.security.AccessControlException'.
at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(SQLExceptionFactory.java:45)
at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Util.java:88)
at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Util.java:99)
at org.apache.derby.impl.jdbc.Util.javaException(Util.java:234)
at org.apache.derby.impl.jdbc.TransactionResourceImpl.wrapInSQLException(TransactionResourceImpl.java:386)
at org.apache.derby.impl.jdbc.TransactionResourceImpl.handleException(TransactionResourceImpl.java:345)
at org.apache.derby.impl.jdbc.EmbedConnection.handleException(EmbedConnection.java:1549)
at org.apache.derby.impl.jdbc.EmbedConnection.<init>(EmbedConnection.java:373)
at org.apache.derby.jdbc.Driver30.getNewEmbedConnection(Driver30.java:80)
at org.apache.derby.jdbc.InternalDriver.connect(InternalDriver.java:209)
at org.apache.derby.jdbc.EmbeddedDataSource.getConnection(EmbeddedDataSource.java:479)
at org.apache.derby.jdbc.EmbeddedDataSource.getConnection(EmbeddedDataSource.java:423)
at org.apache.derbyTesting.junit.Decorator$2.setUp(Decorator.java:129)
at junit.extensions.TestSetup$1.protect(TestSetup.java:18)
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.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.extensions.TestSetup.run(TestSetup.java:23)
Caused by: java.security.AccessControlException: Access denied (java.io.FilePermission C:\p4\m2\systest\out\junit\system read)
at java.security.AccessController.checkPermission(AccessController.java:104)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:547)
at java.lang.SecurityManager.checkRead(SecurityManager.java:886)
at java.io.File.exists(File.java:726)
at java.io.File.mkdirs(File.java:1171)
at org.apache.derby.impl.services.monitor.StorageFactoryService$1.run(StorageFactoryService.java:98)
at java.security.AccessController.doPrivileged(AccessController.java:242)
at org.apache.derby.impl.services.monitor.StorageFactoryService.<init>(StorageFactoryService.java:87)
at org.apache.derby.impl.services.monitor.BaseMonitor.getPersistentService(BaseMonitor.java:1645)
at org.apache.derby.impl.services.monitor.BaseMonitor.access$100(BaseMonitor.java:107)
at org.apache.derby.impl.services.monitor.BaseMonitor$ProviderEnumeration.getNextStorageFactory(BaseMonitor.java:2155)
at org.apache.derby.impl.services.monitor.BaseMonitor$ProviderEnumeration.hasMoreElements(BaseMonitor.java:2168)
at org.apache.derby.impl.services.monitor.BaseMonitor.findProviderAndStartService(BaseMonitor.java:1531)
at org.apache.derby.impl.services.monitor.BaseMonitor.startPersistentService(BaseMonitor.java:994)
at org.apache.derby.iapi.services.monitor.Monitor.startPersistentService(Monitor.java:542)
at org.apache.derby.impl.jdbc.EmbedConnection.bootDatabase(EmbedConnection.java:1811)
at org.apache.derby.impl.jdbc.EmbedConnection.<init>(EmbedConnection.java:253)
... 23 more
5) Encryption Algorithm: DES/ECB/NoPaddingjava.sql.SQLException: Java exception: 'Access denied (java.io.FilePermission C:\p4\m2\systest\out\junit\system read): java.security.AccessControlException'.
at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(SQLExceptionFactory.java:45)
at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Util.java:88)
at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Util.java:99)
at org.apache.derby.impl.jdbc.Util.javaException(Util.java:234)
at org.apache.derby.impl.jdbc.TransactionResourceImpl.wrapInSQLException(TransactionResourceImpl.java:386)
at org.apache.derby.impl.jdbc.TransactionResourceImpl.handleException(TransactionResourceImpl.java:345)
at org.apache.derby.impl.jdbc.EmbedConnection.handleException(EmbedConnection.java:1549)
at org.apache.derby.impl.jdbc.EmbedConnection.<init>(EmbedConnection.java:373)
at org.apache.derby.jdbc.Driver30.getNewEmbedConnection(Driver30.java:80)
at org.apache.derby.jdbc.InternalDriver.connect(InternalDriver.java:209)
at org.apache.derby.jdbc.AutoloadedDriver.connect(AutoloadedDriver.java:117)
at java.sql.DriverManager.getConnection(DriverManager.java:562)
at java.sql.DriverManager.getConnection(DriverManager.java:186)
at org.apache.derbyTesting.junit.DriverManagerConnector.openConnection(DriverManagerConnector.java:76)
at org.apache.derbyTesting.junit.DriverManagerConnector.openConnection(DriverManagerConnector.java:47)
at org.apache.derbyTesting.junit.TestConfiguration.openConnection(TestConfiguration.java:986)
at org.apache.derbyTesting.junit.DropDatabaseSetup.tearDown(DropDatabaseSetup.java:57)
at junit.extensions.TestSetup$1.protect(TestSetup.java:20)
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.extensions.TestSetup.run(TestSetup.java:23)
Caused by: java.security.AccessControlException: Access denied (java.io.FilePermission C:\p4\m2\systest\out\junit\system read)
at java.security.AccessController.checkPermission(AccessController.java:104)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:547)
at java.lang.SecurityManager.checkRead(SecurityManager.java:886)
at java.io.File.exists(File.java:726)
at java.io.File.mkdirs(File.java:1171)
at org.apache.derby.impl.services.monitor.StorageFactoryService$1.run(StorageFactoryService.java:98)
at java.security.AccessController.doPrivileged(AccessController.java:242)
at org.apache.derby.impl.services.monitor.StorageFactoryService.<init>(StorageFactoryService.java:87)
at org.apache.derby.impl.services.monitor.BaseMonitor.getPersistentService(BaseMonitor.java:1645)
at org.apache.derby.impl.services.monitor.BaseMonitor.access$100(BaseMonitor.java:107)
at org.apache.derby.impl.services.monitor.BaseMonitor$ProviderEnumeration.getNextStorageFactory(BaseMonitor.java:2155)
at org.apache.derby.impl.services.monitor.BaseMonitor$ProviderEnumeration.hasMoreElements(BaseMonitor.java:2168)
at org.apache.derby.impl.services.monitor.BaseMonitor.findProviderAndStartService(BaseMonitor.java:1531)
at org.apache.derby.impl.services.monitor.BaseMonitor.startPersistentService(BaseMonitor.java:994)
at org.apache.derby.iapi.services.monitor.Monitor.startPersistentService(Monitor.java:542)
at org.apache.derby.impl.jdbc.EmbedConnection.bootDatabase(EmbedConnection.java:1811)
at org.apache.derby.impl.jdbc.EmbedConnection.<init>(EmbedConnection.java:253)
... 23 more
6) Encryption Algorithm: DESede/CFB/NoPaddingjava.sql.SQLException: Java exception: 'Access denied (java.io.FilePermission C:\p4\m2\systest\out\junit\system read): java.security.AccessControlException'.
at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(SQLExceptionFactory.java:45)
at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Util.java:88)
at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Util.java:99)
at org.apache.derby.impl.jdbc.Util.javaException(Util.java:234)
at org.apache.derby.impl.jdbc.TransactionResourceImpl.wrapInSQLException(TransactionResourceImpl.java:386)
at org.apache.derby.impl.jdbc.TransactionResourceImpl.handleException(TransactionResourceImpl.java:345)
at org.apache.derby.impl.jdbc.EmbedConnection.handleException(EmbedConnection.java:1549)
at org.apache.derby.impl.jdbc.EmbedConnection.<init>(EmbedConnection.java:373)
at org.apache.derby.jdbc.Driver30.getNewEmbedConnection(Driver30.java:80)
at org.apache.derby.jdbc.InternalDriver.connect(InternalDriver.java:209)
at org.apache.derby.jdbc.EmbeddedDataSource.getConnection(EmbeddedDataSource.java:479)
at org.apache.derby.jdbc.EmbeddedDataSource.getConnection(EmbeddedDataSource.java:423)
at org.apache.derbyTesting.junit.Decorator$2.setUp(Decorator.java:129)
at junit.extensions.TestSetup$1.protect(TestSetup.java:18)
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.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.extensions.TestSetup.run(TestSetup.java:23)
Caused by: java.security.AccessControlException: Access denied (java.io.FilePermission C:\p4\m2\systest\out\junit\system read)
at java.security.AccessController.checkPermission(AccessController.java:104)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:547)
at java.lang.SecurityManager.checkRead(SecurityManager.java:886)
at java.io.File.exists(File.java:726)
at java.io.File.mkdirs(File.java:1171)
at org.apache.derby.impl.services.monitor.StorageFactoryService$1.run(StorageFactoryService.java:98)
at java.security.AccessController.doPrivileged(AccessController.java:242)
at org.apache.derby.impl.services.monitor.StorageFactoryService.<init>(StorageFactoryService.java:87)
at org.apache.derby.impl.services.monitor.BaseMonitor.getPersistentService(BaseMonitor.java:1645)
at org.apache.derby.impl.services.monitor.BaseMonitor.access$100(BaseMonitor.java:107)
at org.apache.derby.impl.services.monitor.BaseMonitor$ProviderEnumeration.getNextStorageFactory(BaseMonitor.java:2155)
at org.apache.derby.impl.services.monitor.BaseMonitor$ProviderEnumeration.hasMoreElements(BaseMonitor.java:2168)
at org.apache.derby.impl.services.monitor.BaseMonitor.findProviderAndStartService(BaseMonitor.java:1531)
at org.apache.derby.impl.services.monitor.BaseMonitor.startPersistentService(BaseMonitor.java:994)
at org.apache.derby.iapi.services.monitor.Monitor.startPersistentService(Monitor.java:542)
at org.apache.derby.impl.jdbc.EmbedConnection.bootDatabase(EmbedConnection.java:1811)
at org.apache.derby.impl.jdbc.EmbedConnection.<init>(EmbedConnection.java:253)
... 23 more
7) Encryption Algorithm: DESede/CFB/NoPaddingjava.sql.SQLException: Java exception: 'Access denied (java.io.FilePermission C:\p4\m2\systest\out\junit\system read): java.security.AccessControlException'.
at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(SQLExceptionFactory.java:45)
at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Util.java:88)
at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Util.java:99)
at org.apache.derby.impl.jdbc.Util.javaException(Util.java:234)
at org.apache.derby.impl.jdbc.TransactionResourceImpl.wrapInSQLException(TransactionResourceImpl.java:386)
at org.apache.derby.impl.jdbc.TransactionResourceImpl.handleException(TransactionResourceImpl.java:345)
at org.apache.derby.impl.jdbc.EmbedConnection.handleException(EmbedConnection.java:1549)
at org.apache.derby.impl.jdbc.EmbedConnection.<init>(EmbedConnection.java:373)
at org.apache.derby.jdbc.Driver30.getNewEmbedConnection(Driver30.java:80)
at org.apache.derby.jdbc.InternalDriver.connect(InternalDriver.java:209)
at org.apache.derby.jdbc.AutoloadedDriver.connect(AutoloadedDriver.java:117)
at java.sql.DriverManager.getConnection(DriverManager.java:562)
at java.sql.DriverManager.getConnection(DriverManager.java:186)
at org.apache.derbyTesting.junit.DriverManagerConnector.openConnection(DriverManagerConnector.java:76)
at org.apache.derbyTesting.junit.DriverManagerConnector.openConnection(DriverManagerConnector.java:47)
at org.apache.derbyTesting.junit.TestConfiguration.openConnection(TestConfiguration.java:986)
at org.apache.derbyTesting.junit.DropDatabaseSetup.tearDown(DropDatabaseSetup.java:57)
at junit.extensions.TestSetup$1.protect(TestSetup.java:20)
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.extensions.TestSetup.run(TestSetup.java:23)
Caused by: java.security.AccessControlException: Access denied (java.io.FilePermission C:\p4\m2\systest\out\junit\system read)
at java.security.AccessController.checkPermission(AccessController.java:104)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:547)
at java.lang.SecurityManager.checkRead(SecurityManager.java:886)
at java.io.File.exists(File.java:726)
at java.io.File.mkdirs(File.java:1171)
at org.apache.derby.impl.services.monitor.StorageFactoryService$1.run(StorageFactoryService.java:98)
at java.security.AccessController.doPrivileged(AccessController.java:242)
at org.apache.derby.impl.services.monitor.StorageFactoryService.<init>(StorageFactoryService.java:87)
at org.apache.derby.impl.services.monitor.BaseMonitor.getPersistentService(BaseMonitor.java:1645)
at org.apache.derby.impl.services.monitor.BaseMonitor.access$100(BaseMonitor.java:107)
at org.apache.derby.impl.services.monitor.BaseMonitor$ProviderEnumeration.getNextStorageFactory(BaseMonitor.java:2155)
at org.apache.derby.impl.services.monitor.BaseMonitor$ProviderEnumeration.hasMoreElements(BaseMonitor.java:2168)
at org.apache.derby.impl.services.monitor.BaseMonitor.findProviderAndStartService(BaseMonitor.java:1531)
at org.apache.derby.impl.services.monitor.BaseMonitor.startPersistentService(BaseMonitor.java:994)
at org.apache.derby.iapi.services.monitor.Monitor.startPersistentService(Monitor.java:542)
at org.apache.derby.impl.jdbc.EmbedConnection.bootDatabase(EmbedConnection.java:1811)
at org.apache.derby.impl.jdbc.EmbedConnection.<init>(EmbedConnection.java:253)
... 23 more
8) Encryption Algorithm: DES/CBC/NoPaddingjava.sql.SQLException: Java exception: 'Access denied (java.io.FilePermission C:\p4\m2\systest\out\junit\system read): java.security.AccessControlException'.
at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(SQLExceptionFactory.java:45)
at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Util.java:88)
at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Util.java:99)
at org.apache.derby.impl.jdbc.Util.javaException(Util.java:234)
at org.apache.derby.impl.jdbc.TransactionResourceImpl.wrapInSQLException(TransactionResourceImpl.java:386)
at org.apache.derby.impl.jdbc.TransactionResourceImpl.handleException(TransactionResourceImpl.java:345)
at org.apache.derby.impl.jdbc.EmbedConnection.handleException(EmbedConnection.java:1549)
at org.apache.derby.impl.jdbc.EmbedConnection.<init>(EmbedConnection.java:373)
at org.apache.derby.jdbc.Driver30.getNewEmbedConnection(Driver30.java:80)
at org.apache.derby.jdbc.InternalDriver.connect(InternalDriver.java:209)
at org.apache.derby.jdbc.EmbeddedDataSource.getConnection(EmbeddedDataSource.java:479)
at org.apache.derby.jdbc.EmbeddedDataSource.getConnection(EmbeddedDataSource.java:423)
at org.apache.derbyTesting.junit.Decorator$2.setUp(Decorator.java:129)
at junit.extensions.TestSetup$1.protect(TestSetup.java:18)
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.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.extensions.TestSetup.run(TestSetup.java:23)
Caused by: java.security.AccessControlException: Access denied (java.io.FilePermission C:\p4\m2\systest\out\junit\system read)
at java.security.AccessController.checkPermission(AccessController.java:104)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:547)
at java.lang.SecurityManager.checkRead(SecurityManager.java:886)
at java.io.File.exists(File.java:726)
at java.io.File.mkdirs(File.java:1171)
at org.apache.derby.impl.services.monitor.StorageFactoryService$1.run(StorageFactoryService.java:98)
at java.security.AccessController.doPrivileged(AccessController.java:242)
at org.apache.derby.impl.services.monitor.StorageFactoryService.<init>(StorageFactoryService.java:87)
at org.apache.derby.impl.services.monitor.BaseMonitor.getPersistentService(BaseMonitor.java:1645)
at org.apache.derby.impl.services.monitor.BaseMonitor.access$100(BaseMonitor.java:107)
at org.apache.derby.impl.services.monitor.BaseMonitor$ProviderEnumeration.getNextStorageFactory(BaseMonitor.java:2155)
at org.apache.derby.impl.services.monitor.BaseMonitor$ProviderEnumeration.hasMoreElements(BaseMonitor.java:2168)
at org.apache.derby.impl.services.monitor.BaseMonitor.findProviderAndStartService(BaseMonitor.java:1531)
at org.apache.derby.impl.services.monitor.BaseMonitor.startPersistentService(BaseMonitor.java:994)
at org.apache.derby.iapi.services.monitor.Monitor.startPersistentService(Monitor.java:542)
at org.apache.derby.impl.jdbc.EmbedConnection.bootDatabase(EmbedConnection.java:1811)
at org.apache.derby.impl.jdbc.EmbedConnection.<init>(EmbedConnection.java:253)
... 23 more
9) Encryption Algorithm: DES/CBC/NoPaddingjava.sql.SQLException: Java exception: 'Access denied (java.io.FilePermission C:\p4\m2\systest\out\junit\system read): java.security.AccessControlException'.
at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(SQLExceptionFactory.java:45)
at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Util.java:88)
at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Util.java:99)
at org.apache.derby.impl.jdbc.Util.javaException(Util.java:234)
at org.apache.derby.impl.jdbc.TransactionResourceImpl.wrapInSQLException(TransactionResourceImpl.java:386)
at org.apache.derby.impl.jdbc.TransactionResourceImpl.handleException(TransactionResourceImpl.java:345)
at org.apache.derby.impl.jdbc.EmbedConnection.handleException(EmbedConnection.java:1549)
at org.apache.derby.impl.jdbc.EmbedConnection.<init>(EmbedConnection.java:373)
at org.apache.derby.jdbc.Driver30.getNewEmbedConnection(Driver30.java:80)
at org.apache.derby.jdbc.InternalDriver.connect(InternalDriver.java:209)
at org.apache.derby.jdbc.AutoloadedDriver.connect(AutoloadedDriver.java:117)
at java.sql.DriverManager.getConnection(DriverManager.java:562)
at java.sql.DriverManager.getConnection(DriverManager.java:186)
at org.apache.derbyTesting.junit.DriverManagerConnector.openConnection(DriverManagerConnector.java:76)
at org.apache.derbyTesting.junit.DriverManagerConnector.openConnection(DriverManagerConnector.java:47)
at org.apache.derbyTesting.junit.TestConfiguration.openConnection(TestConfiguration.java:986)
at org.apache.derbyTesting.junit.DropDatabaseSetup.tearDown(DropDatabaseSetup.java:57)
at junit.extensions.TestSetup$1.protect(TestSetup.java:20)
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.extensions.TestSetup.run(TestSetup.java:23)
Caused by: java.security.AccessControlException: Access denied (java.io.FilePermission C:\p4\m2\systest\out\junit\system read)
at java.security.AccessController.checkPermission(AccessController.java:104)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:547)
at java.lang.SecurityManager.checkRead(SecurityManager.java:886)
at java.io.File.exists(File.java:726)
at java.io.File.mkdirs(File.java:1171)
at org.apache.derby.impl.services.monitor.StorageFactoryService$1.run(StorageFactoryService.java:98)
at java.security.AccessController.doPrivileged(AccessController.java:242)
at org.apache.derby.impl.services.monitor.StorageFactoryService.<init>(StorageFactoryService.java:87)
at org.apache.derby.impl.services.monitor.BaseMonitor.getPersistentService(BaseMonitor.java:1645)
at org.apache.derby.impl.services.monitor.BaseMonitor.access$100(BaseMonitor.java:107)
at org.apache.derby.impl.services.monitor.BaseMonitor$ProviderEnumeration.getNextStorageFactory(BaseMonitor.java:2155)
at org.apache.derby.impl.services.monitor.BaseMonitor$ProviderEnumeration.hasMoreElements(BaseMonitor.java:2168)
at org.apache.derby.impl.services.monitor.BaseMonitor.findProviderAndStartService(BaseMonitor.java:1531)
at org.apache.derby.impl.services.monitor.BaseMonitor.startPersistentService(BaseMonitor.java:994)
at org.apache.derby.iapi.services.monitor.Monitor.startPersistentService(Monitor.java:542)
at org.apache.derby.impl.jdbc.EmbedConnection.bootDatabase(EmbedConnection.java:1811)
at org.apache.derby.impl.jdbc.EmbedConnection.<init>(EmbedConnection.java:253)
... 23 more
10) Encryption Algorithm: Blowfish/CBC/NoPaddingjava.sql.SQLException: Java exception: 'Access denied (java.io.FilePermission C:\p4\m2\systest\out\junit\system read): java.security.AccessControlException'.
at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(SQLExceptionFactory.java:45)
at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Util.java:88)
at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Util.java:99)
at org.apache.derby.impl.jdbc.Util.javaException(Util.java:234)
at org.apache.derby.impl.jdbc.TransactionResourceImpl.wrapInSQLException(TransactionResourceImpl.java:386)
at org.apache.derby.impl.jdbc.TransactionResourceImpl.handleException(TransactionResourceImpl.java:345)
at org.apache.derby.impl.jdbc.EmbedConnection.handleException(EmbedConnection.java:1549)
at org.apache.derby.impl.jdbc.EmbedConnection.<init>(EmbedConnection.java:373)
at org.apache.derby.jdbc.Driver30.getNewEmbedConnection(Driver30.java:80)
at org.apache.derby.jdbc.InternalDriver.connect(InternalDriver.java:209)
at org.apache.derby.jdbc.EmbeddedDataSource.getConnection(EmbeddedDataSource.java:479)
at org.apache.derby.jdbc.EmbeddedDataSource.getConnection(EmbeddedDataSource.java:423)
at org.apache.derbyTesting.junit.Decorator$2.setUp(Decorator.java:129)
at junit.extensions.TestSetup$1.protect(TestSetup.java:18)
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.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.extensions.TestSetup.run(TestSetup.java:23)
Caused by: java.security.AccessControlException: Access denied (java.io.FilePermission C:\p4\m2\systest\out\junit\system read)
at java.security.AccessController.checkPermission(AccessController.java:104)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:547)
at java.lang.SecurityManager.checkRead(SecurityManager.java:886)
at java.io.File.exists(File.java:726)
at java.io.File.mkdirs(File.java:1171)
at org.apache.derby.impl.services.monitor.StorageFactoryService$1.run(StorageFactoryService.java:98)
at java.security.AccessController.doPrivileged(AccessController.java:242)
at org.apache.derby.impl.services.monitor.StorageFactoryService.<init>(StorageFactoryService.java:87)
at org.apache.derby.impl.services.monitor.BaseMonitor.getPersistentService(BaseMonitor.java:1645)
at org.apache.derby.impl.services.monitor.BaseMonitor.access$100(BaseMonitor.java:107)
at org.apache.derby.impl.services.monitor.BaseMonitor$ProviderEnumeration.getNextStorageFactory(BaseMonitor.java:2155)
at org.apache.derby.impl.services.monitor.BaseMonitor$ProviderEnumeration.hasMoreElements(BaseMonitor.java:2168)
at org.apache.derby.impl.services.monitor.BaseMonitor.findProviderAndStartService(BaseMonitor.java:1531)
at org.apache.derby.impl.services.monitor.BaseMonitor.startPersistentService(BaseMonitor.java:994)
at org.apache.derby.iapi.services.monitor.Monitor.startPersistentService(Monitor.java:542)
at org.apache.derby.impl.jdbc.EmbedConnection.bootDatabase(EmbedConnection.java:1811)
at org.apache.derby.impl.jdbc.EmbedConnection.<init>(EmbedConnection.java:253)
... 23 more
11) Encryption Algorithm: Blowfish/CBC/NoPaddingjava.sql.SQLException: Java exception: 'Access denied (java.io.FilePermission C:\p4\m2\systest\out\junit\system read): java.security.AccessControlException'.
at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(SQLExceptionFactory.java:45)
at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Util.java:88)
at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Util.java:99)
at org.apache.derby.impl.jdbc.Util.javaException(Util.java:234)
at org.apache.derby.impl.jdbc.TransactionResourceImpl.wrapInSQLException(TransactionResourceImpl.java:386)
at org.apache.derby.impl.jdbc.TransactionResourceImpl.handleException(TransactionResourceImpl.java:345)
at org.apache.derby.impl.jdbc.EmbedConnection.handleException(EmbedConnection.java:1549)
at org.apache.derby.impl.jdbc.EmbedConnection.<init>(EmbedConnection.java:373)
at org.apache.derby.jdbc.Driver30.getNewEmbedConnection(Driver30.java:80)
at org.apache.derby.jdbc.InternalDriver.connect(InternalDriver.java:209)
at org.apache.derby.jdbc.AutoloadedDriver.connect(AutoloadedDriver.java:117)
at java.sql.DriverManager.getConnection(DriverManager.java:562)
at java.sql.DriverManager.getConnection(DriverManager.java:186)
at org.apache.derbyTesting.junit.DriverManagerConnector.openConnection(DriverManagerConnector.java:76)
at org.apache.derbyTesting.junit.DriverManagerConnector.openConnection(DriverManagerConnector.java:47)
at org.apache.derbyTesting.junit.TestConfiguration.openConnection(TestConfiguration.java:986)
at org.apache.derbyTesting.junit.DropDatabaseSetup.tearDown(DropDatabaseSetup.java:57)
at junit.extensions.TestSetup$1.protect(TestSetup.java:20)
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.extensions.TestSetup.run(TestSetup.java:23)
Caused by: java.security.AccessControlException: Access denied (java.io.FilePermission C:\p4\m2\systest\out\junit\system read)
at java.security.AccessController.checkPermission(AccessController.java:104)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:547)
at java.lang.SecurityManager.checkRead(SecurityManager.java:886)
at java.io.File.exists(File.java:726)
at java.io.File.mkdirs(File.java:1171)
at org.apache.derby.impl.services.monitor.StorageFactoryService$1.run(StorageFactoryService.java:98)
at java.security.AccessController.doPrivileged(AccessController.java:242)
at org.apache.derby.impl.services.monitor.StorageFactoryService.<init>(StorageFactoryService.java:87)
at org.apache.derby.impl.services.monitor.BaseMonitor.getPersistentService(BaseMonitor.java:1645)
at org.apache.derby.impl.services.monitor.BaseMonitor.access$100(BaseMonitor.java:107)
at org.apache.derby.impl.services.monitor.BaseMonitor$ProviderEnumeration.getNextStorageFactory(BaseMonitor.java:2155)
at org.apache.derby.impl.services.monitor.BaseMonitor$ProviderEnumeration.hasMoreElements(BaseMonitor.java:2168)
at org.apache.derby.impl.services.monitor.BaseMonitor.findProviderAndStartService(BaseMonitor.java:1531)
at org.apache.derby.impl.services.monitor.BaseMonitor.startPersistentService(BaseMonitor.java:994)
at org.apache.derby.iapi.services.monitor.Monitor.startPersistentService(Monitor.java:542)
at org.apache.derby.impl.jdbc.EmbedConnection.bootDatabase(EmbedConnection.java:1811)
at org.apache.derby.impl.jdbc.EmbedConnection.<init>(EmbedConnection.java:253)
... 23 more
12) Encryption Algorithm: AES/OFB/NoPaddingjava.sql.SQLException: Java exception: 'Access denied (java.io.FilePermission C:\p4\m2\systest\out\junit\system read): java.security.AccessControlException'.
at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(SQLExceptionFactory.java:45)
at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Util.java:88)
at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Util.java:99)
at org.apache.derby.impl.jdbc.Util.javaException(Util.java:234)
at org.apache.derby.impl.jdbc.TransactionResourceImpl.wrapInSQLException(TransactionResourceImpl.java:386)
at org.apache.derby.impl.jdbc.TransactionResourceImpl.handleException(TransactionResourceImpl.java:345)
at org.apache.derby.impl.jdbc.EmbedConnection.handleException(EmbedConnection.java:1549)
at org.apache.derby.impl.jdbc.EmbedConnection.<init>(EmbedConnection.java:373)
at org.apache.derby.jdbc.Driver30.getNewEmbedConnection(Driver30.java:80)
at org.apache.derby.jdbc.InternalDriver.connect(InternalDriver.java:209)
at org.apache.derby.jdbc.EmbeddedDataSource.getConnection(EmbeddedDataSource.java:479)
at org.apache.derby.jdbc.EmbeddedDataSource.getConnection(EmbeddedDataSource.java:423)
at org.apache.derbyTesting.junit.Decorator$2.setUp(Decorator.java:129)
at junit.extensions.TestSetup$1.protect(TestSetup.java:18)
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.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.extensions.TestSetup.run(TestSetup.java:23)
Caused by: java.security.AccessControlException: Access denied (java.io.FilePermission C:\p4\m2\systest\out\junit\system read)
at java.security.AccessController.checkPermission(AccessController.java:104)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:547)
at java.lang.SecurityManager.checkRead(SecurityManager.java:886)
at java.io.File.exists(File.java:726)
at java.io.File.mkdirs(File.java:1171)
at org.apache.derby.impl.services.monitor.StorageFactoryService$1.run(StorageFactoryService.java:98)
at java.security.AccessController.doPrivileged(AccessController.java:242)
at org.apache.derby.impl.services.monitor.StorageFactoryService.<init>(StorageFactoryService.java:87)
at org.apache.derby.impl.services.monitor.BaseMonitor.getPersistentService(BaseMonitor.java:1645)
at org.apache.derby.impl.services.monitor.BaseMonitor.access$100(BaseMonitor.java:107)
at org.apache.derby.impl.services.monitor.BaseMonitor$ProviderEnumeration.getNextStorageFactory(BaseMonitor.java:2155)
at org.apache.derby.impl.services.monitor.BaseMonitor$ProviderEnumeration.hasMoreElements(BaseMonitor.java:2168)
at org.apache.derby.impl.services.monitor.BaseMonitor.findProviderAndStartService(BaseMonitor.java:1531)
at org.apache.derby.impl.services.monitor.BaseMonitor.startPersistentService(BaseMonitor.java:994)
at org.apache.derby.iapi.services.monitor.Monitor.startPersistentService(Monitor.java:542)
at org.apache.derby.impl.jdbc.EmbedConnection.bootDatabase(EmbedConnection.java:1811)
at org.apache.derby.impl.jdbc.EmbedConnection.<init>(EmbedConnection.java:253)
... 23 more
13) Encryption Algorithm: AES/OFB/NoPaddingjava.sql.SQLException: Java exception: 'Access denied (java.io.FilePermission C:\p4\m2\systest\out\junit\system read): java.security.AccessControlException'.
at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(SQLExceptionFactory.java:45)
at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Util.java:88)
at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Util.java:99)
at org.apache.derby.impl.jdbc.Util.javaException(Util.java:234)
at org.apache.derby.impl.jdbc.TransactionResourceImpl.wrapInSQLException(TransactionResourceImpl.java:386)
at org.apache.derby.impl.jdbc.TransactionResourceImpl.handleException(TransactionResourceImpl.java:345)
at org.apache.derby.impl.jdbc.EmbedConnection.handleException(EmbedConnection.java:1549)
at org.apache.derby.impl.jdbc.EmbedConnection.<init>(EmbedConnection.java:373)
at org.apache.derby.jdbc.Driver30.getNewEmbedConnection(Driver30.java:80)
at org.apache.derby.jdbc.InternalDriver.connect(InternalDriver.java:209)
at org.apache.derby.jdbc.AutoloadedDriver.connect(AutoloadedDriver.java:117)
at java.sql.DriverManager.getConnection(DriverManager.java:562)
at java.sql.DriverManager.getConnection(DriverManager.java:186)
at org.apache.derbyTesting.junit.DriverManagerConnector.openConnection(DriverManagerConnector.java:76)
at org.apache.derbyTesting.junit.DriverManagerConnector.openConnection(DriverManagerConnector.java:47)
at org.apache.derbyTesting.junit.TestConfiguration.openConnection(TestConfiguration.java:986)
at org.apache.derbyTesting.junit.DropDatabaseSetup.tearDown(DropDatabaseSetup.java:57)
at junit.extensions.TestSetup$1.protect(TestSetup.java:20)
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.extensions.TestSetup.run(TestSetup.java:23)
Caused by: java.security.AccessControlException: Access denied (java.io.FilePermission C:\p4\m2\systest\out\junit\system read)
at java.security.AccessController.checkPermission(AccessController.java:104)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:547)
at java.lang.SecurityManager.checkRead(SecurityManager.java:886)
at java.io.File.exists(File.java:726)
at java.io.File.mkdirs(File.java:1171)
at org.apache.derby.impl.services.monitor.StorageFactoryService$1.run(StorageFactoryService.java:98)
at java.security.AccessController.doPrivileged(AccessController.java:242)
at org.apache.derby.impl.services.monitor.StorageFactoryService.<init>(StorageFactoryService.java:87)
at org.apache.derby.impl.services.monitor.BaseMonitor.getPersistentService(BaseMonitor.java:1645)
at org.apache.derby.impl.services.monitor.BaseMonitor.access$100(BaseMonitor.java:107)
at org.apache.derby.impl.services.monitor.BaseMonitor$ProviderEnumeration.getNextStorageFactory(BaseMonitor.java:2155)
at org.apache.derby.impl.services.monitor.BaseMonitor$ProviderEnumeration.hasMoreElements(BaseMonitor.java:2168)
at org.apache.derby.impl.services.monitor.BaseMonitor.findProviderAndStartService(BaseMonitor.java:1531)
at org.apache.derby.impl.services.monitor.BaseMonitor.startPersistentService(BaseMonitor.java:994)
at org.apache.derby.iapi.services.monitor.Monitor.startPersistentService(Monitor.java:542)
at org.apache.derby.impl.jdbc.EmbedConnection.bootDatabase(EmbedConnection.java:1811)
at org.apache.derby.impl.jdbc.EmbedConnection.<init>(EmbedConnection.java:253)
... 23 more

FAILURES!!!
Tests run: 637, Failures: 0, Errors: 13



Kathey Marsden added a comment - 21/May/07 01:55 PM
I can no longer reproduce the failures. I think in fact that the failures I was seeing were in different tests. If upgrade is causing the problem, it would seem sensible to either move the Encryption suite before the upgrade tests or remove it all together since it is not very functional.

The EncryptionKeyXXXTest failures that I have been seeing have been resolved in my client by adding
permission java.util.PropertyPermission "user.dir", "read";
permission.

So, I propose the following approach:
Today I will disable the Encryption suite.
Tuesday I will reenable the EncryptionKeyXXXTests with the new permission.

Does that sound reasonable?

Kathey



Kristian Waagan added a comment - 21/May/07 02:55 PM
Hi Kathey (and others),

What do you mean by "my client"?
I ran the EncryptionKeyXXXTests without additional privileges in the policy file, and I saw no failures. Now I'm confused if it is something that got checked in after the tests that causes trouble (upgrade tests?), if the problems are only seen on a different JVM or something else entirely.

I don't really have many free cycles to spend on this right now, but I would like to understand what has changed that causes the EncryptionKeyXXXTests to require more privileges than before.

I agree on your plan to disable the Encryption suite today and see what happens with the tinderbox/nightly, but personally I would like some more justification for adding another privilege in the policy file. It might be a bug in the test as well.


regards,

Kathey Marsden added a comment - 21/May/07 04:46 PM
Kristian Waagan asked:
>What do you mean by "my client"?
I should have said my environment: IBM jdk1.4.2, insane jars. See sysinfo below.
The user.dir property permission is required by the mkdirs call. I am not sure what causes mkdirs to sometimes need this permission and sometimes not but you can see from the trace earlier in this thread that it is required for the mkdirs call in backup. I tried changing the call to use mkdir() || mkdirs() as suggested by Knut but got a hang in some of the store tests so decided to back off changing RawStore.

[C:/svn2/trunk] java org.apache.derby.tools.sysinfo
------------------ Java Information ------------------
Java Version: 1.4.2
Java Vendor: IBM Corporation
Java home: C:\Program Files\IBM\Java142\jre
Java classpath: C:/svn2/trunk/jars/insane/derbytools.jar;C:/svn2/trunk/
nsane/derbynet.jar;C:/svn2/trunk/jars/insane/derbytesting.jar;C:/svn2/tr
OS name: Windows XP
OS architecture: x86
OS version: 5.1
Java user name: kmarsden
Java user home: C:\Documents and Settings\kmarsden
Java user dir: C:\svn2\trunk
java.specification.name: Java Platform API Specification
java.specification.version: 1.4
--------- Derby Information --------
JRE - JDBC: J2SE 1.4.2 - JDBC 3.0
[C:\svn2\trunk\jars\insane\derby.jar] 10.3.0.0 alpha - (539803M)
[C:\svn2\trunk\jars\insane\derbytools.jar] 10.3.0.0 alpha - (539803M)
[C:\svn2\trunk\jars\insane\derbynet.jar] 10.3.0.0 alpha - (539803M)
[C:\svn2\trunk\jars\insane\derbyclient.jar] 10.3.0.0 alpha - (539803M)
------------------------------------------------------
----------------- Locale Information -----------------
Current Locale : [English/United States [en_US]]
Found support for locale: [cs]
         version: 10.3.0.0 alpha - (539803M)
Found support for locale: [de_DE]
         version: 10.3.0.0 alpha - (539803M)
Found support for locale: [es]
         version: 10.3.0.0 alpha - (539803M)
Found support for locale: [fr]
         version: 10.3.0.0 alpha - (539803M)
Found support for locale: [hu]
         version: 10.3.0.0 alpha - (539803M)
Found support for locale: [it]
         version: 10.3.0.0 alpha - (539803M)
Found support for locale: [ja_JP]
         version: 10.3.0.0 alpha - (539803M)
Found support for locale: [ko_KR]
         version: 10.3.0.0 alpha - (539803M)
Found support for locale: [pl]
         version: 10.3.0.0 alpha - (539803M)
Found support for locale: [pt_BR]
         version: 10.3.0.0 alpha - (539803M)
Found support for locale: [ru]
         version: 10.3.0.0 alpha - (539803M)
Found support for locale: [zh_CN]
         version: 10.3.0.0 alpha - (539803M)
Found support for locale: [zh_TW]
         version: 10.3.0.0 alpha - (539803M)
------------------------------------------------------














































































































Kathey Marsden added a comment - 21/May/07 07:07 PM
 http://java.sun.com/developer/onlineTraining/Programming/JDCBook/appB.html#file
does not indicate that java.util.PropertyPermission user.dir read is required, so the issue I am seeing with this requirement must be a jvm issue.

Kathey

Daniel John Debrunner added a comment - 22/May/07 03:26 PM
I'd thought that this issue might be related to the security manager not being setup correctly for decorators but that doesn't appear to be the case.

With some debugging I see that when installing the security manager after the upgrade tests that every seems correct but the running code does not have the expected permissions, but I don't know why ...
I.e.
  derbyTesting.codeclasses is correct (running from classes)
  java.security.policy is correct (is a URL to the policy file from the classes folder)
  A new security manager is installed ok

Even in the privilege block that installs the security manager trying to access derby.system.home fails just after the setSecurityManager() call. I think this means it can't be picking the wrong version of derby (an old release) since this is test code, and the old test code is not in the classpath.

As Mike has said this problem occurs with just the upgrade tests and the EncryptionSuite which means the installing of the security manager for the encryption suite is the first time it is done, which means it should be like any other time and just work!



Kathey Marsden added a comment - 22/May/07 04:23 PM
Dan wrote:
>I'd thought that this issue might be related to the security manager not being setup correctly for decorators but that doesn't appear to be the case.
Do you have an objection to putting the Encryption suite before All to resolve the nightly failures?

Kathey


Daniel John Debrunner added a comment - 22/May/07 04:26 PM
The problem is caused by the upgrade test fixture Changes10_3.testPolicyReloadingProcedure(). If this fixture is not run then no problems are seen.

The fixture calls Policy.getPolicy().refresh() through the builtin procedure SYSCS_UTIL.SYSCS_RELOAD_SECURITY_POLICY.

During the upgrade tests no security manager is installed, so it seems as though the getPolicy().refresh() is "locking" in some policy with no permissions so that the setting of java.security.policy gets ignored when the security manager is installed later.

One fix is to have the procedure do nothing if no security manager is installed, that leads to the tests passing. That seems a reasonable thing to do since performing a refresh() in that case should be meaningless.

Daniel John Debrunner added a comment - 22/May/07 05:31 PM
Patch to not attempt to reload the security policy if no security manager is installed.
Also cleanup the procedure implementation to be self contained by using an anonymous inner class for the privilege block. This removes a security hole where other code could use the previous public class to perform policy refreshes. Also fix the exception handling to correctly catch SecurityException, previously the code only caught checked exceptions which are not thrown by Policy.getPolicy().refresh().

Daniel John Debrunner made changes - 22/May/07 05:31 PM
Attachment derby2644_policyreload.txt [ 12357902 ]
Daniel John Debrunner added a comment - 22/May/07 05:44 PM
Patch Committed revision 540658

Daniel John Debrunner added a comment - 22/May/07 10:19 PM
Was an issue in the policy reloading stored procedure.

Daniel John Debrunner made changes - 22/May/07 10:19 PM
Component/s Security [ 11411 ]
Daniel John Debrunner added a comment - 22/May/07 10:20 PM
Tinderbox runs show no errors running suites.All after this change.

Daniel John Debrunner made changes - 22/May/07 10:20 PM
Status Open [ 1 ] Resolved [ 5 ]
Fix Version/s 10.3.0.0 [ 12310800 ]
Resolution Fixed [ 1 ]
Repository Revision Date User Message
ASF #661388 Thu May 29 16:39:01 UTC 2008 myrnavl DERBY-2644; reactivating the encryption tests; DERBY-2644 should be fixed
Files Changed
MODIFY /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/store/_Suite.java

Myrna van Lunteren added a comment - 29/May/08 04:46 PM
A number of encryption tests had been commented out from store/_Suite.java because of this bug...
I ran suites.All with them back in, and got only 1 failure, testStartStopManagementFromApplication - which is similar to DERBY-3561.
I committed the reactivation with revision 661388, but I'll revisit DERBY-3561 if it pops up in the tinderbox tests.

Myrna van Lunteren added a comment - 29/May/08 06:24 PM
There was a report today of the same test (testStartStopManagementFromApplication) failing with the same signature on 10.4, so after fix for DERBY-3561, so I am assuming the reactivation of these encryption tests are unrelated to the test failure.

Dag H. Wanvik made changes - 29/Jun/09 10:40 PM
Derby Categories [Regression Test Failure]
Dag H. Wanvik made changes - 29/Jun/09 10:42 PM
Component/s Regression Test Failure [ 12310664 ]
Dag H. Wanvik made changes - 30/Jun/09 12:12 AM
Derby Categories [Regression Test Failure] [Security]
Dag H. Wanvik made changes - 30/Jun/09 12:14 AM
Component/s Security [ 11411 ]