harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stepan Mishura" <stepan.mish...@gmail.com>
Subject [VM] Not possible to set custom security manager via system property
Date Tue, 23 Jan 2007 09:51:47 GMT

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

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 {
=============DRL VM output=========================
$java -Djava.security.manager=MySecurityManager test
Uncaught exception in main:
        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.<init> (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

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message