Return-Path: Delivered-To: apmail-harmony-dev-archive@www.apache.org Received: (qmail 65888 invoked from network); 24 Jan 2007 06:22:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 24 Jan 2007 06:22:44 -0000 Received: (qmail 18714 invoked by uid 500); 24 Jan 2007 06:22:47 -0000 Delivered-To: apmail-harmony-dev-archive@harmony.apache.org Received: (qmail 18674 invoked by uid 500); 24 Jan 2007 06:22:47 -0000 Mailing-List: contact dev-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list dev@harmony.apache.org Received: (qmail 18665 invoked by uid 99); 24 Jan 2007 06:22:47 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Jan 2007 22:22:47 -0800 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of stepan.mishura@gmail.com designates 64.233.182.185 as permitted sender) Received: from [64.233.182.185] (HELO nf-out-0910.google.com) (64.233.182.185) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Jan 2007 22:22:38 -0800 Received: by nf-out-0910.google.com with SMTP id a4so490434nfc for ; Tue, 23 Jan 2007 22:22:17 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=ZpnkHYFcp8O85bQ3AbeUUCXDvDTzbSDpgBGpLbZUywKLUDpvkzGhw6aaDOomTh09abtzWX3qHGb/ZDIGXo2mSp1pGyVx0qkGfNR/D/63jjwUgqqE65S804Lx69Se0fv6es3XCNm6M2MXVNjtB2NCFFhf7bAE5GadJtu8soBS224= Received: by 10.49.57.12 with SMTP id j12mr2359689nfk.1169619737063; Tue, 23 Jan 2007 22:22:17 -0800 (PST) Received: by 10.48.14.2 with HTTP; Tue, 23 Jan 2007 22:22:16 -0800 (PST) Message-ID: <6e47b64f0701232222k27837bfel2966ab5c642e51aa@mail.gmail.com> Date: Wed, 24 Jan 2007 12:22:16 +0600 From: "Stepan Mishura" To: dev@harmony.apache.org Subject: Re: [VM] Not possible to set custom security manager via system property In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_937_7602937.1169619736996" References: <6e47b64f0701230151m3567640t33edd2362de94ec5@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_937_7602937.1169619736996 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline On 1/23/07, Alexey Varlamov wrote: > > Stepan, > > Apparently this is kernel classes responsibility to initialize > SecurityManager. And it is hard to believe, but DRLVM just missed this > functionality. Could you please create a JIRA with regression test? > I'm going to fix this in drlvm now. Hm, 2 JIRAs - one for DRLVM and another for IBM and a regression test for ... classlib? -Stepan. -- > Alexey > > 2007/1/23, Stepan Mishura : > > Hi, > > > > I'm not sure which JIRA's component to choose for the issue so I decided > to > > post it here. > > > > The following test behaives on RI as expected but fails in DRL VM and > IBM > > VME: > > > > import java.security.Permission; > > public class MySecurityManager extends SecurityManager { > > public void checkPermission(Permission perm) { > > } > > } > > > > public class test { > > public static void main(String[] av) throws Exception { > > System.out.println(System.getSecurityManager > > ().getClass().getName()); > > } > > } > > =============DRL VM output========================= > > $java -Djava.security.manager=MySecurityManager test > > Uncaught exception in main: > > java.lang.NullPointerException > > at test.main(test.java:4) > > > > =============IBM VME output========================= > > $java -Djava.security.manager=MySecurityManager test > > Exception in thread "main" java/lang/InternalError: Could not create > > specified security manager: MySecurityManager > > at java/lang/System.installSecurityManager (System.java:152) > > at java/lang/System.completeInitialization (System.java:117) > > at java/lang/Thread. (Thread.java:129) > > JVMJ9VM015W Initialization error for library jclclear_23(14): > JVMJ9VM009E > > J9VMDllMain failed > > HMYEXEL062E Internal VM error: Failed to create Java VM > > FAILED to invoke JVM. > > > > Thanks, > > Stepan Mishura > > Intel Enterprise Solutions Software Division > > > > > -- Stepan Mishura Intel Enterprise Solutions Software Division ------=_Part_937_7602937.1169619736996--