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
-
Lately when I sync certain albums to my iPhone, the tracks are duplicated one behind the other so that I have to listen to each song twice. Why does this happen and how can it be fixed?
Very strange behavior. Don't entirely give up on the "Manually Added Items" category ... I have seen things magically appear there even after I've checked and seen nothing there. I think things got real quirky when Apple released iCloud ... I don't remember extra copies of purchases lingering on my iPhone once transferred to my library before that. Sure, if I bought an album directly to my iPhone it would stay on there even after I sync to my library, but if I deleted the album from the iPhone it stayed deleted. Now it seems that there are some phantom copies that come and go with no explanation.
jcburbank wrote:
I've tried deleting the album from both the phone and from iTunes and then redownloading them to both and the same problem occurs.
If you're re-downloading an album to iTunes and your iPhone, that may perpetuate the problem. What happens if you completely delete every copy of the album, then just download to your iTunes library and then sync the album to your iPhone from your library? That should put only one copy on your iPhone.
A few other things to try:
1- Completely sign out of your Apple account on your iPhone, then re-sync to iTunes, then sign into your account on your iPhone again. Maybe throw in a Reset or at least a power OFF/ON somewhere in the middle.
2- Go to Settings/ General/ Usage, then select Music and when you see All Music, swipe your finger across it and tap the Delete button. Before doing anything else, Reset your iPhone. This does not actually delete your music, but seems to clear up some cobwebs left behind (people use this technique to reduce "Other" that swells up over time). -
every time that i sync my iphone with a cord to my imac some large portion of my music is placed in the cloud so that i must down load it from the cloud. this includes music that i have purchased on itunes and other music. it seems random.
why does this happen? is it a setting? i want to stop it. and music that wIt was gift back in September. You can follow the instructions in the link below to remove them:
Remove iTunes gift album "Songs of Innocence" from your iTunes music library and purchases - Apple Support -
google is my default on the home page. But when i ask for google or simply open firefox, i sometimes get google beta or google security (or whatever its name is) instead of google classic. I just want google classic. How can i set it as my default. (I have a desk top computer, use firefox, and this never happens.)
Why Apple can't undo its mistake?
Whose mistake? The source of the problem:
I was required to enter my recovery key. Now, there begins that huge flaw. I've forgotten it (I know it was my responsibility to remember it).
If you had just taken the simple steps of storing your recovery key as Apple tells you to when you set it up, none of this would've happened.
As it clearly states in the FAQ on 2-step verification: http://support.apple.com/kb/HT5570
After you turn it on, there will be no way for anyone to access and manage your account at My Apple ID other than by using your password, verification codes sent your trusted devices, or your Recovery Key. You must be responsible for:
Remembering your password.
Keeping your trusted devices physically secure.
Keeping your Recovery Key in a safe place.
If you lose access to two of these three items at the same time, you could be locked out of your Apple ID account permanently.
In addition, with two-step verification turned on, only you can reset your password, manage your trusted devices, or create a new recovery key.
Apple Support can help you with other aspects of your service, but they will not be able to update or recover these three things on your behalf.
If you aren't responsible enough to do that, you should not have turned the optional security feature on.
This is your fault, not Apple's. -
I keep finding words on web pages (including my own) written in green and doubly underlined (described as 'Text enhance') that provide a hyperlink to "Groupon". Why does this happen and how can I stop it?
I dont want to "OPT-OUT"....i want it gone permanently!!
-
When I try to reorder different pages it just takes all the pages within the document and turns them into a stack! Why is this happening and how can I oder pages as the update is meant to let me?
Any Help?I know the update has only been out a while but if anyone has an idea why it is doing this, please let me know!But you are telling me something I already know.
Be precise.
It is not Pages '09 that is broken.
I am back in Mavericks and testing Pages 5.2.
There are improvements, we shall see how useful, but in less than a minute I have already discovered bugs.
Peter -
When I am using Firefox I keep getting unrequested Windows opening with full page advertisements. Why is this happening and how can I stop it? This is particularly aggravating when the new page has music or a voice message that intrudes even when I am not looking at the page.
Do a malware check with some malware scanning programs on the Windows computer.<br />
You need to scan with all programs because each program detects different malware.<br />
Make sure that you update each program to get the latest version of their databases before doing a scan.<br /><br />
*http://www.malwarebytes.org/mbam.php - Malwarebytes' Anti-Malware
*http://www.superantispyware.com/ - SuperAntispyware
*http://www.microsoft.com/windows/products/winfamily/defender/default.mspx - Windows Defender: Home Page
*http://www.safer-networking.org/en/index.html - Spybot Search & Destroy
*http://www.lavasoft.com/products/ad_aware_free.php - Ad-Aware Free
See also:
*"Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked -
I rented movies on my iPad, they all downloaded, but when I click 'play' it says 'The requested URL was not found on this server'. What does it mean and how can I restore my rented movies?
See this previous discussion:
https://discussions.apple.com/message/16962474#16962474 -
My iPod doesn't sync it keeps coming up with the message "The iPod 'iPod Nano' cannot be synced. An unknown error occurred (13019)." What does this mean and how can I fix it?
I am getting the same error message. Have you figured it out?
-
My photos are syncing from my iPhone to the iCloud PhotoStream and to our iPad, but they are no longer syncing to our home computer (Microsoft operating system, not Apple). Why would this happen and how can I get it resolved? I have since tried to remove and reinstall the iCloud application in my computer's control panel. I have verified that I am using the latest Apple operating system and the latest iTunes. I have reset my photo stream. Not sure what else to try... I was also having an issue with my calendar where it would sync from my computer to my iPhone but not vice versa. Somehow in all the resetting that's resolved, but the photo issue is not. Again - photos are going into the photostream, but not wirelessly being put into the file on my computer.
To change the iCloud ID on your device you have to go to Settings>iCloud, tap Delete Account, provide the password to turn off Find My iPhone when prompted, then sign back in with the ID you wish to use.
-
I have downloaded icloud to my pc, however when i go to sign in to Apple through icloud, i get an error message saying my apple ID is valid but is not an icloud account. What does this mean and how can i update my account so i can access icloud?!
To use iCloud, you must first set it up with your Apple ID on a device with iOS 5 or a Mac with OS X Lion.
-
My boyfriend has lost all of his contacts on his phone after downloading the new iphone softwear. why would this happen and how can he get it all back
You don't have to post the same question at one minute intervals. Somebody will answer it, but perhaps not in 60 seconds.
-
I am trying to finalize a movie project and I get an "error in user parameter list" message. What does that mean, and how can I fix it?
what movie editing software are you using?
-
When I plug my iPod in my computer, "This iPod cannot be used because the Apple Mobile Device is not started" message pops up. What does this mean and how can I fix it?
Hello di_gitrdone,
Start with this article describing how to restart this service.
http://support.apple.com/kb/ts1567
B-rock -
When I try to sync my ipod it says it cannot be synced because "a duplicate file name was specified". What does that mean and how can I fix it??
I'd start with the following document with that one:
iPhone, iPad, iPod touch: How to restart the Apple Mobile Device Service (AMDS) on Windows
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