Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 3693 invoked from network); 2 Nov 2006 23:36:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Nov 2006 23:36:40 -0000 Received: (qmail 12293 invoked by uid 500); 2 Nov 2006 23:36:50 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 12267 invoked by uid 500); 2 Nov 2006 23:36:50 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 12258 invoked by uid 99); 2 Nov 2006 23:36:50 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Nov 2006 15:36:50 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Nov 2006 15:36:38 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 1C32F7142F6 for ; Thu, 2 Nov 2006 15:36:18 -0800 (PST) Message-ID: <31174526.1162510578113.JavaMail.root@brutus> Date: Thu, 2 Nov 2006 15:36:18 -0800 (PST) From: "Myrna van Lunteren (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Commented: (DERBY-1785) junit tests fail with permission access problems when run with j9 jvms In-Reply-To: <2401952.1156974322356.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ http://issues.apache.org/jira/browse/DERBY-1785?page=comments#action_12446773 ] Myrna van Lunteren commented on DERBY-1785: ------------------------------------------- I tried running with junit and wctme5.7 (foundation) according to the suggestions above, and I did not see the permission exception. So I guess this issue can be closed. I did see a bunch of other exceptions, starting with: EEEEEEEEEEEEEEEEEEEEEEE.EE.EFEEEEjava.sql.SQLException: org.apache.derby.jdbc.EmbeddedDriver is not registered with the JDBC driver manager at org.apache.derby.jdbc.EmbeddedSimpleDataSource.findDriver(EmbeddedSimpleDataSource.java:435) at org.apache.derby.jdbc.EmbeddedSimpleDataSource.getConnection(EmbeddedSimpleDataSource.java:406) at org.apache.derby.jdbc.EmbeddedSimpleDataSource.getConnection(EmbeddedSimpleDataSource.java:373) at org.apache.derbyTesting.junit.TestConfiguration.getConnection(TestConfiguration.java:626) at org.apache.derbyTesting.junit.TestConfiguration.getDefaultConnection(TestConfiguration.java:592) at org.apache.derbyTesting.junit.TestConfiguration.openDefaultConnection(TestConfiguration.java:566) at org.apache.derbyTesting.junit.BaseJDBCTestSetup.getConnection(BaseJDBCTestSetup.java:74) at org.apache.derbyTesting.functionTests.tests.jdbcapi.SURDataModelSetup.setUp(SURDataModelSetup.java:137) .... But I will open another issue to track that problem. > junit tests fail with permission access problems when run with j9 jvms > ---------------------------------------------------------------------- > > Key: DERBY-1785 > URL: http://issues.apache.org/jira/browse/DERBY-1785 > Project: Derby > Issue Type: Test > Components: Test, Regression Test Failure > Affects Versions: 10.2.1.6, 10.3.0.0 > Environment: using ibm's j9 jvm as available with wssd5.6 or wctme5.7 (jcl:Max or jcl:foundation configuration) > Reporter: Myrna van Lunteren > Assigned To: Myrna van Lunteren > Priority: Minor > Fix For: 10.2.2.0, 10.3.0.0 > > Attachments: DERBY-1785_102_20061007.diff, DERBY-1785_20061007.diff > > > The junit tests have been made to run with security manager. > Until now, using the org.apache.derbyTesting.functionTests.harness classes, there was exception logic that stopped the j9 jvms from running with security manager, but that's now changed for the junit tests. > For instance, the test store/bootAllTest.junit fails with the following error: > There was 1 error: > 1) testSettingBootAllPropertyWithHomePropertySet(org.apache.derbyTesting.functionTests.tests.store.BootAllTest)java.security.AccessControlException: Access denied (java.util.PropertyPermission framework read) > at java.security.AccessController.checkPermission(AccessController.java:74) > at java.lang.SecurityManager.checkPermission(SecurityManager.java:612) > at java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:366) > at java.lang.System.getProperty(System.java:319) > at java.lang.System.getProperty(System.java:301) > at org.apache.derbyTesting.functionTests.util.TestUtil$1.run(TestUtil.java:177) > at java.security.AccessController.doPrivileged(AccessController.java:147) > at org.apache.derbyTesting.functionTests.util.TestUtil.getFramework(TestUtil.java:174) > at org.apache.derbyTesting.functionTests.util.TestUtil.getDataSourcePrefix(TestUtil.java:391) > at org.apache.derbyTesting.functionTests.util.TestUtil.getSimpleDataSource(TestUtil.java:330) > at org.apache.derbyTesting.functionTests.util.TestUtil.getDataSource(TestUtil.java:324) > at org.apache.derbyTesting.functionTests.util.TestDataSourceFactory.getDataSource(TestDataSourceFactory.java:47) > at org.apache.derbyTesting.junit.TestConfiguration.openConnection(TestConfiguration.java:296) > at org.apache.derbyTesting.junit.BaseJDBCTestCase.openConnection(BaseJDBCTestCase.java:197) > at org.apache.derbyTesting.functionTests.tests.store.BootAllTest.setUp(BootAllTest.java:58) > at org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:76) -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira