RejectedExecutionException - why does it apear and how can it be avoided ?

Hello,
I sometimes get a RejectedExecutionException e.g. if I start a Windows Program in a separate Thread using a Windows start command ( " .../progname.exe ") for asynchronous execution.
( The windows program to be started is the VideoLan Media Player invoked via C:\Tools\VideoLAN\VLC\vlc.exe - operating system is Windows XP SP2 with all updates and fixes).
It seems, that this Exception does not do any harm - the Java Program runs as expected with no other errors and also VideoLan runs correctly.
But anyway, I would like to understand, what causes this Exception to be thrown.
There is no reference to a statement in my program in the error message stack printed by this exception.
I therefore have no indication, why this "Thread.run" causes the exception.
I just can locate the statement in my program where the thread is started.
This is the message stack:
java.util.concurrent.RejectedExecutionException
     at java.util.concurrent.ThreadPoolExecutor$AbortPolicy.rejectedExecution(ThreadPoolExecutor.java:1759)
     at java.util.concurrent.ThreadPoolExecutor.reject(ThreadPoolExecutor.java:767)
     at java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:658)
     at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:92)
     at sun.awt.shell.Win32ShellFolder2$ComTask.execute(Win32ShellFolder2.java:1214)
     at sun.awt.shell.Win32ShellFolder2$FolderDisposer.dispose(Win32ShellFolder2.java:170)
     at sun.java2d.Disposer.run(Disposer.java:128)
     at java.lang.Thread.run(Thread.java:619)
It would be nice, if anybody has an explanation.
Many thanks in advance
Wolfgang

Read about rejected tasks in the javadoc for ThreadPoolExecutor.
Kaj

Similar Messages

Maybe you are looking for

  • Access - How to create Mail Address only list?

    Printing envelopes from mail lists - via Microsoft Excel? Access - How to create Mail Address Only list? Bearing my "new boy" status, step by step instruction would be appreciated.

  • NEWBIE JSP Deployment Problems

    I know this is will probly bore to some of you but I'm trying to evalutate this software. I created a test JSP via the wizard and ran it in Jdev ok. Deployed and Copied the files to the Apache web server provided with 8.1.7. Ran on browser and got th

  • HT1338 Says I don´t have java but I do

    My Mac is telling me I don´t have Java and also my online bank who needs Java sais I don´t have it but when I check for updates on my Mac it´s all updated. And whey I go to the Java settings it sais I have Java. What can I do?

  • BSET-HWBAS Tax Base Amount is wrong / double

    Dear Experts, We have a scenario where in IDOC comes from External system to SAP for posting. We are using BAPI_ACC_DOCUMENT_POST for doing the postings. I have nearly passed all the necessary parameters but still the Tax base amount in BSET is wrong

  • Premiere Pro CC crashes when browsing/importing video files.

    I've got a trial version of Premiere Pro CC installed today, running on a late 2012 iMac. No problems during splash screen or project startup, but when I try browsing for a video file in the import box or attempt to drag and drop files from my local