Return-Path: Delivered-To: apmail-harmony-dev-archive@www.apache.org Received: (qmail 33617 invoked from network); 23 Jan 2007 12:11:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 23 Jan 2007 12:11:24 -0000 Received: (qmail 15125 invoked by uid 500); 23 Jan 2007 12:11:27 -0000 Delivered-To: apmail-harmony-dev-archive@harmony.apache.org Received: (qmail 15098 invoked by uid 500); 23 Jan 2007 12:11:27 -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 15087 invoked by uid 99); 23 Jan 2007 12:11:27 -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 04:11:27 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of alexey.v.varlamov@gmail.com designates 209.85.132.243 as permitted sender) Received: from [209.85.132.243] (HELO an-out-0708.google.com) (209.85.132.243) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Jan 2007 04:11:18 -0800 Received: by an-out-0708.google.com with SMTP id b2so560592ana for ; Tue, 23 Jan 2007 04:10:58 -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:content-transfer-encoding:content-disposition:references; b=RsSmZ2115tbeDOOp+I9P8r3OWkm9GWVV/5WbbLnQXfIs49iSx3IUGUFgrY7SA0r3V51AbtnwZj0/b0Z5RIMKdSmNhbjhleYnE9AijUA9Rb4IrctwnRhJ+7WsZwrQ21ZvJAwW1g+ve6w7UTY5UUOC6N7CDvemessMMWm4jgA7ymM= Received: by 10.65.219.13 with SMTP id w13mr9559665qbq.1169554257660; Tue, 23 Jan 2007 04:10:57 -0800 (PST) Received: by 10.65.121.17 with HTTP; Tue, 23 Jan 2007 04:10:57 -0800 (PST) Message-ID: Date: Tue, 23 Jan 2007 18:10:57 +0600 From: "Alexey Varlamov" To: dev@harmony.apache.org Subject: Re: [VM] Not possible to set custom security manager via system property In-Reply-To: <6e47b64f0701230151m3567640t33edd2362de94ec5@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <6e47b64f0701230151m3567640t33edd2362de94ec5@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org 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. -- 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 > >