Return-Path: Delivered-To: apmail-harmony-dev-archive@www.apache.org Received: (qmail 97078 invoked from network); 24 Jan 2007 12:19:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 24 Jan 2007 12:19:42 -0000 Received: (qmail 22477 invoked by uid 500); 24 Jan 2007 12:19:45 -0000 Delivered-To: apmail-harmony-dev-archive@harmony.apache.org Received: (qmail 22455 invoked by uid 500); 24 Jan 2007 12:19:45 -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 22446 invoked by uid 99); 24 Jan 2007 12:19:45 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Jan 2007 04:19:45 -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.184 as permitted sender) Received: from [64.233.182.184] (HELO nf-out-0910.google.com) (64.233.182.184) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Jan 2007 04:19:36 -0800 Received: by nf-out-0910.google.com with SMTP id a4so567007nfc for ; Wed, 24 Jan 2007 04:19:15 -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=YocDYwx+Zkx6VNQms4hGskNoBpZLXFC5uhuezPjtFoRVrsh1knAD6e9UpN5M99Q0T318bjsbWlYErGIBR/M0a1Uu7MrjBb4jObuyNfsQ5D5vU7Vmp2Kn2FKXYua7Ky5ur/U8MD3xoU+V2+A8xatL2pN+6+WusfgkkFL+XXBqy1c= Received: by 10.49.55.13 with SMTP id h13mr2724757nfk.1169641147625; Wed, 24 Jan 2007 04:19:07 -0800 (PST) Received: by 10.48.14.2 with HTTP; Wed, 24 Jan 2007 04:19:02 -0800 (PST) Message-ID: <6e47b64f0701240419j269dadbbje51774cb9d2fe699@mail.gmail.com> Date: Wed, 24 Jan 2007 18:19:02 +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_6189_8949175.1169641142534" References: <6e47b64f0701230151m3567640t33edd2362de94ec5@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_6189_8949175.1169641142534 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. See HARMONY-3049 -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. > > > > > -- Stepan Mishura Intel Enterprise Solutions Software Division ------=_Part_6189_8949175.1169641142534--