java.util.ConcurrentModificationException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • GitHub comment 13#37358081
    via GitHub by debop
    ,
  • Hi, I've created a script to delete artifacts that haven't been downloaded in a certain period. During the deletion phase Artifactory crashes. The deletion is done using the REST API: http://www.jfrog.com/confluence/display/RTF/Artifactory+REST+API#ArtifactoryRESTAPI-DeleteItem At a certain point after deleting a number of files, we get the error in QA (not Production). Error message: 2013-07-19 13:34:33,686 [art-exec-77] [ERROR] (o.a.j.JcrTransactionManager:97) - Could not commit transaction: Could not commit JCR transaction; nested exception is java.util.ConcurrentModificationException 2013-07-19 13:34:33,686 [art-exec-77] [INFO ] (o.a.j.JcrTransactionManager:210) - status = org.springframework.transaction.support.DefaultTransactionStatus@f00ce6d 2013-07-19 13:34:33,687 [art-exec-77] [INFO ] (o.a.j.JcrTransactionManager:210) - txobj = org.springframework.extensions.jcr.jackrabbit.LocalTransactionManager$JcrTransactionObject@3da158a0 2013-07-19 13:34:33,687 [art-exec-77] [INFO ] (o.a.j.JcrTransactionManager:210) - sh = org.springframework.extensions.jcr.jackrabbit.support.UserTxSessionHolder@30d3ffd5 2013-07-19 13:34:33,687 [art-exec-77] [INFO ] (o.a.j.JcrTransactionManager:210) - tx = org.springframework.extensions.jcr.jackrabbit.support.JackRabbitUserTransaction@2e4111fe 2013-07-19 13:34:33,695 [art-exec-77] [ERROR] (o.a.s.a.AsyncAdvice :167) - Could not execute async method: 'public abstract void org.artifactory.repo.service.InternalRepositoryService.markForSaveOnCommit(org.artifactory.repo.RepoPath)'. org.springframework.transaction.TransactionSystemException: Could not commit JCR transaction; nested exception is java.util.ConcurrentModificationException at org.springframework.extensions.jcr.jackrabbit.LocalTransactionManager.doCommit(LocalTransactionManager.java:192) [se-jcr-0.9.jar:na] at org.artifactory.jcr.JcrTransactionManager.doCommit(JcrTransactionManager.java:76) [artifactory-jcr-storage-2.6.6.jar:na] at org.springframework.transaction.support.AbstractPlatformTransactionManager.processCommit(AbstractPlatformTransactionManager.java:754) [spring-tx-3.1.1.RELEASE.jar:3.1.1.RELEASE] at org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:723) [spring-tx-3.1.1.RELEASE.jar:3.1.1.RELEASE] at org.springframework.transaction.interceptor.TransactionAspectSupport.commitTransactionAfterReturning(TransactionAspectSupport.java:393) [spring-tx-3.1.1.RELEASE.jar:3.1.1.RELEASE] at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:120) [spring-tx-3.1.1.RELEASE.jar:3.1.1.RELEASE] at org.artifactory.jcr.lock.aop.LockingAdvice.invoke(LockingAdvice.java:121) [artifactory-jcr-storage-2.6.6.jar:na] at org.artifactory.schedule.aop.AsyncAdvice.doInvoke(AsyncAdvice.java:198) [artifactory-core-2.6.6.jar:na] at org.artifactory.schedule.aop.CompoundInvocation.proceed(CompoundInvocation.java:56) [artifactory-core-2.6.6.jar:na] at org.artifactory.schedule.aop.AsyncAdvice.doInvoke(AsyncAdvice.java:184) [artifactory-core-2.6.6.jar:na] at org.artifactory.schedule.aop.AsyncAdvice$1.call(AsyncAdvice.java:145) [artifactory-core-2.6.6.jar:na] at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) [na:1.6.0_37] at java.util.concurrent.FutureTask.run(FutureTask.java:138) [na:1.6.0_37] at org.artifactory.schedule.ArtifactoryConcurrentExecutor$RunnableWrapper.run(ArtifactoryConcurrentExecutor.java:91) [artifactory-jcr-storage-2.6.6.jar:na] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [na:1.6.0_37] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [na:1.6.0_37] at java.lang.Thread.run(Thread.java:662) [na:1.6.0_37] Caused by: java.util.ConcurrentModificationException: null at java.util.HashMap$HashIterator.nextEntry(HashMap.java:793) [na:1.6.0_37] at java.util.HashMap$KeyIterator.next(HashMap.java:828) [na:1.6.0_37] at org.apache.jackrabbit.core.state.FineGrainedISMLocking$LockMap.hasDependency(FineGrainedISMLocking.java:407) [jackrabbit-core-jfrog-2.2.8e.jar:2.2.8e] at org.apache.jackrabbit.core.state.FineGrainedISMLocking.acquireWriteLock(FineGrainedISMLocking.java:143) [jackrabbit-core-jfrog-2.2.8e.jar:2.2.8e] at org.apache.jackrabbit.core.state.SharedItemStateManager.acquireWriteLock(SharedItemStateManager.java:1851) [jackrabbit-core-jfrog-2.2.8e.jar:2.2.8e] at org.apache.jackrabbit.core.state.SharedItemStateManager.access$200(SharedItemStateManager.java:115) [jackrabbit-core-jfrog-2.2.8e.jar:2.2.8e] at org.apache.jackrabbit.core.state.SharedItemStateManager$Update.begin(SharedItemStateManager.java:565) [jackrabbit-core-jfrog-2.2.8e.jar:2.2.8e] at org.apache.jackrabbit.core.state.SharedItemStateManager.beginUpdate(SharedItemStateManager.java:1460) [jackrabbit-core-jfrog-2.2.8e.jar:2.2.8e] at org.apache.jackrabbit.core.state.XAItemStateManager.prepare(XAItemStateManager.java:163) [jackrabbit-core-jfrog-2.2.8e.jar:2.2.8e] at org.apache.jackrabbit.core.TransactionContext.prepare(TransactionContext.java:159) [jackrabbit-core-jfrog-2.2.8e.jar:2.2.8e] at org.apache.jackrabbit.core.XASessionImpl.prepare(XASessionImpl.java:312) [jackrabbit-core-jfrog-2.2.8e.jar:2.2.8e] at org.springframework.extensions.jcr.jackrabbit.support.JackRabbitUserTransaction.commit(JackRabbitUserTransaction.java:91) [se-jcr-0.9.jar:na] at org.springframework.extensions.jcr.jackrabbit.LocalTransactionManager.doCommit(LocalTransactionManager.java:189) [se-jcr-0.9.jar:na] ... 16 common frames omitted
    via by Johan-Kees Vliek,
  • Hi, I've created a script to delete artifacts that haven't been downloaded in a certain period. During the deletion phase Artifactory crashes. The deletion is done using the REST API: http://www.jfrog.com/confluence/display/RTF/Artifactory+REST+API#ArtifactoryRESTAPI-DeleteItem At a certain point after deleting a number of files, we get the error in QA (not Production). Error message: 2013-07-19 13:34:33,686 [art-exec-77] [ERROR] (o.a.j.JcrTransactionManager:97) - Could not commit transaction: Could not commit JCR transaction; nested exception is java.util.ConcurrentModificationException 2013-07-19 13:34:33,686 [art-exec-77] [INFO ] (o.a.j.JcrTransactionManager:210) - status = org.springframework.transaction.support.DefaultTransactionStatus@f00ce6d 2013-07-19 13:34:33,687 [art-exec-77] [INFO ] (o.a.j.JcrTransactionManager:210) - txobj = org.springframework.extensions.jcr.jackrabbit.LocalTransactionManager$JcrTransactionObject@3da158a0 2013-07-19 13:34:33,687 [art-exec-77] [INFO ] (o.a.j.JcrTransactionManager:210) - sh = org.springframework.extensions.jcr.jackrabbit.support.UserTxSessionHolder@30d3ffd5 2013-07-19 13:34:33,687 [art-exec-77] [INFO ] (o.a.j.JcrTransactionManager:210) - tx = org.springframework.extensions.jcr.jackrabbit.support.JackRabbitUserTransaction@2e4111fe 2013-07-19 13:34:33,695 [art-exec-77] [ERROR] (o.a.s.a.AsyncAdvice :167) - Could not execute async method: 'public abstract void org.artifactory.repo.service.InternalRepositoryService.markForSaveOnCommit(org.artifactory.repo.RepoPath)'. org.springframework.transaction.TransactionSystemException: Could not commit JCR transaction; nested exception is java.util.ConcurrentModificationException at org.springframework.extensions.jcr.jackrabbit.LocalTransactionManager.doCommit(LocalTransactionManager.java:192) [se-jcr-0.9.jar:na] at org.artifactory.jcr.JcrTransactionManager.doCommit(JcrTransactionManager.java:76) [artifactory-jcr-storage-2.6.6.jar:na] at org.springframework.transaction.support.AbstractPlatformTransactionManager.processCommit(AbstractPlatformTransactionManager.java:754) [spring-tx-3.1.1.RELEASE.jar:3.1.1.RELEASE] at org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:723) [spring-tx-3.1.1.RELEASE.jar:3.1.1.RELEASE] at org.springframework.transaction.interceptor.TransactionAspectSupport.commitTransactionAfterReturning(TransactionAspectSupport.java:393) [spring-tx-3.1.1.RELEASE.jar:3.1.1.RELEASE] at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:120) [spring-tx-3.1.1.RELEASE.jar:3.1.1.RELEASE] at org.artifactory.jcr.lock.aop.LockingAdvice.invoke(LockingAdvice.java:121) [artifactory-jcr-storage-2.6.6.jar:na] at org.artifactory.schedule.aop.AsyncAdvice.doInvoke(AsyncAdvice.java:198) [artifactory-core-2.6.6.jar:na] at org.artifactory.schedule.aop.CompoundInvocation.proceed(CompoundInvocation.java:56) [artifactory-core-2.6.6.jar:na] at org.artifactory.schedule.aop.AsyncAdvice.doInvoke(AsyncAdvice.java:184) [artifactory-core-2.6.6.jar:na] at org.artifactory.schedule.aop.AsyncAdvice$1.call(AsyncAdvice.java:145) [artifactory-core-2.6.6.jar:na] at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) [na:1.6.0_37] at java.util.concurrent.FutureTask.run(FutureTask.java:138) [na:1.6.0_37] at org.artifactory.schedule.ArtifactoryConcurrentExecutor$RunnableWrapper.run(ArtifactoryConcurrentExecutor.java:91) [artifactory-jcr-storage-2.6.6.jar:na] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [na:1.6.0_37] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [na:1.6.0_37] at java.lang.Thread.run(Thread.java:662) [na:1.6.0_37] Caused by: java.util.ConcurrentModificationException: null at java.util.HashMap$HashIterator.nextEntry(HashMap.java:793) [na:1.6.0_37] at java.util.HashMap$KeyIterator.next(HashMap.java:828) [na:1.6.0_37] at org.apache.jackrabbit.core.state.FineGrainedISMLocking$LockMap.hasDependency(FineGrainedISMLocking.java:407) [jackrabbit-core-jfrog-2.2.8e.jar:2.2.8e] at org.apache.jackrabbit.core.state.FineGrainedISMLocking.acquireWriteLock(FineGrainedISMLocking.java:143) [jackrabbit-core-jfrog-2.2.8e.jar:2.2.8e] at org.apache.jackrabbit.core.state.SharedItemStateManager.acquireWriteLock(SharedItemStateManager.java:1851) [jackrabbit-core-jfrog-2.2.8e.jar:2.2.8e] at org.apache.jackrabbit.core.state.SharedItemStateManager.access$200(SharedItemStateManager.java:115) [jackrabbit-core-jfrog-2.2.8e.jar:2.2.8e] at org.apache.jackrabbit.core.state.SharedItemStateManager$Update.begin(SharedItemStateManager.java:565) [jackrabbit-core-jfrog-2.2.8e.jar:2.2.8e] at org.apache.jackrabbit.core.state.SharedItemStateManager.beginUpdate(SharedItemStateManager.java:1460) [jackrabbit-core-jfrog-2.2.8e.jar:2.2.8e] at org.apache.jackrabbit.core.state.XAItemStateManager.prepare(XAItemStateManager.java:163) [jackrabbit-core-jfrog-2.2.8e.jar:2.2.8e] at org.apache.jackrabbit.core.TransactionContext.prepare(TransactionContext.java:159) [jackrabbit-core-jfrog-2.2.8e.jar:2.2.8e] at org.apache.jackrabbit.core.XASessionImpl.prepare(XASessionImpl.java:312) [jackrabbit-core-jfrog-2.2.8e.jar:2.2.8e] at org.springframework.extensions.jcr.jackrabbit.support.JackRabbitUserTransaction.commit(JackRabbitUserTransaction.java:91) [se-jcr-0.9.jar:na] at org.springframework.extensions.jcr.jackrabbit.LocalTransactionManager.doCommit(LocalTransactionManager.java:189) [se-jcr-0.9.jar:na] ... 16 common frames omitted
    via by Johan-Kees Vliek,
    • java.util.ConcurrentModificationException: null at java.util.HashMap$HashIterator.nextEntry(HashMap.java:926)[na:1.7.0_51] at java.util.HashMap$KeyIterator.next(HashMap.java:960)[na:1.7.0_51] at org.obiba.magma.views.DefaultViewManagerImpl.getViewAwareDatasource(DefaultViewManagerImpl.java:143)[magma-api-1.10.2.jar:1.10.2] at org.obiba.magma.views.DefaultViewManagerImpl.getView(DefaultViewManagerImpl.java:132)[magma-api-1.10.2.jar:1.10.2]

    Users with the same issue

    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    iridic
    2 times, last one,
    franky li
    1 times, last one,
    21 more bugmates