Return-Path: Delivered-To: apmail-db-derby-user-archive@www.apache.org Received: (qmail 8925 invoked from network); 8 Feb 2006 21:04:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 8 Feb 2006 21:04:20 -0000 Received: (qmail 38934 invoked by uid 500); 8 Feb 2006 21:04:08 -0000 Delivered-To: apmail-db-derby-user-archive@db.apache.org Received: (qmail 38900 invoked by uid 500); 8 Feb 2006 21:04:08 -0000 Mailing-List: contact derby-user-help@db.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Reply-To: "Derby Discussion" Delivered-To: mailing list derby-user@db.apache.org Received: (qmail 38889 invoked by uid 99); 8 Feb 2006 21:04:07 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Feb 2006 13:04:07 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=UNPARSEABLE_RELAY X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [192.18.98.43] (HELO brmea-mail-2.sun.com) (192.18.98.43) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Feb 2006 13:04:06 -0800 Received: from phys-d3-ha21sca-2 ([129.145.155.165]) by brmea-mail-2.sun.com (8.12.10/8.12.9) with ESMTP id k18L3j8u010445 for ; Wed, 8 Feb 2006 14:03:45 -0700 (MST) Received: from conversion-daemon.ha21sca-mail1.sfbay.sun.com by ha21sca-mail1.sfbay.sun.com (iPlanet Messaging Server 5.2 HotFix 1.24 (built Dec 19 2003)) id <0IUD00M01ZV533@ha21sca-mail1.sfbay.sun.com> (original mail from Richard.Hillegas@Sun.COM) for derby-user@db.apache.org; Wed, 08 Feb 2006 13:04:40 -0800 (PST) Received: from [129.150.113.58] (vpn-129-150-113-58.Holland.Sun.COM [129.150.113.58]) by ha21sca-mail1.sfbay.sun.com (iPlanet Messaging Server 5.2 HotFix 1.24 (built Dec 19 2003)) with ESMTP id <0IUD009SIZVNG5@ha21sca-mail1.sfbay.sun.com> for derby-user@db.apache.org; Wed, 08 Feb 2006 13:04:37 -0800 (PST) Date: Wed, 08 Feb 2006 13:03:40 -0800 From: Rick Hillegas Subject: SecurityManager question To: Derby Discussion Message-id: <43EA5CAC.4090409@sun.com> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7BIT X-Accept-Language: en-us, en User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N I am tracking down a problem with autoloading jdbc drivers when running from jar files under the Derby test harness on jdk1.6. Capsule summary: SUCCESS-1 The drivers correctly autoload (from the information in the jar file) when I run my test program standalone (without a SecurityManager) SUCCESS-2 The drivers also correctly autoload if I run the test under the Derby test harness but disable the SecurityManager FAILURE However, the drivers fail to autoload when I run my test program under the default Derby test harness (which sets up a SecurityManager) The vm silently swallows the failure. When I run these test cases with the the java -verbose flag, I see the following: o For the success cases, the autoloading of the driver is logged. o For the failure (Derby test harness) case, around the same place in the log, I see AccessControlException being loaded. This is never loaded in the success cases. So I seem to have some kind of SecurityManager issue here. But what? Later on in the failure case, I successfully load the driver using Class.forName(). What is different in the Derby harness security environment between autoload time and Class.forName() time? How can I instrument vm startup to tease open the swallowed AccessControlException? Would appreciate any advice you may have. Thanks, -Rick