harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Regis Xu (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-6475) [classlib][nio] - Selector.open() throw AccessControlException when SecurityManager is installed
Date Tue, 16 Mar 2010 08:04:27 GMT
[classlib][nio] - Selector.open() throw AccessControlException when SecurityManager is installed
------------------------------------------------------------------------------------------------

                 Key: HARMONY-6475
                 URL: https://issues.apache.org/jira/browse/HARMONY-6475
             Project: Harmony
          Issue Type: Bug
          Components: Classlib
    Affects Versions: 5.0M13
            Reporter: Regis Xu


test:
        SecurityManager manager = new SecurityManager();
        System.setSecurityManager(manager);
        Selector selector = Selector.open();

got error:

Uncaught exception in main:
java.lang.ExceptionInInitializerError
	at java.lang.ClassLoader.getResources(ClassLoader.java:236)
	at java.nio.channels.spi.SelectorProvider.loadProviderByJar(SelectorProvider.java:120)
	at java.nio.channels.spi.SelectorProvider.provider(SelectorProvider.java:93)
	at java.nio.channels.Selector.open(Selector.java:48)
	at Test.main(Test.java:138)
Caused by: java.security.AccessControlException: Permission check failed (java.util.PropertyPermission
vm.boot.class.path read)
	at java.security.AccessControlContext.checkPermission(AccessControlContext.java:132)
	at java.security.AccessController.checkPermission(AccessController.java:194)
	at java.lang.SecurityManager.checkPermission(SecurityManager.java:862)
	at java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:450)
	at java.lang.System.getProperty(System.java:159)
	at java.lang.ClassLoader$BootstrapLoader.<clinit>(ClassLoader.java:758)
	at java.lang.ClassLoader.getResources(ClassLoader.java:236)
	... 4 more

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message