This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Java in General and the fly likes How to ShutDown an executor service under Security Manager? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "How to ShutDown an executor service under Security Manager?" Watch "How to ShutDown an executor service under Security Manager?" New topic
Author

How to ShutDown an executor service under Security Manager?

Raihan Jamal
Ranch Hand

Joined: Mar 23, 2010
Posts: 86
I have my Batch Application Program, in which I am using ThreadPoolExecutor in my Batch Application Program. So as soon as it hits the-



line in my Batch Application program, I always get this below error in my Batch Application Program. And I am not able to ShutDown my own Executor Service. Can anyone suggest me how should I overcome this error.

. Below is the full stacktrace



How can I shut down my own ExecutorService under SecurityManager.

I am using Windows7 and Java6-IBM(java6-ibm-sr4ifx3-2009-06-22).

I am trying to shut down like this-

 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How to ShutDown an executor service under Security Manager?
 
Similar Threads
Java 2 Security Access denied Error
Java 2 Security Problems
java.lang.RuntimePermission accessDec on Jakarat Struts (delpoyed in JSDKEE1.3)
RMI Server Connection Problem on XP prof
java.security.AccessControlException