db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kathey Marsden (JIRA)" <j...@apache.org>
Subject [jira] Created: (DERBY-2682) org.apache.derbyTesting.functionTests.tests.store.EncryptionKeyAESTest tests fail with java.security.AccessControlException: access denied (java.util.PropertyPermission user.dir read) on IBM 1.4.2
Date Tue, 22 May 2007 23:08:16 GMT
org.apache.derbyTesting.functionTests.tests.store.EncryptionKeyAESTest tests fail with java.security.AccessControlException:
access denied (java.util.PropertyPermission user.dir read) on IBM 1.4.2 
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

                 Key: DERBY-2682
                 URL: https://issues.apache.org/jira/browse/DERBY-2682
             Project: Derby
          Issue Type: Bug
         Environment: Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2)
Classic VM (build 1.4.2, J2RE 1.4.2 IBM Windows 32 build cn142-20061124 (SR7) (JIT enabled:
jitc))
            Reporter: Kathey Marsden
            Priority: Minor


On  IBM jdk 1.4.2 the File.mkdirs() call requires permission (java.util.PropertyPermission
user.dir read) causing this 
test failure. This does not occur with IBM 1.5.  Below is the failure.  Also failures with
EncryptionKeyDESTest and EncryptionKeyBlowFishTest

[C:/test] java junit.textui.TestRunner org.apache.derbyTesting.functionTests.tests.store.EncryptionKeyAESTest
...E.E.E.E..F
Time: 10.64
There were 4 errors:
1) testBackupEncryptedDatabase(org.apache.derbyTesting.functionTests.tests.store.EncryptionKeyAESTest)java.sql.SQLExcept
ion: The exception 'java.security.AccessControlException: access denied (java.util.PropertyPermission
user.dir read)' wa
s 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(EncryptionKey
Test.java:242)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)
        at org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:88)
        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: 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)
        ... 26 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:1290)
        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:539)
        at java.io.File.getCanonicalFile(File.java:560)
        at java.io.File.mkdirs(File.java:1151)
        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:351)
        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.ac78d1c1abx0112xb5fdxeb30x00003dcd3cb42.g0(Unknown Source)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(Compiled
Code))
        ... 29 more
2) testCreateDbFromBackup(org.apache.derbyTesting.functionTests.tests.store.EncryptionKeyAESTest)java.sql.SQLException:
The exception 'java.security.AccessControlException: access denied (java.util.PropertyPermission
user.dir read)' was thr
own 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.testCreateDbFromBackup(EncryptionKeyTest.
java:273)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(Compiled
Code))
        at org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:88)
        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: 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)
        ... 26 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:1290)
        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:539)
        at java.io.File.getCanonicalFile(File.java:560)
        at java.io.File.mkdirs(File.java:1151)
        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.acf30b8234x0112xb5fdxeb30x00003dcd3cb42.g0(Unknown Source)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(Compiled
Code))
        ... 29 more
3) testRestoreFrom(org.apache.derbyTesting.functionTests.tests.store.EncryptionKeyAESTest)java.sql.SQLException:
The exc
eption 'java.security.AccessControlException: access denied (java.util.PropertyPermission
user.dir read)' was thrown whi
le 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.createBackupRestore(EncryptionKeyTest.jav
a:484)
        at org.apache.derbyTesting.functionTests.tests.store.EncryptionKeyTest.testRestoreFrom(EncryptionKeyTest.java:35
0)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(Compiled
Code))
        at org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:88)
        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: 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)
        ... 27 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:1290)
        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:539)
        at java.io.File.getCanonicalFile(File.java:560)
        at java.io.File.mkdirs(File.java:1151)
        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.acaf9982bdx0112xb5fdxeb30x00003dcd3cb42.g0(Unknown Source)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(Compiled
Code))
        ... 30 more
4) testInvalidRestoreFrom(org.apache.derbyTesting.functionTests.tests.store.EncryptionKeyAESTest)java.sql.SQLException:
The exception 'java.security.AccessControlException: access denied (java.util.PropertyPermission
user.dir read)' was thr
own 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.createBackupRestore(EncryptionKeyTest.jav
a:484)
        at org.apache.derbyTesting.functionTests.tests.store.EncryptionKeyTest.testInvalidRestoreFrom(EncryptionKeyTest.
java:366)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(Compiled
Code))
        at org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:88)
        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: 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)
        ... 27 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:1290)
        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:539)
        at java.io.File.getCanonicalFile(File.java:560)
        at java.io.File.mkdirs(File.java:1151)
        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.ac3e7bc346x0112xb5fdxeb30x00003dcd3cb42.g0(Unknown Source)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(Compiled
Code))
        ... 30 more
There was 1 failure:
1) EncryptionKey AES suitejunit.framework.AssertionFailedError: extinout\encryptionKeyDBToBackup\db.lck
        at org.apache.derbyTesting.junit.DropDatabaseSetup.removeDir(DropDatabaseSetup.java:129)
        at org.apache.derbyTesting.junit.DropDatabaseSetup.removeDir(DropDatabaseSetup.java:127)
        at org.apache.derbyTesting.junit.DropDatabaseSetup.access$000(DropDatabaseSetup.java:38)
        at org.apache.derbyTesting.junit.DropDatabaseSetup$1.run(DropDatabaseSetup.java:104)
        at java.security.AccessController.doPrivileged1(Native Method)
        at java.security.AccessController.doPrivileged(AccessController.java(Compiled Code))
        at org.apache.derbyTesting.junit.DropDatabaseSetup.removeDirectory(DropDatabaseSetup.java:101)
        at org.apache.derbyTesting.junit.SupportFilesSetup.tearDown(SupportFilesSetup.java:127)
        at junit.extensions.TestSetup$1.protect(TestSetup.java:20)
        at junit.extensions.TestSetup.run(TestSetup.java:23)

FAILURES!!!
Tests run: 8,  Failures: 1,  Errors: 4


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message