我们有jfrog artifactory pro版本5.5.1
我们最近开始收到以下错误:
只有当我们尝试发布到一个特定的仓库时才会发生错误,其他仓库在发布相同工件时工作正常。
我们认为这个自定义groovy代码位于插件中,我们认为这会导致此问题,但在升级之前它运行正常。
2018-01-12 03:57:58,582 [art-groovy-plugins-reloader] [WARN ] (o.a.a.p.e.ExecutePluginImpl:184) - Overriding existing execution with name. 'getProxiesList'.
2018-01-12 03:57:58,593 [art-exec-330376] [ERROR] (o.a.r.d.DbStoringRepoMixin:270) - Couldn't save resource, reason:
java.util.ConcurrentModificationException: null
at com.google.common.collect.LinkedHashMultimap$ValueSet$1.checkForComodification(LinkedHashMultimap.java:364) ~[guava-18.0.jar:na]
at com.google.common.collect.LinkedHashMultimap$ValueSet$1.hasNext(LinkedHashMultimap.java:370) ~[guava-18.0.jar:na]
at com.google.common.collect.AbstractMapBasedMultimap$WrappedCollection$WrappedIterator.hasNext(AbstractMapBasedMultimap.java:480) ~[guava-18.0.jar:na]
at org.artifactory.addon.plugin.GroovyRunnerImpl.getPluginActions(GroovyRunnerImpl.java:90) ~[artifactory-addon-plugins-5.5.1.jar:na]
at org.artifactory.addon.plugin.GroovyRunnerImpl.execPluginActions(GroovyRunnerImpl.java:79) ~[artifactory-addon-plugins-5.5.1.jar:na]
at sun.reflect.GeneratedMethodAccessor254.invoke(Unknown Source) ~[na:na]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_60]
at java.lang.reflect.Method.invoke(Method.java:497) ~[na:1.8.0_60]
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317) [spring-aop-4.1.5.RELEASE.jar:4.1.5.RELEASE]
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:201) [spring-aop-4.1.5.RELEASE.jar:4.1.5.RELEASE]
at com.sun.proxy.$Proxy228.execPluginActions(Unknown Source) ~[na:na]
at org.artifactory.addon.plugin.PluginsAddonImpl.execPluginActions(PluginsAddonImpl.java:52) ~[artifactory-addon-plugins-5.5.1.jar:na]
at org.artifactory.repo.interceptor.PluginsInterceptor.afterCreate(PluginsInterceptor.java:60) ~[artifactory-core-5.5.1.jar:na]
at org.artifactory.repo.interceptor.storage.StorageInterceptorsImpl.afterCreate(StorageInterceptorsImpl.java:65) ~[artifactory-core-5.5.1.jar:na]
at sun.reflect.GeneratedMethodAccessor451.invoke(Unknown Source) ~[na:na]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_60]
at java.lang.reflect.Method.invoke(Method.java:497) ~[na:1.8.0_60]
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317) [spring-aop-4.1.5.RELEASE.jar:4.1.5.RELEASE]
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:201) [spring-aop-4.1.5.RELEASE.jar:4.1.5.RELEASE]
at com.sun.proxy.$Proxy128.afterCreate(Unknown Source) ~[na:na]
at org.artifactory.repo.db.DbStoringRepoMixin.invokeAfterCreateInterceptors(DbStoringRepoMixin.java:391) ~[artifactory-core-5.5.1.jar:na]
at org.artifactory.repo.db.DbStoringRepoMixin.saveResource(DbStoringRepoMixin.java:230) ~[artifactory-core-5.5.1.jar:na]
at org.artifactory.repo.db.DbLocalRepo.saveResource(DbLocalRepo.java:158) [artifactory-core-5.5.1.jar:na]
at org.artifactory.repo.service.RepositoryServiceImpl.saveResourceInTransaction(RepositoryServiceImpl.java:1779) [artifactory-core-5.5.1.jar:na]
at sun.reflect.GeneratedMethodAccessor455.invoke(Unknown Source) ~[na:na]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_60]
at java.lang.reflect.Method.invoke(Method.java:497) ~[na:1.8.0_60]
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317) [spring-aop-4.1.5.RELEASE.jar:4.1.5.RELEASE]
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190) [spring-aop-4.1.5.RELEASE.jar:4.1.5.RELEASE]
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157) [spring-aop-4.1.5.RELEASE.jar:4.1.5.RELEASE]
at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99) [spring-tx-4.1.5.RELEASE.jar:4.1.5.RELEASE]
at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:281) [spring-tx-4.1.5.RELEASE.jar:4.1.5.RELEASE]
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96) [spring-tx-4.1.5.RELEASE.jar:4.1.5.RELEASE]
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) [spring-aop-4.1.5.RELEASE.jar:4.1.5.RELEASE]
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207) [spring-aop-4.1.5.RELEASE.jar:4.1.5.RELEASE]
at com.sun.proxy.$Proxy90.saveResourceInTransaction(Unknown Source) [na:na]
at org.artifactory.repo.service.RepositoryServiceImpl.saveResource(RepositoryServiceImpl.java:1749) [artifactory-core-5.5.1.jar:na]
at org.artifactory.repo.service.RepositoryServiceImpl.saveFileInternal(RepositoryServiceImpl.java:586) [artifactory-core-5.5.1.jar:na]
at sun.reflect.GeneratedMethodAccessor637.invoke(Unknown Source) ~[na:na]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_60]
at java.lang.reflect.Method.invoke(Method.java:497) ~[na:1.8.0_60]
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317) [spring-aop-4.1.5.RELEASE.jar:4.1.5.RELEASE]
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:201) [spring-aop-4.1.5.RELEASE.jar:4.1.5.RELEASE]
at com.sun.proxy.$Proxy90.saveFileInternal(Unknown Source) [na:na]
at org.artifactory.maven.AbstractMetadataCalculator.saveMetadata(AbstractMetadataCalculator.java:61) [artifactory-core-5.5.1.jar:na]
at org.artifactory.maven.MavenMetadataCalculator.createVersionsMetadata(MavenMetadataCalculator.java:354) [artifactory-core-5.5.1.jar:na]
at org.artifactory.maven.MavenMetadataCalculator.calculateAndSet(MavenMetadataCalculator.java:184) [artifactory-core-5.5.1.jar:na]
at java.util.ArrayList.forEach(ArrayList.java:1249) ~[na:1.8.0_60]
at org.artifactory.maven.MavenMetadataCalculator.calculateAndSet(MavenMetadataCalculator.java:200) [artifactory-core-5.5.1.jar:na]
at java.util.ArrayList.forEach(ArrayList.java:1249) ~[na:1.8.0_60]
at org.artifactory.maven.MavenMetadataCalculator.calculateAndSet(MavenMetadataCalculator.java:200) [artifactory-core-5.5.1.jar:na]
at java.util.ArrayList.forEach(ArrayList.java:1249) ~[na:1.8.0_60]
at org.artifactory.maven.MavenMetadataCalculator.calculateAndSet(MavenMetadataCalculator.java:200) [artifactory-core-5.5.1.jar:na]
at org.artifactory.maven.MavenMetadataCalculator.calculate(MavenMetadataCalculator.java:152) [artifactory-core-5.5.1.jar:na]
at org.artifactory.maven.MavenMetadataServiceImpl.calculateMavenMetadata(MavenMetadataServiceImpl.java:81) ~[artifactory-core-5.5.1.jar:na]
at org.artifactory.maven.MavenMetadataServiceImpl.calculateMavenMetadataAsync(MavenMetadataServiceImpl.java:56) ~[artifactory-core-5.5.1.jar:na]
at sun.reflect.GeneratedMethodAccessor467.invoke(Unknown Source) ~[na:na]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_60]
at java.lang.reflect.Method.invoke(Method.java:497) ~[na:1.8.0_60]
at org.artifactory.work.queue.WorkQueueImpl.invoke(WorkQueueImpl.java:109) ~[artifactory-core-5.5.1.jar:na]
at org.artifactory.work.queue.WorkQueueImpl.doJobs(WorkQueueImpl.java:82) ~[artifactory-core-5.5.1.jar:na]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) ~[na:1.8.0_60]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[na:1.8.0_60]
at org.artifactory.schedule.ArtifactoryConcurrentExecutor$RunnableWrapper.run(ArtifactoryConcurrentExecutor.java:104) ~[artifactory-storage-common-5.5.1.jar:na]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) ~[na:1.8.0_60]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) ~[na:1.8.0_60]
at java.lang.Thread.run(Thread.java:745) ~[na:1.8.0_60]
在为。:ConcurrentModificationException
编写元数据时出错{{1}}