cancel
Showing results for 
Search instead for 
Did you mean: 

AVMSyncException

jameskinley
Champ in-the-making
Champ in-the-making
Hi,

We have been developing some custom code that creates XML documents in DM and copies them accross to the users sandbox in WCM, automatically submits them to staging, and the publishs them.

This has been working fine until I generated an exception during this process (the file deployer was not running) - now every time I try and submit a document to staging I get the following exception. This occurs even after a re-start of Alfresco:

Caused by: org.alfresco.service.cmr.avmsync.AVMSyncException: Source not found: kb:/
        at org.alfresco.repo.avm.AVMSyncServiceImpl.compare(AVMSyncServiceImpl.java:122)
        at org.alfresco.repo.search.impl.lucene.AVMLuceneIndexerImpl.synchronousIndex(AVMLuceneIndexerImpl.java:249)
        at org.alfresco.repo.search.impl.lucene.AVMLuceneIndexerImpl.index(AVMLuceneIndexerImpl.java:211)
        at org.alfresco.repo.search.AVMSnapShotTriggeredIndexingMethodInterceptor.indexSnapshot(AVMSnapShotTriggeredIndexingMethodInterceptor.java:242)
        at org.alfresco.repo.search.AVMSnapShotTriggeredIndexingMethodInterceptor.invoke(AVMSnapShotTriggeredIndexingMethodInterceptor.java:101)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176)
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:210)
        at $Proxy2.createSnapshot(Unknown Source)
        ….
        ….

Any help on what is going on would be appriciated.

Thanks, James.
4 REPLIES 4

jameskinley
Champ in-the-making
Champ in-the-making
More info,

I have tried submitting the change directly from the WCM (not using our bespoke UI) and I get the same error.

James.

jameskinley
Champ in-the-making
Champ in-the-making
Another update…

As this looked like an index problem, I set the validate index property to AUTO and during the restart Alfresco did rebuild the indexes for KB but this has not solved the problem.

jameskinley
Champ in-the-making
Champ in-the-making
Update…

Following advice from Alfresco I installed and run the "Repair Web Project Web Script" : http://blogs.alfresco.com/wabson/2008/08/04/web-script-repair-web-project.

The web script reported that it found nothing wrong with my web project so the problem still remians.

Thanks, James.

jameskinley
Champ in-the-making
Champ in-the-making
Update…

A full index rebuid has also not fixed the problem.

I have some more information regarding the root cause. Alfresco have looked at some sample code that pushes changes from a users sandbox to staging by calling avmSyncService.update… If this API call was to fail it should roll back the transaction, however we are wrapping this call in a try, catch block and then re-throwing the exception as a org.hibernate.StaleStateException (i'm trying to contact the original development team to ask why they decided to do this).

Alfresco think that throwing a StaleStateException here may have caused the problem in the first place. Has anyone come across this before or can confirm that this would be causing the probelm?

Thanks, James.
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.