[ 
https://issues.apache.org/jira/browse/AMQ-3048?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13430716#comment-13430716
 ] 

Trejkaz commented on AMQ-3048:
------------------------------

What's the rationale behind closing this? Is there an alternative fix?
                
> findMBeanServer not executed in a AccessController.doPrivileged throws 
> SecurityException if a security manager is enabled
> -------------------------------------------------------------------------------------------------------------------------
>
>                 Key: AMQ-3048
>                 URL: https://issues.apache.org/jira/browse/AMQ-3048
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Broker
>    Affects Versions: 5.4.1
>            Reporter: Trejkaz
>
> The broker's ManagementContext makes a call to findMBeanServer() which fails 
> in secure environments even if ActiveMQ has the permissions required to find 
> an MBean server, because a doPrivileged() block has not been wrapped around 
> the call.
> The code should either use a doPrivileged() block (if the JMX server is 
> important), or catch the SecurityException and not have a JMX server, if it 
> doesn't want one.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to