[
https://issues.apache.org/jira/browse/AMQ-3047?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Timothy Bish closed AMQ-3047.
-----------------------------
Resolution: Won't Fix
> addShutdownHook not executed in a AccessController.doPrivileged throws
> SecurityException if a security manager is enabled
> -------------------------------------------------------------------------------------------------------------------------
>
> Key: AMQ-3047
> URL: https://issues.apache.org/jira/browse/AMQ-3047
> Project: ActiveMQ
> Issue Type: Bug
> Components: Broker
> Affects Versions: 5.4.1
> Reporter: Trejkaz
>
> The BrokerService has code to create a Thread for use as a shutdown hook.
> Both creating a thread and registering it with a shutdown hook can throw
> SecurityException if the context is not secure. ActiveMQ does not execute
> either call inside a doPrivileged() block, so even though we specifically
> grant these permissions to ActiveMQ, the operation fails.
> Adding the doPrivileged() block around Thread constructors and calls to
> addShutdownHook() would fix the issue.
--
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