AnsweredAssumed Answered

Transaction Error

Question asked by lock999 on Aug 27, 2007
Latest reply on Sep 3, 2007 by derek
Hi,

I get the following transaction errors while uploading around 3000 files at the same time using CIFS. For each file, i execute a javascript using rules. The javascript writes the status of each file to a log file.

Question: Is the transaction error occuring since mutiple javascript instances are trying to write to the same log file at the same time? Is there any way to lock and unlock while writing? Is there any way to perform writes one file at a time?

Error Messages:
16:56:24,807 ERROR [org.alfresco.repo.transaction.AlfrescoTransactionSupport] After completion (rolled-back) listener exception:
   listener: org.alfresco.userToAuthorityTransactionalCache
java.lang.IllegalStateException: The CacheManager is not alive.
   at net.sf.ehcache.CacheManager.checkStatus(CacheManager.java:730)
   at net.sf.ehcache.CacheManager.removeCache(CacheManager.java:657)
   at org.alfresco.repo.cache.TransactionalCache.removeCaches(TransactionalCache.java:631)
   at org.alfresco.repo.cache.TransactionalCache.afterRollback(TransactionalCache.java:621)
   at org.alfresco.repo.transaction.AlfrescoTransactionSupport$TransactionSynchronizationImpl.afterCompletion(AlfrescoTransactionSupport.java:716)
   at org.springframework.transaction.support.TransactionSynchronizationUtils.invokeAfterCompletion(TransactionSynchronizationUtils.java:133)
   at org.springframework.transaction.support.AbstractPlatformTransactionManager.invokeAfterCompletion(AbstractPlatformTransactionManager.java:890)
   at org.springframework.transaction.support.AbstractPlatformTransactionManager.triggerAfterCompletion(AbstractPlatformTransactionManager.java:865)
   at org.springframework.transaction.support.AbstractPlatformTransactionManager.processRollback(AbstractPlatformTransactionManager.java:774)
   at org.springframework.transaction.support.AbstractPlatformTransactionManager.rollback(AbstractPlatformTransactionManager.java:722)
   at org.springframework.transaction.interceptor.TransactionAspectSupport.completeTransactionAfterThrowing(TransactionAspectSupport.java:325)
   at org.alfresco.util.transaction.SpringAwareUserTransaction.rollback(SpringAwareUserTransaction.java:487)
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:276)
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:155)
   at org.alfresco.repo.action.AsynchronousActionExecutionQueueImpl$ActionExecutionWrapper.run(AsynchronousActionExecutionQueueImpl.java:267)
   at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
   at java.lang.Thread.run(Thread.java:595)

This is followed by Caused by:
org.alfresco.error.AlfrescoRuntimeException: Wrapped org.alfresco.service.cmr.repository.ContentIOException: Failed to set content property on stream closure

and other errors…

Outcomes