org.springframework.core.task.TaskRejectedException

Executor [org.artifactory.schedule.ArtifactoryConcurrentExecutor@4f0fa9b6] did not accept task: org.artifactory.schedule.aop.AsyncAdvice$1@77ea48df

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web550

  • via Unknown by Yossi Shaul,
  • via Unknown by Yossi Shaul,
  • Stack trace

    • org.springframework.core.task.TaskRejectedException: Executor [org.artifactory.schedule.ArtifactoryConcurrentExecutor@4f0fa9b6] did not accept task: org.artifactory.schedule.aop.AsyncAdvice$1@77ea48df at org.springframework.core.task.support.TaskExecutorAdapter.submit(TaskExecutorAdapter.java:105)[spring-core-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.scheduling.concurrent.ConcurrentTaskExecutor.submit(ConcurrentTaskExecutor.java:107)[spring-context-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.artifactory.schedule.aop.AsyncAdvice.submit(AsyncAdvice.java:133)[artifactory-core-3.1.x-SNAPSHOT.jar:na] at org.artifactory.schedule.aop.AsyncAdvice.access$1(AsyncAdvice.java:130)[artifactory-core-3.1.x-SNAPSHOT.jar:na] at org.artifactory.schedule.aop.AsyncAdvice$MethodCallbackSessionResource.afterCompletion(AsyncAdvice.java:283)[artifactory-core-3.1.x-SNAPSHOT.jar:na] at org.artifactory.storage.tx.SessionResourceManagerImpl.afterCompletion(SessionResourceManagerImpl.java:70)[artifactory-storage-common-3.1.x-SNAPSHOT.jar:na] at org.artifactory.storage.db.fs.session.SqlStorageSession.afterCompletion(SqlStorageSession.java:137)[artifactory-storage-db-3.1.x-SNAPSHOT.jar:na] at org.artifactory.storage.db.spring.SessionSynchronization.afterCompletion(SessionSynchronization.java:83)[artifactory-storage-db-3.1.x-SNAPSHOT.jar:na] at org.springframework.transaction.support.TransactionSynchronizationUtils.invokeAfterCompletion(TransactionSynchronizationUtils.java:168)[spring-tx-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.transaction.support.AbstractPlatformTransactionManager.invokeAfterCompletion(AbstractPlatformTransactionManager.java:993)[spring-tx-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.transaction.support.AbstractPlatformTransactionManager.triggerAfterCompletion(AbstractPlatformTransactionManager.java:968)[spring-tx-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.transaction.support.AbstractPlatformTransactionManager.processCommit(AbstractPlatformTransactionManager.java:799)[spring-tx-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:723)[spring-tx-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.transaction.interceptor.TransactionAspectSupport.commitTransactionAfterReturning(TransactionAspectSupport.java:392)[spring-tx-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:120)[spring-tx-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.artifactory.storage.fs.lock.aop.LockingAdvice.invoke(LockingAdvice.java:64)[artifactory-storage-common-3.1.x-SNAPSHOT.jar:na] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)[spring-aop-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)[spring-aop-3.2.0.RELEASE.jar:3.2.0.RELEASE] at com.sun.proxy.$Proxy52.uploadWithinTransaction(Unknown Source)[na:na] at org.artifactory.engine.UploadServiceImpl.adjustResponseAndUpload(UploadServiceImpl.java:237)[artifactory-core-3.1.x-SNAPSHOT.jar:na] at org.artifactory.engine.UploadServiceImpl.validateRequestAndUpload(UploadServiceImpl.java:192)[artifactory-core-3.1.x-SNAPSHOT.jar:na] at org.artifactory.engine.UploadServiceImpl.upload(UploadServiceImpl.java:137)[artifactory-core-3.1.x-SNAPSHOT.jar:na] at sun.reflect.GeneratedMethodAccessor204.invoke(Unknown Source)[na:na] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[na:1.7.0_40] at java.lang.reflect.Method.invoke(Method.java:606)[na:1.7.0_40] at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)[spring-aop-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:198)[spring-aop-3.2.0.RELEASE.jar:3.2.0.RELEASE] at com.sun.proxy.$Proxy52.upload(Unknown Source)[na:na] at org.artifactory.webapp.servlet.RepoFilter.doUpload(RepoFilter.java:206)[artifactory-web-application-3.1.x-SNAPSHOT.jar:na] at org.artifactory.webapp.servlet.RepoFilter.execute(RepoFilter.java:149)[artifactory-web-application-3.1.x-SNAPSHOT.jar:na] at org.artifactory.webapp.servlet.RepoFilter.doFilter(RepoFilter.java:86)[artifactory-web-application-3.1.x-SNAPSHOT.jar:na] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)[catalina.jar:7.0.39] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)[catalina.jar:7.0.39] at org.artifactory.webapp.servlet.AccessFilter.useAuthentication(AccessFilter.java:272)[artifactory-web-application-3.1.x-SNAPSHOT.jar:na] at org.artifactory.webapp.servlet.AccessFilter.authenticateAndExecute(AccessFilter.java:193)[artifactory-web-application-3.1.x-SNAPSHOT.jar:na] at org.artifactory.webapp.servlet.AccessFilter.doFilterInternal(AccessFilter.java:175)[artifactory-web-application-3.1.x-SNAPSHOT.jar:na] at org.artifactory.webapp.servlet.AccessFilter.doFilter(AccessFilter.java:143)[artifactory-web-application-3.1.x-SNAPSHOT.jar:na] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)[catalina.jar:7.0.39] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)[catalina.jar:7.0.39] at org.artifactory.webapp.servlet.RequestFilter.doFilter(RequestFilter.java:60)[artifactory-web-application-3.1.x-SNAPSHOT.jar:na] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)[catalina.jar:7.0.39] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)[catalina.jar:7.0.39] at org.artifactory.webapp.servlet.ArtifactoryFilter.doFilter(ArtifactoryFilter.java:83)[artifactory-web-application-3.1.x-SNAPSHOT.jar:na] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)[catalina.jar:7.0.39] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)[catalina.jar:7.0.39] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)[catalina.jar:7.0.39] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)[catalina.jar:7.0.39] at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)[catalina.jar:7.0.39] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)[catalina.jar:7.0.39] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)[catalina.jar:7.0.39] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)[catalina.jar:7.0.39] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)[catalina.jar:7.0.39] at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1009)[tomcat-coyote.jar:7.0.39] at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)[tomcat-coyote.jar:7.0.39] at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310)[tomcat-coyote.jar:7.0.39] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)[na:1.7.0_40] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)[na:1.7.0_40] at java.lang.Thread.run(Thread.java:724)[na:1.7.0_40] Caused by: java.util.concurrent.RejectedExecutionException: Task org.artifactory.schedule.ArtifactoryConcurrentExecutor$RunnableWrapper@6b2b8bd8 rejected from java.util.concurrent.ThreadPoolExecutor@f07e417[Running, pool size = 16, active threads = 16, queued tasks = 10000, completed tasks = 316495] at java.util.concurrent.ThreadPoolExecutor$AbortPolicy.rejectedExecution(ThreadPoolExecutor.java:2048)[na:1.7.0_40] at java.util.concurrent.ThreadPoolExecutor.reject(ThreadPoolExecutor.java:821)[na:1.7.0_40] at java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:1372)[na:1.7.0_40] at org.artifactory.schedule.ArtifactoryConcurrentExecutor.execute(ArtifactoryConcurrentExecutor.java:62)[artifactory-storage-common-3.1.x-SNAPSHOT.jar:na] at org.springframework.core.task.support.TaskExecutorAdapter.submit(TaskExecutorAdapter.java:100)[spring-core-3.2.0.RELEASE.jar:3.2.0.RELEASE] ... 57 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,
    93 more bugmates