cancel
Showing results for 
Search instead for 
Did you mean: 

VersionServiceException after upgrade to Alfresco 3 Lab

gianlucam
Champ in-the-making
Champ in-the-making
Hi

I've upgraded to Alfresco 3 Lab Stable from Alfresco 2.1. My documents are versionable by aspect.
When I try to check in a document, the operation failed with error:

"The current implementation of the version service does not support the creation of branches"

If I remove aspect, the operation success.
After I've removed tha aspect, if I add the versionable aspect again, the operation success.
It seems like versionable aspect inherited from version 2.1 are wrong.

is There a solution that is not remove all the versionable aspect and add them again ?

Thanks
13 REPLIES 13

alarocca
Champ in-the-making
Champ in-the-making
Solved. Thanks to Jan Volka who helped me to find the patch within the HEAD repository.

First of all, you have to get and compile the patch:

http://svn.alfresco.com/repos/alfresco-open-mirror/alfresco/HEAD/root/projects/repository/source/jav...

Then go to ..\tomcat\webapps\alfresco\WEB-INF\classes

Copy the .class file into \org\alfresco\repo\admin\patch\impl (create the missing folder)

Edit \alfresco\patch\patch-services-context.xml and append to the bottom (before </beans>) the following:

    <bean id="patch.migrateVersionStoreUpdateCounter" class="org.alfresco.repo.admin.patch.impl.MigrateVersionStoreUpdateCounterPatch" parent="basePatch" >
        <property name="id"><value>patch.migrateVersionStoreUpdateCounter</value></property>
        <property name="description"><value>patch.migrateVersionStoreUpdateCounter.description</value></property>
        <property name="fixesFromSchema"><value>0</value></property>
        <property name="fixesToSchema"><value>129</value></property>
        <property name="targetSchema"><value>130</value></property>
        <!– helper beans/properties –>
        <property name="versionCounterService">
            <ref bean="versionCounterService" />
        </property>
    </bean>

Finally edit \alfresco\messages\patch-service.properties and append to the bottom the following:

patch.migrateVersionStoreUpdateCounter.description=Update internal version2Store counter (if needed).
patch.migrateVersionStoreUpdateCounter.result=Update internal version2Store counter (if needed): {0}

Now you can migrate your Alfresco with confidence. Enjoy it.

Best regards,
Alessandro
This issue seems to be already resolved:

https://issues.alfresco.com/jira/browse/ETHREEOH-1540

Should be great if any good soul at Alfresco would give us at least a tip.

Greetings

varsenault
Champ in-the-making
Champ in-the-making
But, will this be released in an official Labs version soon?

sureshj
Champ in-the-making
Champ in-the-making
I had upgraded from Alfresco 2.1 Community Edition to Alfresco Labs3 Stable with random checks earlier in April. Now I am experiencing similar problem here in our production repository with the error:

"Unable to check in Content Node due to system error:The current implementation of the version service does not support the creation of branches"

If I update the above mentioned patch in the production server now, will it solve the problem? Also, can anybody help me with the class file required to fix this?

Thanks in advance for the help!!!

efvrvo
Champ on-the-rise
Champ on-the-rise
This error occurred with me using 3.4d when I tried to update a document version using a javascript inside an advanced workflow.