Thread pool throws reject exceptions even though the queue is not full

Hi. I am using org.springframework.scheduling.concurrent.ThreadPo olTaskExecutor which is based on java
java.util.concurrent.ThreadPoolExecutor
with a enviornment under load.
I see on some cases, that this thread pool throws tasks with reject exception
even though the queue size is 0.
According to the documentation, this thread pool should increase the pool size to core size and then wait untill all queue is full to create new threads.
this is not what happends. for some reason the queue is not filled but exceptions are thrown.
Any ideas why this can happen?

This is the stack trace:
taskExecutorStats-1 2010-04-27 11:01:43,324 ERROR [com.expand.expandview.infrastructure.task_executor] TaskExecutorController: RejectedExecutionException exception in thread: 18790970, failed on thread pool: [email protected]544f07, to run logic: com.expand.expandview.infrastructure.logics.DispatchLogicsProviderLogic
org.springframework.core.task.TaskRejectedException: Executor [java.util.concurrent.ThreadPoolExecutor@dd9007] did not accept task: com.expand.expandview.infrastructure.task_executor.TaskExecuterController$1@141f728; nested exception is java.util.concurrent.RejectedExecutionException
     at org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor.execute(ThreadPoolTaskExecutor.java:305)
     at com.expand.expandview.infrastructure.task_executor.TaskExecuterController.operate(TaskExecuterController.java:68)
     at com.expand.expandview.infrastructure.proxies.DataProxy.callLogic(DataProxy.java:131)
     at com.expand.expandview.infrastructure.proxies.DataProxy.operate(DataProxy.java:109)
     at com.expand.expandview.infrastructure.logics.AbstractLogic.operate(AbstractLogic.java:455)
     at com.expand.expandview.server.app.logics.stats.StatsPersisterSingleChunkLogic.persistSlots(StatsPersisterSingleChunkLogic.java:362)
     at com.expand.expandview.server.app.logics.stats.StatsPersisterSingleChunkLogic.doLogic(StatsPersisterSingleChunkLogic.java:132)
     at com.expand.expandview.infrastructure.logics.AbstractLogic.execute(AbstractLogic.java:98)
     at com.expand.expandview.server.app.logics.ApplicationLogic.execute(ApplicationLogic.java:79)
     at com.expand.expandview.infrastructure.task_executor.TaskExecuterControllerDirect.operate(TaskExecuterControllerDirect.java:33)
     at com.expand.expandview.infrastructure.proxies.LogicProxy.service(LogicProxy.java:62)
     at com.expand.expandview.infrastructure.logics.AbstractLogic.service(AbstractLogic.java:477)
     at com.expand.expandview.server.app.logics.stats.StatsPersisterLogic.persist(StatsPersisterLogic.java:48)
     at com.expand.expandview.server.app.logics.stats.StatsPersisterLogic.doLogic(StatsPersisterLogic.java:19)
     at com.expand.expandview.infrastructure.logics.AbstractLogic.execute(AbstractLogic.java:98)
     at com.expand.expandview.server.app.logics.ApplicationLogic.execute(ApplicationLogic.java:79)
     at com.expand.expandview.infrastructure.task_executor.TaskExecuterController$1.run(TaskExecuterController.java:80)
     at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
     at java.lang.Thread.run(Thread.java:619)
Caused by: java.util.concurrent.RejectedExecutionException
     at java.util.concurrent.ThreadPoolExecutor$AbortPolicy.rejectedExecution(ThreadPoolExecutor.java:1760)
     at java.util.concurrent.ThreadPoolExecutor.reject(ThreadPoolExecutor.java:767)
     at java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:658)
     at org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor.execute(ThreadPoolTaskExecutor.java:302)
     ... 19 more

Similar Messages

  • The genius bar sold me a LaCie 500 GB EHD today but I can't get it to work properly.  Can I schedule another genius bar appt. to help me with this issue even though the EHD is not an Apple product?

    The genius bar sold me a LaCie 500 GB EHD today but I can't get it to work properly.  Can I schedule another genius bar appt. to help me with this issue even though the EHD is not an Apple product?

    Yes, if you purchased it in an Apple store, they should be able to assist you.  Bring your MBP with you as well as the Drive.
    Ciao.

  • Skype is auto-answering even though the box is not...

    I have a problem. Skype on my Android phone (Samsung Galaxy S3) is automatically answering calls, even though the box is unchecked. Sometimes I don't even realise someone has called me, but my phone has already answered, so they can hear everything I am saying!
    My Android Skype version is 4.6.0.42007

    Very scary and outright dangerous. Wouldn't surprise me if a bug like this could have arosen from faulty answering button logic (i.e. the phone/framework thinks the green "answer" button is being pressed all the time though it is not).
    In either case, this is just more icing on the cake which is a client broken beyond all repair. Android Skype just needs to be scrapped and rebuilt from the ground up if they are serious about supporting the platform any longer. As bad as things are now, I'd respect them far more if they just slam dunk announced that they have stopped supporting Android and are focusing on other platforms.

  • HT4060 Even though the iPad is not charging, will it still use the USB for operating power?

    I was wondering if there is enough power for operating (to conserve battery), even though there is not enough power for charging?

    The quickest way (and really the only way) to charge your iPad is with the included 10W USB Power Adapter. iPad will also charge, although more slowly, when attached to a computer with a high-power USB port (many recent Mac computers) or with an iPhone Power Adapter (5W). When attached to a computer via a standard USB port (most PCs or older Mac computers) iPad will charge very slowly (but iPad indicates not charging). Make sure your computer is on while charging iPad via USB. If iPad is connected to a computer that’s turned off or is in sleep or standby mode, the iPad battery will continue to drain.
    Apple recommends that once a month you let the iPad fully discharge & then recharge to 100%.
    How to Calibrate Your Mac, iPhone, or iPad Battery
    http://www.macblend.com/how-to-calibrate-your-mac-iphone-or-ipad-battery/
    At this link http://www.tomshardware.com/reviews/galaxy-tab-android-tablet,3014-11.html , tests show that the iPad 2 battery (25 watt-hours) will charge to 90% in 3 hours 1 minute. It will charge to 100% in 4 hours 2 minutes. The new iPad has a larger capacity battery (42 watt-hours), so using the 10W charger will obviously take longer. If you are using your iPad while charging, it will take even longer. It's best to turn your new iPad OFF and charge over night. Also look at The iPad's charging challenge explained http://www.macworld.com/article/1150356/ipadcharging.html
    Also, if you have a 3rd generation iPad, look at
    Apple: iPad Battery Nothing to Get Charged Up About
    http://allthingsd.com/20120327/apple-ipad-battery-nothing-to-get-charged-up-abou t/
    Apple Explains New iPad's Continued Charging Beyond 100% Battery Level
    http://www.macrumors.com/2012/03/27/apple-explains-new-ipads-continued-charging- beyond-100-battery-level/
    New iPad Takes Much Longer to Charge Than iPad 2
    http://www.iphonehacks.com/2012/03/new-ipad-takes-much-longer-to-charge-than-ipa d-2.html
    Apple Batteries - iPad http://www.apple.com/batteries/ipad.html
    Extend iPad Battery Life (Look at pjl123 comment)
    https://discussions.apple.com/thread/3921324?tstart=30
    New iPad Slow to Recharge, Barely Charges During Use
    http://www.pcworld.com/article/252326/new_ipad_slow_to_recharge_barely_charges_d uring_use.html
    Tips About Charging for New iPad 3
    http://goodscool-electronics.blogspot.com/2012/04/tips-about-charging-for-new-ip ad-3.html
    Prolong battery lifespan for iPad / iPad 2 / iPad 3: charging tips
    http://thehowto.wikidot.com/prolong-battery-lifespan-for-ipad
    In rare instances when using the Camera Connection Kit, you may notice that iPad does not charge after using the Camera Connection Kit. Disconnecting and reconnecting the iPad from the charger will resolve this issue.
     Cheers, Tom

  • Hi, I have a MacBook and all of a sudden my screen it froze so I turn it off yes. Now, I cannot turn on my computer even though the battery,it is full charged. Can you please give me your opinions of why this is please? Thank you so very much

    Can you please, anyone tell me your opinion of why all of a sudden my two yr old MacBook was wrking lovely but now I cannot turn it on, even though my battery is fully charged,
    Thank you,
    Isabella

    If Niel's suggestions don't work then also try:
    Intel-based Macs: Resetting the System Management Controller (SMC)
    Resetting your Mac's PRAM and NVRAM

  • Why are photoshop icons showing up as color bars in AE6 even though the files are not missing?

    I have imported the file numerous times, they actually show up in After Effects. If I render it renders fine, however the icons next to the photoshop files show up as color bars.
    Can anyone hep me figure this out?

    Thanks for replying...  Yes everything works fine but the project panel icons and layer icons appear as color bars.  Weird! I'm using CS6 and I'm on a MAC PRO OS X 10.8.5.  I attached a screen grab

  • My phone is stuck in headphone mode even though the headphones are not attached to the phone.  How do I fix this?

    I am trying to raise the volume on my phone, but it is saying that the headphones are attached when they are not attached.  How do I fix this?

    I tried everything there was. I tried to plug and unplug, I tried to clean it and dry it, and I really didn't want to put my phone in a bag of rice for 12 or 24 hours because I wasn't very patient. So what I did was; I put my phone on headphone mode and put it on airplane mode, then I left it there for 5 minutes and turned airplane mode off and it was working!!!! Hope this helped.

  • TS1702 I was charged for a montly subscription even though the magazine does not have an issue this month.  What is up?

    I have Food Network Magazine set up as a monthly recurring subscription and was charged for the August issue.  Only problem is that the last issue was a July/August issue so there is not an issue for August.  Why was I still charged?

    You can contact support for more details of the developer of the app and ask.
    https://expresslane.apple.com

  • Single word search - Firefox tries first DNS looup even though the word does not look like a valid URL (browser.fixup... is disabled).

    When I enter a correct domain name in the location bar, it is resolved without any problems ("domain.com"). When I enter multiple words, not constituting a valid domain ("some domain"), it is automatically searched in my preferred search engine. If I enter a single word ("domain"), which is _not_ a valid domain, Firefox still attempts to first resolve it (which takes about 15 seconds).
    Is there a way to disable or fix this behavior?
    browser.fixup.alternate.enabled;false
    browser.safebrowsing.remoteLookups;false
    keyword.URL;http://www.google.com/search?ie=UTF-8&oe=UTF-8&q=

    It maybe better to use a (one letter) keyword bookmark if you want to do searches via the location bar. It is always possible that you want to access a local site without a TLD appended and in such cases you need to do a DNS look up.
    See http://kb.mozillazine.org/Using_keyword_searches

  • My iPhone 5 only plays music threw headphones even though the speaker is not broken.

    How can I fix my problem?

    See Acoustic-speaker/microphone/receiver
    Here  >  http://support.apple.com/kb/TS2802

  • Has anybody experienced that the water indicator has been damaged even though the phone has been in contact with any fluids?

    My 6months old Iphone 4S started to turn itself of or freeze before shutting down about a month ago.
    I've been told it's the top water indicator that is broken and that the phone has been in touch with fluids-which it really hasn't!!
    Has anybody else experienced that the water indicator has been damaged even though the phone has not been in contact with fluids?

    Hi,
    I'm going to contact you via private message to get more contact info and case number.
    regards,
    steve

  • TS3218 my 6th gen nano plays the same song over and over even though the repeat is off. can anyone help me with this problem?

    my 6th generation nano plays the same song over and over even though the repeat is not on.

    It sounds like the repeat setting has been enabled. See page 21 of your iPod's User Guide for instructions on turning it off.
    http://manuals.info.apple.com/en_US/iPod_nano_6thgen_User_Guide.pdf
    B-rock

  • Email rejected by size even though the attachment is under the limit

    External emails coming in are being rejected with attachments over 6 megabytes even though the size limit is set to 10 megabytes.

    Hi,
    I would like to clarify the following things for troubleshooting:
    1. Please check if other users in your organization can receive messages including 6 megabytes attachments from external.
    2. There are some types of message size limits and several scope of limits. Please check the message size limits and attachment size limits in your organization, connector, server and user.
    For more information, here is a helpful thread for your reference.
    http://technet.microsoft.com/en-us/library/bb124345(v=exchg.141).aspx
    Hope it helps.
    Best regards,
    Amy Wang
    TechNet Community Support

  • I turned on My MacBook Pro, And there is no picture on the screen, Even though the keys have lite up as if the laptop is running perfectly, All except my blank screen ??

    Any one help .... av tried the pram thing ??
    took the battery out etc etc ??? am at a loss..

    I agree Thedave413..... Just this aint never happened to me before you no .... Press the power button.. , the macbook pro makes the normal sound.... But the screen doesnt go blue, Or it doesnt do anything even though the keys soon light up as if the macbooks running perfectly, Al except my screen.. which is completely blank ???
    Can anyone help at all with some good advice ???
    As a trip to the genius bar is a 2 bus journey away from were I live....Good lord ....Oooooffftttssss...

  • How do I tell Apple to fix their software like apps that play sound even though the sound is turned off and not being able to disable features you hate like game center

    Apple is suppose to be the pinnacle of usability and, yet, I want to throw my new IPhone 4s as far as I can and watch is smash into a million pieces on concrete. Seriously, I've already got three things that irritate the **** out of me. First, there are Apple apps that insist on playing sound even though the sound is turned off. If I flick a switch to turn the sound off, I want the sound off!!!! Second, if I do not want a totally unnecessary feature like Game Center, I should be able to disable it. I completed most of the Angry Bird levels with 2 or 3 stars and now I have to start over from square one. Maybe, this happened when I upgraded to the 4s but it sure seemed to happen when I joined Game Center. Tomorrow, I am going to reset my 4s to factory defaults to try to get rid of my Game Center account. I don't want Game Center! I do need Game Center! I hate Game Center! Finally, I had an alarm go off to wake me up and there was a Snooze button but no button to turn the alarm off. I flicked the slider to access the main screen expecting to see something to turn the alarm off but there was nothing. The alarm just kept alarming. I had to warm boot my IPhone to shut the alarm off! Really, Apple!!!!

    The sound is turned off. Only, some Apple apps like YouTube and Siri make sound when the sound is turned off. It is very embarrassing when this happens at work. My question was how do I tell Apple to fix this?
    Turning off game center does not work. The games just prompt me to sign in when they are started.I have tried everything I can find online to stop this behavior. It is annoying and should not happen. My question was how do I tell Apple to fix this?
    The alarm went off. There was a green thing that looked like a button but pressing it did nothing. There was a red button that said snooze. I did not want to snooze. I wanted to turn the alarm off. I slid the bar to unlock the phone and there were no running apps with a button to press. The alarm just keep running. I have not had this problem since it first occurred. The alarm now shuts off when I just unlock the phone. It may have happened because I had another alarm app running. The two may have interfered with each other. I would like to tell Apple about it.
    It also annoys me that the button that closes apps leaves the phone app running. If I press on a number at 6:00 AM to get information about who called me, the phone automatically dials the person back and my natural reaction is to press on the button to close the phone app but the phone keeps dialing this person at 6:00 AM. It is a bad design. I would like to tell Apple about it.
    Finally, I looked all over Apple's site to try to find someplace I could send them a polite message to let them know that I was not happy with these "features" but could not find anything. It is extremely frustrating to have issues with a product and not being able to tell the manufacturer about it. So, you grow up!.
    When trying to fix the Game Center issue, I saw a link someone posted to report issues with the IPad to Apple. The answer I am looking for is where is the link to report issues with the IPhone.

Maybe you are looking for