File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP 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?