cancel
Showing results for 
Search instead for 
Did you mean: 

Cache update failed

johnnytv
Champ in-the-making
Champ in-the-making
Hello,

I'm work with Alfresco CE 4.2.d running on Centos 6.4 x64.

Today, after restart the Alfresco service log file show the next message continuously:


2013-11-05 17:41:31,375  ERROR [repo.cache.AbstractAsynchronouslyRefreshedCache] [asynchronouslyRefreshedCacheThreadPool1] Cache update failed (authorityBridgeTableCache).
java.util.ConcurrentModificationException
   at java.util.HashMap$HashIterator.nextEntry(HashMap.java:894)
   at java.util.HashMap$KeyIterator.next(HashMap.java:928)
   at org.alfresco.util.BridgeTable.add(BridgeTable.java:288)
   at org.alfresco.util.BridgeTable.addDescendants(BridgeTable.java:184)
   at org.alfresco.util.BridgeTable.addLink(BridgeTable.java:46)
   at org.alfresco.repo.security.authority.AuthorityBridgeTableAsynchronouslyRefreshedCache.doBuildCache(AuthorityBridgeTableAsynchronouslyRefreshedCache.java:76)
   at org.alfresco.repo.security.authority.AuthorityBridgeTableAsynchronouslyRefreshedCache.access$000(AuthorityBridgeTableAsynchronouslyRefreshedCache.java:34)
   at org.alfresco.repo.security.authority.AuthorityBridgeTableAsynchronouslyRefreshedCache$1.execute(AuthorityBridgeTableAsynchronouslyRefreshedCache.java:65)
   at org.alfresco.repo.security.authority.AuthorityBridgeTableAsynchronouslyRefreshedCache$1.execute(AuthorityBridgeTableAsynchronouslyRefreshedCache.java:61)
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:447)
   at org.alfresco.repo.security.authority.AuthorityBridgeTableAsynchronouslyRefreshedCache.buildCache(AuthorityBridgeTableAsynchronouslyRefreshedCache.java:60)
   at org.alfresco.repo.security.authority.AuthorityBridgeTableAsynchronouslyRefreshedCache.buildCache(AuthorityBridgeTableAsynchronouslyRefreshedCache.java:34)
   at org.alfresco.repo.cache.AbstractAsynchronouslyRefreshedCache.doRefresh(AbstractAsynchronouslyRefreshedCache.java:464)
   at org.alfresco.repo.cache.AbstractAsynchronouslyRefreshedCache.doCall(AbstractAsynchronouslyRefreshedCache.java:449)
   at org.alfresco.repo.cache.AbstractAsynchronouslyRefreshedCache.call(AbstractAsynchronouslyRefreshedCache.java:414)
   at org.alfresco.repo.cache.AbstractAsynchronouslyRefreshedCache.call(AbstractAsynchronouslyRefreshedCache.java:45)
   at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
   at java.util.concurrent.FutureTask.run(FutureTask.java:166)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
   at java.lang.Thread.run(Thread.java:724)
…..
…..
….


I've search on internet and not found any information that help me to solve this issue.

I try, full reindex, delete tomcat/work and temp directory, but the error continue.
3 REPLIES 3

johnnytv
Champ in-the-making
Champ in-the-making
I've activate the debug log log4j.logger.org.alfresco.repo.cache.AbstractAsynchronouslyRefreshedCache=debug

The result is:


2013-11-06 08:50:41,061  DEBUG [repo.cache.AbstractAsynchronouslyRefreshedCache] [localhost-startStop-1] get() miss, sechudling and waiting …
2013-11-06 08:50:41,062  DEBUG [repo.cache.AbstractAsynchronouslyRefreshedCache] [localhost-startStop-1] get() building from scratch
2013-11-06 08:50:41,062  DEBUG [repo.cache.AbstractAsynchronouslyRefreshedCache] [localhost-startStop-1] submit() scheduling job
2013-11-06 08:50:41,063  DEBUG [repo.cache.AbstractAsynchronouslyRefreshedCache] [asynchronouslyRefreshedCacheThreadPool1] Building cache for tenant
2013-11-06 08:50:41,066  DEBUG [repo.cache.AbstractAsynchronouslyRefreshedCache] [asynchronouslyRefreshedCacheThreadPool1] Building cache for tenant ……
2013-11-06 08:50:41,234  ERROR [repo.cache.AbstractAsynchronouslyRefreshedCache] [asynchronouslyRefreshedCacheThreadPool1] Cache update failed (authorityBridgeTableCache).
java.util.ConcurrentModificationException
      at java.util.HashMap$HashIterator.nextEntry(HashMap.java:894)
      at java.util.HashMap$KeyIterator.next(HashMap.java:928)
      at org.alfresco.util.BridgeTable.add(BridgeTable.java:288)
      at org.alfresco.util.BridgeTable.addDescendants(BridgeTable.java:184)
      at org.alfresco.util.BridgeTable.addLink(BridgeTable.java:46)
      at org.alfresco.repo.security.authority.AuthorityBridgeTableAsynchronouslyRefreshedCache.doBuildCache(AuthorityBridgeTableAsynchronouslyRefreshedCache.java:76)
      at org.alfresco.repo.security.authority.AuthorityBridgeTableAsynchronouslyRefreshedCache.access$000(AuthorityBridgeTableAsynchronouslyRefreshedCache.java:34)
      at org.alfresco.repo.security.authority.AuthorityBridgeTableAsynchronouslyRefreshedCache$1.execute(AuthorityBridgeTableAsynchronouslyRefreshedCache.java:65)
      at org.alfresco.repo.security.authority.AuthorityBridgeTableAsynchronouslyRefreshedCache$1.execute(AuthorityBridgeTableAsynchronouslyRefreshedCache.java:61)
      at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:447)
      at org.alfresco.repo.security.authority.AuthorityBridgeTableAsynchronouslyRefreshedCache.buildCache(AuthorityBridgeTableAsynchronouslyRefreshedCache.java:60)
      at org.alfresco.repo.security.authority.AuthorityBridgeTableAsynchronouslyRefreshedCache.buildCache(AuthorityBridgeTableAsynchronouslyRefreshedCache.java:34)
      at org.alfresco.repo.cache.AbstractAsynchronouslyRefreshedCache.doRefresh(AbstractAsynchronouslyRefreshedCache.java:464)
      at org.alfresco.repo.cache.AbstractAsynchronouslyRefreshedCache.doCall(AbstractAsynchronouslyRefreshedCache.java:449)
      at org.alfresco.repo.cache.AbstractAsynchronouslyRefreshedCache.call(AbstractAsynchronouslyRefreshedCache.java:414)
      at org.alfresco.repo.cache.AbstractAsynchronouslyRefreshedCache.call(AbstractAsynchronouslyRefreshedCache.java:45)
      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
      at java.util.concurrent.FutureTask.run(FutureTask.java:166)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      at java.lang.Thread.run(Thread.java:724)
2013-11-06 08:50:41,236  DEBUG [repo.cache.AbstractAsynchronouslyRefreshedCache] [asynchronouslyRefreshedCacheThreadPool1] Building cache for tenant
2013-11-06 08:50:41,236  DEBUG [repo.cache.AbstractAsynchronouslyRefreshedCache] [asynchronouslyRefreshedCacheThreadPool1] Building cache for tenant ……
2013-11-06 08:50:41,452  ERROR [repo.cache.AbstractAsynchronouslyRefreshedCache] [asynchronouslyRefreshedCacheThreadPool1] Cache update failed (authorityBridgeTableCache).
java.util.ConcurrentModificationException
      at java.util.HashMap$HashIterator.nextEntry(HashMap.java:894)
      at java.util.HashMap$KeyIterator.next(HashMap.java:928)
      at org.alfresco.util.BridgeTable.add(BridgeTable.java:288)
      at org.alfresco.util.BridgeTable.addDescendants(BridgeTable.java:184)
      at org.alfresco.util.BridgeTable.addLink(BridgeTable.java:46)
      at org.alfresco.repo.security.authority.AuthorityBridgeTableAsynchronouslyRefreshedCache.doBuildCache(AuthorityBridgeTableAsynchronouslyRefreshedCache.java:76)
      at org.alfresco.repo.security.authority.AuthorityBridgeTableAsynchronouslyRefreshedCache.access$000(AuthorityBridgeTableAsynchronouslyRefreshedCache.java:34)
      at org.alfresco.repo.security.authority.AuthorityBridgeTableAsynchronouslyRefreshedCache$1.execute(AuthorityBridgeTableAsynchronouslyRefreshedCache.java:65)
      at org.alfresco.repo.security.authority.AuthorityBridgeTableAsynchronouslyRefreshedCache$1.execute(AuthorityBridgeTableAsynchronouslyRefreshedCache.java:61)
      at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:447)
….

Hello,

I've a similar error with my Alfresco:

2014-04-19 00:18:14,911  ERROR [repo.cache.AbstractAsynchronouslyRefreshedCache] [asynchronouslyRefreshedCacheThreadPool1] Cache update failed (webScriptsRegistryCache).
java.util.ConcurrentModificationException


Did you find a solution or raise a JIRA ticket ?

mrogers
Star Contributor
Star Contributor
Please raise in JIRA (issues.alfresco.com) with as much detail as possible.