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.

  • There's a for loop that loops over an array and inside the loop items are conditionally removed from the array being looped over causing this exception, {noformat} DEBUG [pool-9-thread-1] (KmsRendererService.java:1127) - debug-publish: Just set a publish date from /trunk/gr/granddad.dita (11/27/2012 09:18 AM) on /live/gr/granddad.dita (11/27/2012 09:18 AM) WARN [pool-9-thread-1] (KmsDocumentService.java:1362) - debug-publish: /live/gr/granddad.dita has already been approved. Why are we trying again? ERROR [pool-9-thread-1] (RepositoryPollerTask.java:1357) - Exception java.util.ConcurrentModificationException at java.util.ArrayList$Itr.checkForComodification(ArrayList.java:782) at java.util.ArrayList$Itr.next(ArrayList.java:754) at org.kuali.kits.kms.repository.RepositoryPollerTask.callAutoApprove(RepositoryPollerTask.java:1754) at org.kuali.kits.kms.repository.RepositoryPollerTask.maybePublishingCallback(RepositoryPollerTask.java:1850) at org.kuali.kits.kms.repository.RepositoryPollerTask.finishUpModify(RepositoryPollerTask.java:556) at org.kuali.kits.kms.repository.RepositoryPollerTask.processLogEntry(RepositoryPollerTask.java:1012) at org.kuali.kits.kms.repository.RepositoryPollerTask.performRun(RepositoryPollerTask.java:1270) at org.kuali.kits.kms.repository.RepositoryPollerTask.run(RepositoryPollerTask.java:1354) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:351) at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:178) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:165) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:267) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:679) INFO [pool-9-thread-1] (RepositoryPollerTask.java:1254) - latest revision: 50; last processed revision: 47; (file:///home/wsams/kms/svndev/kits/kms/str/dev) INFO [pool-9-thread-1] (RepositoryPollerTask.java:768) - new revision: 48; author: wsams; date: Tue Nov 27 09:19:14 EST 2012; message: Copying /trunk/gr/granddad.dita to /live/gr/granddad.dita {noformat}
    via by Weldon Sams,
  • Java- synchronizing a list
    via Stack Overflow by Trup
    ,
  • java.util.ConcurrentModificationException
    via by Unknown author,
  • Multiple master with shared slave pool
    via by Jonathan K,
  • GitHub comment 60#1864217
    via GitHub by Mrxxz0
    ,
    • java.util.ConcurrentModificationException at java.util.ArrayList$Itr.checkForComodification(ArrayList.java:782) at java.util.ArrayList$Itr.next(ArrayList.java:754) at org.kuali.kits.kms.repository.RepositoryPollerTask.callAutoApprove(RepositoryPollerTask.java:1754) at org.kuali.kits.kms.repository.RepositoryPollerTask.maybePublishingCallback(RepositoryPollerTask.java:1850) at org.kuali.kits.kms.repository.RepositoryPollerTask.finishUpModify(RepositoryPollerTask.java:556) at org.kuali.kits.kms.repository.RepositoryPollerTask.processLogEntry(RepositoryPollerTask.java:1012) at org.kuali.kits.kms.repository.RepositoryPollerTask.performRun(RepositoryPollerTask.java:1270) at org.kuali.kits.kms.repository.RepositoryPollerTask.run(RepositoryPollerTask.java:1354) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:351) at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:178) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:165) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:267) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:679)

    Users with the same issue

    Unknown visitor
    Unknown visitor1 times, last one,
    ReichReich
    1 times, last one,
    batwalrus76batwalrus76
    7 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    51 more bugmates