AnsweredAssumed Answered

Replication jobs not working in alfresco 3.4.3

Question asked by faizaan on Nov 6, 2012
Hi,

we have two independent alfresco 3.4.3 instances running on two different machines, and both instances are having around 300 thousand contents.

I have configured replication job to replicate a folder containing around 10 thousand contents from one instance to another but I am getting below errors in log

file on target repository alfresco instance and replication job fails to replicate contents.



05:03:43,918  ERROR [repo.action.AsynchronousActionExecutionQueueImpl] Failed to execute asynchronous action: Action[ id=0ebd9a20-1d7f-4322-b835-999e9962cb73, node=workspace://SpacesStore/0ebd9a20-1d7f-4322-b835-999e9962cb73 ]
org.alfresco.service.cmr.replication.ReplicationServiceException: 10050398 Error executing transfer - null
   at org.alfresco.repo.replication.ReplicationActionExecutor.executeImpl(ReplicationActionExecutor.java:315)
   at org.alfresco.repo.action.executer.ActionExecuterAbstractBase.execute(ActionExecuterAbstractBase.java:196)
   at org.alfresco.repo.action.ActionServiceImpl.directActionExecution(ActionServiceImpl.java:780)
   at org.alfresco.repo.action.ActionServiceImpl.executeActionImpl(ActionServiceImpl.java:700)
   at org.alfresco.repo.action.AsynchronousActionExecutionQueueImpl$ActionExecutionWrapper$1$1.execute(AsynchronousActionExecutionQueueImpl.java:403)
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:381)
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:253)
   at org.alfresco.repo.action.AsynchronousActionExecutionQueueImpl$ActionExecutionWrapper$1.doWork(AsynchronousActionExecutionQueueImpl.java:412)
   at org.alfresco.repo.security.authentication.AuthenticationUtil.runAs(AuthenticationUtil.java:508)
   at org.alfresco.repo.action.AsynchronousActionExecutionQueueImpl$ActionExecutionWrapper.run(AsynchronousActionExecutionQueueImpl.java:415)
   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:662)
Caused by: java.lang.NullPointerException
   at org.alfresco.repo.transfer.manifest.XMLTransferManifestWriter.writeMLValue(XMLTransferManifestWriter.java:475)
   at org.alfresco.repo.transfer.manifest.XMLTransferManifestWriter.writeProperty(XMLTransferManifestWriter.java:377)
   at org.alfresco.repo.transfer.manifest.XMLTransferManifestWriter.writeProperties(XMLTransferManifestWriter.java:310)
   at org.alfresco.repo.transfer.manifest.XMLTransferManifestWriter.writeTransferManifestNode(XMLTransferManifestWriter.java:284)
   at org.alfresco.repo.transfer.manifest.XMLTransferManifestWriter.writeTransferManifestNode(XMLTransferManifestWriter.java:249)
   at org.alfresco.repo.transfer.TransferServiceImpl2.createManifest(TransferServiceImpl2.java:965)
   at org.alfresco.repo.transfer.TransferServiceImpl2.transferImpl(TransferServiceImpl2.java:599)
   at org.alfresco.repo.transfer.TransferServiceImpl2.transfer(TransferServiceImpl2.java:544)
   at org.alfresco.repo.transfer.TransferServiceImpl2.transfer(TransferServiceImpl2.java:519)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:597)
   at org.alfresco.repo.transaction.RetryingTransactionInterceptor$1.execute(RetryingTransactionInterceptor.java:58)
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:381)
   at org.alfresco.repo.transaction.RetryingTransactionInterceptor.invoke(RetryingTransactionInterceptor.java:52)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
   at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
   at $Proxy107.transfer(Unknown Source)
   at org.alfresco.repo.replication.ReplicationActionExecutor.executeImpl(ReplicationActionExecutor.java:283)
   … 12 more
05:06:08,961  ERROR [repo.action.AsynchronousActionExecutionQueueImpl] Failed to execute asynchronous action: Action[ id=0ebd9a20-1d7f-4322-b835-999e9962cb73, node=workspace://SpacesStore/0ebd9a20-1d7f-4322-b835-999e9962cb73 ]
org.alfresco.repo.lock.LockAcquisitionException: 10050446 Failed to get lock '{}replicationtest' using token '2b1b1f84-93c0-4ba7-bb48-a02cf440a270'.  An exclusive lock exists: LockEntity[ ID=6, sharedResourceId=6, exclusiveResourceId=6]
   at org.alfresco.repo.domain.locks.AbstractLockDAOImpl.getLock(AbstractLockDAOImpl.java:112)
   at org.alfresco.repo.lock.JobLockServiceImpl$4.execute(JobLockServiceImpl.java:423)
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:381)
   at org.alfresco.repo.lock.JobLockServiceImpl.doWithRetry(JobLockServiceImpl.java:475)
   at org.alfresco.repo.lock.JobLockServiceImpl.getLockImpl(JobLockServiceImpl.java:429)
   at org.alfresco.repo.lock.JobLockServiceImpl.getLock(JobLockServiceImpl.java:192)
   at org.alfresco.repo.replication.ReplicationActionExecutor$ReplicationDefinitionLockExtender.acquireLock(ReplicationActionExecutor.java:450)
   at org.alfresco.repo.replication.ReplicationActionExecutor$ReplicationDefinitionLockExtender.<init>(ReplicationActionExecutor.java:365)
   at org.alfresco.repo.replication.ReplicationActionExecutor.executeImpl(ReplicationActionExecutor.java:258)
   at org.alfresco.repo.action.executer.ActionExecuterAbstractBase.execute(ActionExecuterAbstractBase.java:196)
   at org.alfresco.repo.action.ActionServiceImpl.directActionExecution(ActionServiceImpl.java:780)
   at org.alfresco.repo.action.ActionServiceImpl.executeActionImpl(ActionServiceImpl.java:700)
   at org.alfresco.repo.action.AsynchronousActionExecutionQueueImpl$ActionExecutionWrapper$1$1.execute(AsynchronousActionExecutionQueueImpl.java:403)
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:381)
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:253)
   at org.alfresco.repo.action.AsynchronousActionExecutionQueueImpl$ActionExecutionWrapper$1.doWork(AsynchronousActionExecutionQueueImpl.java:412)
   at org.alfresco.repo.security.authentication.AuthenticationUtil.runAs(AuthenticationUtil.java:508)
   at org.alfresco.repo.action.AsynchronousActionExecutionQueueImpl$ActionExecutionWrapper.run(AsynchronousActionExecutionQueueImpl.java:415)
   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:662)


Thanks !

Outcomes