This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths 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 Head First Android 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-

 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: How to ShutDown an executor service under Security Manager?
 
It's not a secret anymore!