harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-6475) [classlib][nio] - Selector.open() throw AccessControlException when SecurityManager is installed
Date Mon, 02 Aug 2010 03:40:16 GMT

    [ https://issues.apache.org/jira/browse/HARMONY-6475?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12894457#action_12894457
] 

Hudson commented on HARMONY-6475:
---------------------------------

Integrated in Harmony-1.5-head-linux-x86_64 #913 (See [http://hudson.zones.apache.org/hudson/job/Harmony-1.5-head-linux-x86_64/913/])
    Fix for HARMONY-6475: [classlib][nio] - Selector.open() throw AccessControlException when
SecurityManager is installed


> [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
>            Assignee: Regis Xu
>             Fix For: 5.0M15
>
>         Attachments: HARMONY-6475.diff
>
>
> 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