harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stepan Mishura" <stepan.mish...@gmail.com>
Subject Re: [VM] Not possible to set custom security manager via system property
Date Wed, 24 Jan 2007 06:22:16 GMT
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.<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.
> >
> > Thanks,
> > Stepan Mishura
> > Intel Enterprise Solutions Software Division
> >
> >
>



-- 
Stepan Mishura
Intel Enterprise Solutions Software Division

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