org.artifactory.concurrent.LockingException: Timeout after 120 seconds when trying to wait for next state in 'STOPPING'.

JFrog JIRA | Dror Bereznitsky | 3 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Reloading the configuration while setting a new config ({{CentralConfigServiceImpl.setConfigXml}}) leads to {{ArtifactoryApplicationContext}} reloading. While reloading the {{ReplicationServiceImpl}} we try to reschedule the replication. Rescheduling tries to cancel the running task but fails due to timeout: Timeout after 120 seconds when trying to wait for next state in 'STOPPING' This is the error message in the log: {code} org.artifactory.concurrent.LockingException: Timeout after 120 seconds when trying to wait for next state in 'STOPPING'. at org.artifactory.schedule.TaskBase.guardedWaitForNextStep(TaskBase.java:442) ~[artifactory-storage-common-3.0.2.jar:na] at org.artifactory.schedule.TaskBase.guardedWaitForNextStep(TaskBase.java:431) ~[artifactory-storage-common-3.0.2.jar:na] at org.artifactory.schedule.TaskBase.guardedTransitionToState(TaskBase.java:424) ~[artifactory-storage-common-3.0.2.jar:na] at org.artifactory.schedule.TaskBase.cancel(TaskBase.java:114) ~[artifactory-storage-common-3.0.2.jar:na] at org.artifactory.schedule.TaskServiceImpl.cancelTask(TaskServiceImpl.java:144) ~[artifactory-core-3.0.2.jar:na] at org.artifactory.schedule.TaskServiceImpl.cancelTasks(TaskServiceImpl.java:167) ~[artifactory-core-3.0.2.jar:na] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.7.0_21] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[na:1.7.0_21] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.7.0_21] at java.lang.reflect.Method.invoke(Method.java:601) ~[na:1.7.0_21] 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.$Proxy41.cancelTasks(Unknown Source) ~[na:na] at org.artifactory.schedule.BaseTaskServiceDescriptorHandler.reschedule(BaseTaskServiceDescriptorHandler.java:61) ~[artifactory-core-3.0.2.jar:na] at org.artifactory.addon.replication.core.ReplicationServiceImpl.reload(ReplicationServiceImpl.java:74) ~[artifactory-addon-replication-3.0.2.jar:na] at sun.reflect.GeneratedMethodAccessor391.invoke(Unknown Source) ~[na:na] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.7.0_21] at java.lang.reflect.Method.invoke(Method.java:601) ~[na:1.7.0_21] 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.$Proxy69.reload(Unknown Source) ~[na:na] at org.artifactory.spring.ArtifactoryApplicationContext.reload(ArtifactoryApplicationContext.java:315) ~[artifactory-core-3.0.2.jar:na] at org.artifactory.config.CentralConfigServiceImpl.reloadConfiguration(CentralConfigServiceImpl.java:294) [artifactory-core-3.0.2.jar:na] at org.artifactory.config.CentralConfigServiceImpl.setConfigXml(CentralConfigServiceImpl.java:174) [artifactory-core-3.0.2.jar:na] at org.artifactory.config.CentralConfigServiceImpl.saveEditedDescriptorAndReload(CentralConfigServiceImpl.java:219) [artifactory-core-3.0.2.jar:na] at sun.reflect.GeneratedMethodAccessor453.invoke(Unknown Source) ~[na:na] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.7.0_21] at java.lang.reflect.Method.invoke(Method.java:601) ~[na:1.7.0_21] 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.$Proxy38.saveEditedDescriptorAndReload(Unknown Source) [na:na] at sun.reflect.GeneratedMethodAccessor453.invoke(Unknown Source) ~[na:na] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.7.0_21] at java.lang.reflect.Method.invoke(Method.java:601) ~[na:1.7.0_21] at org.apache.wicket.proxy.LazyInitProxyFactory$JdkHandler.invoke(LazyInitProxyFactory.java:416) [wicket-ioc-1.5.3.jar:1.5.3] at org.apache.wicket.proxy.$Proxy129.saveEditedDescriptorAndReload(Unknown Source) [na:1.5.3] at org.artifactory.webapp.wicket.page.config.repos.CachingDescriptorHelper.saveDescriptor(CachingDescriptorHelper.java:121) [artifactory-web-application-3.0.2.jar:na] at org.artifactory.webapp.wicket.page.config.repos.CachingDescriptorHelper.syncAndSaveRemoteRepositories(CachingDescriptorHelper.java:88) [artifactory-web-application-3.0.2.jar:na] at org.artifactory.webapp.wicket.page.config.repos.remote.HttpRepoPanel.saveEditDescriptor(HttpRepoPanel.java:163) [artifactory-web-application-3.0.2.jar:na] at org.artifactory.webapp.wicket.page.config.repos.remote.HttpRepoPanel.saveEditDescriptor(HttpRepoPanel.java:1) [artifactory-web-application-3.0.2.jar:na] at org.artifactory.webapp.wicket.page.config.repos.RepoConfigCreateUpdatePanel$2.onSubmit(RepoConfigCreateUpdatePanel.java:157) [artifactory-web-application-3.0.2.jar:na] at org.artifactory.common.wicket.component.links.TitledAjaxSubmitLink$1.onSubmit(TitledAjaxSubmitLink.java:59) [artifactory-web-common-3.0.2.jar:na] at org.apache.wicket.ajax.form.AjaxFormSubmitBehavior$1.onSubmit(AjaxFormSubmitBehavior.java:172) [wicket-core-1.5.3.jar:1.5.3] at org.apache.wicket.markup.html.form.Form.delegateSubmit(Form.java:1174) [wicket-core-1.5.3.jar:1.5.3] at org.apache.wicket.markup.html.form.Form.process(Form.java:838) [wicket-core-1.5.3.jar:1.5.3] at org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:762) [wicket-core-1.5.3.jar:1.5.3] at org.apache.wicket.ajax.form.AjaxFormSubmitBehavior.onEvent(AjaxFormSubmitBehavior.java:158) [wicket-core-1.5.3.jar:1.5.3] at org.apache.wicket.ajax.AjaxEventBehavior.respond(AjaxEventBehavior.java:166) [wicket-core-1.5.3.jar:1.5.3] at org.apache.wicket.ajax.AbstractDefaultAjaxBehavior.onRequest(AbstractDefaultAjaxBehavior.java:316) [wicket-core-1.5.3.jar:1.5.3] at sun.reflect.GeneratedMethodAccessor232.invoke(Unknown Source) ~[na:na] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.7.0_21] at java.lang.reflect.Method.invoke(Method.java:601) ~[na:1.7.0_21] at org.apache.wicket.RequestListenerInterface.internalInvoke(RequestListenerInterface.java:260) [wicket-core-1.5.3.jar:1.5.3] at org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:241) [wicket-core-1.5.3.jar:1.5.3] at org.apache.wicket.request.handler.ListenerInterfaceRequestHandler.invokeListener(ListenerInterfaceRequestHandler.java:255) [wicket-core-1.5.3.jar:1.5.3] at org.apache.wicket.request.handler.ListenerInterfaceRequestHandler.respond(ListenerInterfaceRequestHandler.java:234) [wicket-core-1.5.3.jar:1.5.3] at org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:750) [wicket-core-1.5.3.jar:1.5.3] at org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64) [wicket-request-1.5.3.jar:1.5.3] at org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:252) [wicket-core-1.5.3.jar:1.5.3] at org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:209) [wicket-core-1.5.3.jar:1.5.3] at org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:280) [wicket-core-1.5.3.jar:1.5.3] at org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:162) [wicket-core-1.5.3.jar:1.5.3] at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:218) [wicket-core-1.5.3.jar:1.5.3] 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.RepoFilter.execute(RepoFilter.java:166) [artifactory-web-application-3.0.2.jar:na] at org.artifactory.webapp.servlet.RepoFilter.doFilter(RepoFilter.java:85) [artifactory-web-application-3.0.2.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.0.2.jar:na] at org.artifactory.webapp.servlet.AccessFilter.doFilterInternal(AccessFilter.java:181) [artifactory-web-application-3.0.2.jar:na] at org.artifactory.webapp.servlet.AccessFilter.doFilter(AccessFilter.java:143) [artifactory-web-application-3.0.2.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:57) [artifactory-web-application-3.0.2.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:72) [artifactory-web-application-3.0.2.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:312) [tomcat-coyote.jar:7.0.39] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_21] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_21] {code} The result seems to be errors of the following form, which does not stop until the config is properly updated: {code} 2013-09-03 02:18:28,293 [art-exec-130112] [ERROR] (o.a.s.TaskCallback :54) - Task org.artifactory.storage.fs.stats.StatsFlushJob@10b05ee9 was running before context=Artifactory: startup date [Tue Aug 06 03:07:40 EDT 2013]; root of context hierarchy initialization finished. 2013-09-03 02:18:28,397 [art-exec-130113] [ERROR] (o.a.s.TaskCallback :54) - Task org.artifactory.repo.cleanup.FolderPruningJob@6dc70437 was running before context=Artifactory: startup date [Tue Aug 06 03:07:40 EDT 2013]; root of context hierarchy initialization finished. 2013-09-03 02:18:29,641 [art-exec-130114] [ERROR] (o.a.s.TaskCallback :54) - Task org.artifactory.repo.cleanup.IntegrationCleanupJob@3acb508e was running before context=Artifactory: startup date [Tue Aug 06 03:07:40 EDT 2013]; root of context hierarchy initialization finished. {code}

    JFrog JIRA | 3 years ago | Dror Bereznitsky
    org.artifactory.concurrent.LockingException: Timeout after 120 seconds when trying to wait for next state in 'STOPPING'.
  2. 0

    Reloading the configuration while setting a new config ({{CentralConfigServiceImpl.setConfigXml}}) leads to {{ArtifactoryApplicationContext}} reloading. While reloading the {{ReplicationServiceImpl}} we try to reschedule the replication. Rescheduling tries to cancel the running task but fails due to timeout: Timeout after 120 seconds when trying to wait for next state in 'STOPPING' This is the error message in the log: {code} org.artifactory.concurrent.LockingException: Timeout after 120 seconds when trying to wait for next state in 'STOPPING'. at org.artifactory.schedule.TaskBase.guardedWaitForNextStep(TaskBase.java:442) ~[artifactory-storage-common-3.0.2.jar:na] at org.artifactory.schedule.TaskBase.guardedWaitForNextStep(TaskBase.java:431) ~[artifactory-storage-common-3.0.2.jar:na] at org.artifactory.schedule.TaskBase.guardedTransitionToState(TaskBase.java:424) ~[artifactory-storage-common-3.0.2.jar:na] at org.artifactory.schedule.TaskBase.cancel(TaskBase.java:114) ~[artifactory-storage-common-3.0.2.jar:na] at org.artifactory.schedule.TaskServiceImpl.cancelTask(TaskServiceImpl.java:144) ~[artifactory-core-3.0.2.jar:na] at org.artifactory.schedule.TaskServiceImpl.cancelTasks(TaskServiceImpl.java:167) ~[artifactory-core-3.0.2.jar:na] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.7.0_21] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[na:1.7.0_21] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.7.0_21] at java.lang.reflect.Method.invoke(Method.java:601) ~[na:1.7.0_21] 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.$Proxy41.cancelTasks(Unknown Source) ~[na:na] at org.artifactory.schedule.BaseTaskServiceDescriptorHandler.reschedule(BaseTaskServiceDescriptorHandler.java:61) ~[artifactory-core-3.0.2.jar:na] at org.artifactory.addon.replication.core.ReplicationServiceImpl.reload(ReplicationServiceImpl.java:74) ~[artifactory-addon-replication-3.0.2.jar:na] at sun.reflect.GeneratedMethodAccessor391.invoke(Unknown Source) ~[na:na] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.7.0_21] at java.lang.reflect.Method.invoke(Method.java:601) ~[na:1.7.0_21] 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.$Proxy69.reload(Unknown Source) ~[na:na] at org.artifactory.spring.ArtifactoryApplicationContext.reload(ArtifactoryApplicationContext.java:315) ~[artifactory-core-3.0.2.jar:na] at org.artifactory.config.CentralConfigServiceImpl.reloadConfiguration(CentralConfigServiceImpl.java:294) [artifactory-core-3.0.2.jar:na] at org.artifactory.config.CentralConfigServiceImpl.setConfigXml(CentralConfigServiceImpl.java:174) [artifactory-core-3.0.2.jar:na] at org.artifactory.config.CentralConfigServiceImpl.saveEditedDescriptorAndReload(CentralConfigServiceImpl.java:219) [artifactory-core-3.0.2.jar:na] at sun.reflect.GeneratedMethodAccessor453.invoke(Unknown Source) ~[na:na] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.7.0_21] at java.lang.reflect.Method.invoke(Method.java:601) ~[na:1.7.0_21] 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.$Proxy38.saveEditedDescriptorAndReload(Unknown Source) [na:na] at sun.reflect.GeneratedMethodAccessor453.invoke(Unknown Source) ~[na:na] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.7.0_21] at java.lang.reflect.Method.invoke(Method.java:601) ~[na:1.7.0_21] at org.apache.wicket.proxy.LazyInitProxyFactory$JdkHandler.invoke(LazyInitProxyFactory.java:416) [wicket-ioc-1.5.3.jar:1.5.3] at org.apache.wicket.proxy.$Proxy129.saveEditedDescriptorAndReload(Unknown Source) [na:1.5.3] at org.artifactory.webapp.wicket.page.config.repos.CachingDescriptorHelper.saveDescriptor(CachingDescriptorHelper.java:121) [artifactory-web-application-3.0.2.jar:na] at org.artifactory.webapp.wicket.page.config.repos.CachingDescriptorHelper.syncAndSaveRemoteRepositories(CachingDescriptorHelper.java:88) [artifactory-web-application-3.0.2.jar:na] at org.artifactory.webapp.wicket.page.config.repos.remote.HttpRepoPanel.saveEditDescriptor(HttpRepoPanel.java:163) [artifactory-web-application-3.0.2.jar:na] at org.artifactory.webapp.wicket.page.config.repos.remote.HttpRepoPanel.saveEditDescriptor(HttpRepoPanel.java:1) [artifactory-web-application-3.0.2.jar:na] at org.artifactory.webapp.wicket.page.config.repos.RepoConfigCreateUpdatePanel$2.onSubmit(RepoConfigCreateUpdatePanel.java:157) [artifactory-web-application-3.0.2.jar:na] at org.artifactory.common.wicket.component.links.TitledAjaxSubmitLink$1.onSubmit(TitledAjaxSubmitLink.java:59) [artifactory-web-common-3.0.2.jar:na] at org.apache.wicket.ajax.form.AjaxFormSubmitBehavior$1.onSubmit(AjaxFormSubmitBehavior.java:172) [wicket-core-1.5.3.jar:1.5.3] at org.apache.wicket.markup.html.form.Form.delegateSubmit(Form.java:1174) [wicket-core-1.5.3.jar:1.5.3] at org.apache.wicket.markup.html.form.Form.process(Form.java:838) [wicket-core-1.5.3.jar:1.5.3] at org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:762) [wicket-core-1.5.3.jar:1.5.3] at org.apache.wicket.ajax.form.AjaxFormSubmitBehavior.onEvent(AjaxFormSubmitBehavior.java:158) [wicket-core-1.5.3.jar:1.5.3] at org.apache.wicket.ajax.AjaxEventBehavior.respond(AjaxEventBehavior.java:166) [wicket-core-1.5.3.jar:1.5.3] at org.apache.wicket.ajax.AbstractDefaultAjaxBehavior.onRequest(AbstractDefaultAjaxBehavior.java:316) [wicket-core-1.5.3.jar:1.5.3] at sun.reflect.GeneratedMethodAccessor232.invoke(Unknown Source) ~[na:na] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.7.0_21] at java.lang.reflect.Method.invoke(Method.java:601) ~[na:1.7.0_21] at org.apache.wicket.RequestListenerInterface.internalInvoke(RequestListenerInterface.java:260) [wicket-core-1.5.3.jar:1.5.3] at org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:241) [wicket-core-1.5.3.jar:1.5.3] at org.apache.wicket.request.handler.ListenerInterfaceRequestHandler.invokeListener(ListenerInterfaceRequestHandler.java:255) [wicket-core-1.5.3.jar:1.5.3] at org.apache.wicket.request.handler.ListenerInterfaceRequestHandler.respond(ListenerInterfaceRequestHandler.java:234) [wicket-core-1.5.3.jar:1.5.3] at org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:750) [wicket-core-1.5.3.jar:1.5.3] at org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64) [wicket-request-1.5.3.jar:1.5.3] at org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:252) [wicket-core-1.5.3.jar:1.5.3] at org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:209) [wicket-core-1.5.3.jar:1.5.3] at org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:280) [wicket-core-1.5.3.jar:1.5.3] at org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:162) [wicket-core-1.5.3.jar:1.5.3] at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:218) [wicket-core-1.5.3.jar:1.5.3] 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.RepoFilter.execute(RepoFilter.java:166) [artifactory-web-application-3.0.2.jar:na] at org.artifactory.webapp.servlet.RepoFilter.doFilter(RepoFilter.java:85) [artifactory-web-application-3.0.2.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.0.2.jar:na] at org.artifactory.webapp.servlet.AccessFilter.doFilterInternal(AccessFilter.java:181) [artifactory-web-application-3.0.2.jar:na] at org.artifactory.webapp.servlet.AccessFilter.doFilter(AccessFilter.java:143) [artifactory-web-application-3.0.2.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:57) [artifactory-web-application-3.0.2.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:72) [artifactory-web-application-3.0.2.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:312) [tomcat-coyote.jar:7.0.39] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_21] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_21] {code} The result seems to be errors of the following form, which does not stop until the config is properly updated: {code} 2013-09-03 02:18:28,293 [art-exec-130112] [ERROR] (o.a.s.TaskCallback :54) - Task org.artifactory.storage.fs.stats.StatsFlushJob@10b05ee9 was running before context=Artifactory: startup date [Tue Aug 06 03:07:40 EDT 2013]; root of context hierarchy initialization finished. 2013-09-03 02:18:28,397 [art-exec-130113] [ERROR] (o.a.s.TaskCallback :54) - Task org.artifactory.repo.cleanup.FolderPruningJob@6dc70437 was running before context=Artifactory: startup date [Tue Aug 06 03:07:40 EDT 2013]; root of context hierarchy initialization finished. 2013-09-03 02:18:29,641 [art-exec-130114] [ERROR] (o.a.s.TaskCallback :54) - Task org.artifactory.repo.cleanup.IntegrationCleanupJob@3acb508e was running before context=Artifactory: startup date [Tue Aug 06 03:07:40 EDT 2013]; root of context hierarchy initialization finished. {code}

    JFrog JIRA | 3 years ago | Dror Bereznitsky
    org.artifactory.concurrent.LockingException: Timeout after 120 seconds when trying to wait for next state in 'STOPPING'.

    Root Cause Analysis

    1. org.artifactory.concurrent.LockingException

      Timeout after 120 seconds when trying to wait for next state in 'STOPPING'.

      at org.artifactory.schedule.TaskBase.guardedWaitForNextStep()
    2. org.artifactory.schedule
      TaskServiceImpl.cancelTasks
      1. org.artifactory.schedule.TaskBase.guardedWaitForNextStep(TaskBase.java:442)[artifactory-storage-common-3.0.2.jar:na]
      2. org.artifactory.schedule.TaskBase.guardedWaitForNextStep(TaskBase.java:431)[artifactory-storage-common-3.0.2.jar:na]
      3. org.artifactory.schedule.TaskBase.guardedTransitionToState(TaskBase.java:424)[artifactory-storage-common-3.0.2.jar:na]
      4. org.artifactory.schedule.TaskBase.cancel(TaskBase.java:114)[artifactory-storage-common-3.0.2.jar:na]
      5. org.artifactory.schedule.TaskServiceImpl.cancelTask(TaskServiceImpl.java:144)[artifactory-core-3.0.2.jar:na]
      6. org.artifactory.schedule.TaskServiceImpl.cancelTasks(TaskServiceImpl.java:167)[artifactory-core-3.0.2.jar:na]
      6 frames
    3. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[na:1.7.0_21]
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)[na:1.7.0_21]
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[na:1.7.0_21]
      4. java.lang.reflect.Method.invoke(Method.java:601)[na:1.7.0_21]
      4 frames
    4. Spring AOP
      JdkDynamicAopProxy.invoke
      1. org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)[spring-aop-3.2.0.RELEASE.jar:3.2.0.RELEASE]
      2. org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:198)[spring-aop-3.2.0.RELEASE.jar:3.2.0.RELEASE]
      2 frames
    5. com.sun.proxy
      $Proxy41.cancelTasks
      1. com.sun.proxy.$Proxy41.cancelTasks(Unknown Source)[na:na]
      1 frame
    6. org.artifactory.schedule
      BaseTaskServiceDescriptorHandler.reschedule
      1. org.artifactory.schedule.BaseTaskServiceDescriptorHandler.reschedule(BaseTaskServiceDescriptorHandler.java:61)[artifactory-core-3.0.2.jar:na]
      1 frame
    7. org.artifactory.addon
      ReplicationServiceImpl.reload
      1. org.artifactory.addon.replication.core.ReplicationServiceImpl.reload(ReplicationServiceImpl.java:74)[artifactory-addon-replication-3.0.2.jar:na]
      1 frame
    8. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor391.invoke(Unknown Source)[na:na]
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[na:1.7.0_21]
      3. java.lang.reflect.Method.invoke(Method.java:601)[na:1.7.0_21]
      3 frames
    9. Spring AOP
      JdkDynamicAopProxy.invoke
      1. org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)[spring-aop-3.2.0.RELEASE.jar:3.2.0.RELEASE]
      2. org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:198)[spring-aop-3.2.0.RELEASE.jar:3.2.0.RELEASE]
      2 frames
    10. com.sun.proxy
      $Proxy69.reload
      1. com.sun.proxy.$Proxy69.reload(Unknown Source)[na:na]
      1 frame
    11. org.artifactory.spring
      ArtifactoryApplicationContext.reload
      1. org.artifactory.spring.ArtifactoryApplicationContext.reload(ArtifactoryApplicationContext.java:315)[artifactory-core-3.0.2.jar:na]
      1 frame
    12. org.artifactory.config
      CentralConfigServiceImpl.saveEditedDescriptorAndReload
      1. org.artifactory.config.CentralConfigServiceImpl.reloadConfiguration(CentralConfigServiceImpl.java:294)[artifactory-core-3.0.2.jar:na]
      2. org.artifactory.config.CentralConfigServiceImpl.setConfigXml(CentralConfigServiceImpl.java:174)[artifactory-core-3.0.2.jar:na]
      3. org.artifactory.config.CentralConfigServiceImpl.saveEditedDescriptorAndReload(CentralConfigServiceImpl.java:219)[artifactory-core-3.0.2.jar:na]
      3 frames
    13. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor453.invoke(Unknown Source)[na:na]
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[na:1.7.0_21]
      3. java.lang.reflect.Method.invoke(Method.java:601)[na:1.7.0_21]
      3 frames
    14. Spring AOP
      JdkDynamicAopProxy.invoke
      1. org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)[spring-aop-3.2.0.RELEASE.jar:3.2.0.RELEASE]
      2. org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:198)[spring-aop-3.2.0.RELEASE.jar:3.2.0.RELEASE]
      2 frames
    15. com.sun.proxy
      $Proxy38.saveEditedDescriptorAndReload
      1. com.sun.proxy.$Proxy38.saveEditedDescriptorAndReload(Unknown Source)[na:na]
      1 frame
    16. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor453.invoke(Unknown Source)[na:na]
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[na:1.7.0_21]
      3. java.lang.reflect.Method.invoke(Method.java:601)[na:1.7.0_21]
      3 frames
    17. Wicket IoC common code
      $Proxy129.saveEditedDescriptorAndReload
      1. org.apache.wicket.proxy.LazyInitProxyFactory$JdkHandler.invoke(LazyInitProxyFactory.java:416)[wicket-ioc-1.5.3.jar:1.5.3]
      2. org.apache.wicket.proxy.$Proxy129.saveEditedDescriptorAndReload(Unknown Source)[na:1.5.3]
      2 frames
    18. org.artifactory.webapp
      RepoConfigCreateUpdatePanel$2.onSubmit
      1. org.artifactory.webapp.wicket.page.config.repos.CachingDescriptorHelper.saveDescriptor(CachingDescriptorHelper.java:121)[artifactory-web-application-3.0.2.jar:na]
      2. org.artifactory.webapp.wicket.page.config.repos.CachingDescriptorHelper.syncAndSaveRemoteRepositories(CachingDescriptorHelper.java:88)[artifactory-web-application-3.0.2.jar:na]
      3. org.artifactory.webapp.wicket.page.config.repos.remote.HttpRepoPanel.saveEditDescriptor(HttpRepoPanel.java:163)[artifactory-web-application-3.0.2.jar:na]
      4. org.artifactory.webapp.wicket.page.config.repos.remote.HttpRepoPanel.saveEditDescriptor(HttpRepoPanel.java:1)[artifactory-web-application-3.0.2.jar:na]
      5. org.artifactory.webapp.wicket.page.config.repos.RepoConfigCreateUpdatePanel$2.onSubmit(RepoConfigCreateUpdatePanel.java:157)[artifactory-web-application-3.0.2.jar:na]
      5 frames
    19. org.artifactory.common
      TitledAjaxSubmitLink$1.onSubmit
      1. org.artifactory.common.wicket.component.links.TitledAjaxSubmitLink$1.onSubmit(TitledAjaxSubmitLink.java:59)[artifactory-web-common-3.0.2.jar:na]
      1 frame
    20. Wicket Core
      AbstractDefaultAjaxBehavior.onRequest
      1. org.apache.wicket.ajax.form.AjaxFormSubmitBehavior$1.onSubmit(AjaxFormSubmitBehavior.java:172)[wicket-core-1.5.3.jar:1.5.3]
      2. org.apache.wicket.markup.html.form.Form.delegateSubmit(Form.java:1174)[wicket-core-1.5.3.jar:1.5.3]
      3. org.apache.wicket.markup.html.form.Form.process(Form.java:838)[wicket-core-1.5.3.jar:1.5.3]
      4. org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:762)[wicket-core-1.5.3.jar:1.5.3]
      5. org.apache.wicket.ajax.form.AjaxFormSubmitBehavior.onEvent(AjaxFormSubmitBehavior.java:158)[wicket-core-1.5.3.jar:1.5.3]
      6. org.apache.wicket.ajax.AjaxEventBehavior.respond(AjaxEventBehavior.java:166)[wicket-core-1.5.3.jar:1.5.3]
      7. org.apache.wicket.ajax.AbstractDefaultAjaxBehavior.onRequest(AbstractDefaultAjaxBehavior.java:316)[wicket-core-1.5.3.jar:1.5.3]
      7 frames
    21. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor232.invoke(Unknown Source)[na:na]
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[na:1.7.0_21]
      3. java.lang.reflect.Method.invoke(Method.java:601)[na:1.7.0_21]
      3 frames
    22. Wicket Core
      RequestListenerInterface.invoke
      1. org.apache.wicket.RequestListenerInterface.internalInvoke(RequestListenerInterface.java:260)[wicket-core-1.5.3.jar:1.5.3]
      2. org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:241)[wicket-core-1.5.3.jar:1.5.3]
      2 frames
    23. Wicket Request
      ListenerInterfaceRequestHandler.respond
      1. org.apache.wicket.request.handler.ListenerInterfaceRequestHandler.invokeListener(ListenerInterfaceRequestHandler.java:255)[wicket-core-1.5.3.jar:1.5.3]
      2. org.apache.wicket.request.handler.ListenerInterfaceRequestHandler.respond(ListenerInterfaceRequestHandler.java:234)[wicket-core-1.5.3.jar:1.5.3]
      2 frames
    24. Wicket Core
      RequestCycle$HandlerExecutor.respond
      1. org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:750)[wicket-core-1.5.3.jar:1.5.3]
      1 frame
    25. Wicket Request
      RequestHandlerStack.execute
      1. org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64)[wicket-request-1.5.3.jar:1.5.3]
      1 frame
    26. Wicket Core
      WicketFilter.doFilter
      1. org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:252)[wicket-core-1.5.3.jar:1.5.3]
      2. org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:209)[wicket-core-1.5.3.jar:1.5.3]
      3. org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:280)[wicket-core-1.5.3.jar:1.5.3]
      4. org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:162)[wicket-core-1.5.3.jar:1.5.3]
      5. org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:218)[wicket-core-1.5.3.jar:1.5.3]
      5 frames
    27. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)[catalina.jar:7.0.39]
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)[catalina.jar:7.0.39]
      2 frames
    28. org.artifactory.webapp
      RepoFilter.doFilter
      1. org.artifactory.webapp.servlet.RepoFilter.execute(RepoFilter.java:166)[artifactory-web-application-3.0.2.jar:na]
      2. org.artifactory.webapp.servlet.RepoFilter.doFilter(RepoFilter.java:85)[artifactory-web-application-3.0.2.jar:na]
      2 frames
    29. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)[catalina.jar:7.0.39]
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)[catalina.jar:7.0.39]
      2 frames
    30. org.artifactory.webapp
      AccessFilter.doFilter
      1. org.artifactory.webapp.servlet.AccessFilter.useAuthentication(AccessFilter.java:272)[artifactory-web-application-3.0.2.jar:na]
      2. org.artifactory.webapp.servlet.AccessFilter.doFilterInternal(AccessFilter.java:181)[artifactory-web-application-3.0.2.jar:na]
      3. org.artifactory.webapp.servlet.AccessFilter.doFilter(AccessFilter.java:143)[artifactory-web-application-3.0.2.jar:na]
      3 frames
    31. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)[catalina.jar:7.0.39]
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)[catalina.jar:7.0.39]
      2 frames
    32. org.artifactory.webapp
      RequestFilter.doFilter
      1. org.artifactory.webapp.servlet.RequestFilter.doFilter(RequestFilter.java:57)[artifactory-web-application-3.0.2.jar:na]
      1 frame
    33. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)[catalina.jar:7.0.39]
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)[catalina.jar:7.0.39]
      2 frames
    34. org.artifactory.webapp
      ArtifactoryFilter.doFilter
      1. org.artifactory.webapp.servlet.ArtifactoryFilter.doFilter(ArtifactoryFilter.java:72)[artifactory-web-application-3.0.2.jar:na]
      1 frame
    35. Glassfish Core
      CoyoteAdapter.service
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)[catalina.jar:7.0.39]
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)[catalina.jar:7.0.39]
      3. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)[catalina.jar:7.0.39]
      4. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)[catalina.jar:7.0.39]
      5. org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)[catalina.jar:7.0.39]
      6. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)[catalina.jar:7.0.39]
      7. org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)[catalina.jar:7.0.39]
      8. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)[catalina.jar:7.0.39]
      9. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)[catalina.jar:7.0.39]
      9 frames
    36. Grizzly HTTP
      JIoEndpoint$SocketProcessor.run
      1. org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1009)[tomcat-coyote.jar:7.0.39]
      2. org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)[tomcat-coyote.jar:7.0.39]
      3. org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)[tomcat-coyote.jar:7.0.39]
      3 frames
    37. Java RT
      ThreadPoolExecutor$Worker.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)[na:1.7.0_21]
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)[na:1.7.0_21]
      2 frames