cancel
Showing results for 
Search instead for 
Did you mean: 

Ehcache error

clarencemei
Champ in-the-making
Champ in-the-making
i have setup ehcache replication on two sites.When i login alfresco share, then it will report two errors in tomcat.Please help me.

    
   Caused by: net.sf.ehcache.distribution.RemoteCacheException: Error doing remove to remote peer. Message was: error marshalling arguments; nested exception is: 
   java.io.NotSerializableException: org.alfresco.repo.domain.avm.ibatis.AVMNodeLinksDAOImpl
   at net.sf.ehcache.distribution.RMISynchronousCacheReplicator.replicateRemovalNotification(RMISynchronousCacheReplicator.java:230)
   at net.sf.ehcache.distribution.RMISynchronousCacheReplicator.notifyElementRemoved(RMISynchronousCacheReplicator.java:213)
   at net.sf.ehcache.event.RegisteredEventListeners.notifyElementRemoved(RegisteredEventListeners.java:82)
   at net.sf.ehcache.Cache.remove(Cache.java:1366)
   at net.sf.ehcache.Cache.remove(Cache.java:1278)
   at net.sf.ehcache.Cache.remove(Cache.java:1235)
   at net.sf.ehcache.Cache.remove(Cache.java:1213)
   at org.alfresco.repo.cache.EhCacheAdapter.remove(EhCacheAdapter.java:113)
   at org.alfresco.repo.cache.TransactionalCache$UpdateCacheBucket.doPostCommit(TransactionalCache.java:829)
   at org.alfresco.repo.cache.TransactionalCache.afterCommit(TransactionalCache.java:680)
   … 31 more
Caused by: java.rmi.MarshalException: error marshalling arguments; nested exception is:
   java.io.NotSerializableException: org.alfresco.repo.domain.avm.ibatis.AVMNodeLinksDAOImpl
   at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:138)
   at net.sf.ehcache.distribution.RMICachePeer_Stub.remove(Unknown Source)
   at net.sf.ehcache.distribution.RMISynchronousCacheReplicator.replicateRemovalNotification(RMISynchronousCacheReplicator.java:228)
   … 40 more
Caused by: java.io.NotSerializableException: org.alfresco.repo.domain.avm.ibatis.AVMNodeLinksDAOImpl
   at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1156)
   at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
   at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
   at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
   at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
   at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
   at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
   at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
   at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
   at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
   at sun.rmi.server.UnicastRef.marshalValue(UnicastRef.java:274)
   at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:133)
   … 42 more
13:25:39,691 ERROR [org.alfresco.repo.transaction.AlfrescoTransactionSupport] After completion (committed) TransactionalCache exception
org.alfresco.error.AlfrescoRuntimeException: 01110139 Failed to transfer updates to shared cache
   at org.alfresco.repo.cache.TransactionalCache.afterCommit(TransactionalCache.java:689)
   at org.alfresco.repo.transaction.AlfrescoTransactionSupport$TransactionSynchronizationImpl.afterCompletion(AlfrescoTransactionSupport.java:793)
   at org.springframework.transaction.support.TransactionSynchronizationUtils.invokeAfterCompletion(TransactionSynchronizationUtils.java:133)
   at org.springframework.transaction.support.AbstractPlatformTransactionManager.invokeAfterCompletion(AbstractPlatformTransactionManager.java:904)
   at org.springframework.transaction.support.AbstractPlatformTransactionManager.triggerAfterCompletion(AbstractPlatformTransactionManager.java:879)
   at org.springframework.transaction.support.AbstractPlatformTransactionManager.processCommit(AbstractPlatformTransactionManager.java:707)
   at org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:632)
   at org.springframework.transaction.interceptor.TransactionAspectSupport.commitTransactionAfterReturning(TransactionAspectSupport.java:314)
   at org.alfresco.util.transaction.SpringAwareUserTransaction.commit(SpringAwareUserTransaction.java:467)
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:349)
   at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecute(RepositoryContainer.java:422)
   at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecuteAs(RepositoryContainer.java:439)
   at org.alfresco.repo.web.scripts.RepositoryContainer.executeScript(RepositoryContainer.java:262)
   at org.alfresco.web.scripts.AbstractRuntime.executeScript(AbstractRuntime.java:306)
   at org.alfresco.web.scripts.AbstractRuntime.executeScript(AbstractRuntime.java:183)
   at org.alfresco.web.scripts.servlet.WebScriptServlet.service(WebScriptServlet.java:122)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
   at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
   at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
   at org.apache.catalina.ha.tcp.ReplicationValve.invoke(ReplicationValve.java:347)
   at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
   at org.apache.coyote.http11.Http11NioProcessor.process(Http11NioProcessor.java:880)
   at org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:719)
   at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:2081)
   at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
   at java.lang.Thread.run(Thread.java:619)
1 REPLY 1

erny1803
Champ in-the-making
Champ in-the-making
I have had a similar error. It seems that sometimes the cache replication does not recover.

My error:
06:49:10,305 ERROR [org.alfresco.repo.transaction.AlfrescoTransactionSupport] Af
ter completion (committed) TransactionalCache exception
org.alfresco.error.AlfrescoRuntimeException: 11030002 Failed to transfer updates
to shared cache
After that, it retries to resync cache every 3 microseconds! And this pushes the CPU tu 99%. I had to reinit Alfresco. I'm running Alfresco 3.2r EE (without SP).  It stopped complaining less than 1 second after that.n