cancel
Showing results for 
Search instead for 
Did you mean: 

Migration from 3.0 to 3.3 crashes

soriaedu79
Champ in-the-making
Champ in-the-making
Hello,

When I tried the migration the following patches failed:

- patch.webSiteAddModerated
- patch.authorityDefaultZonesPatch

The error is the same in both cases:


java.lang.NullPointerException
   at java.util.concurrent.ConcurrentHashMap.put(ConcurrentHashMap.java:881)
   at org.alfresco.repo.site.SiteServiceImpl.getSiteRoot(SiteServiceImpl.java:569)
   at org.alfresco.repo.site.SiteServiceImpl.listSites(SiteServiceImpl.java:591)
   at org.alfresco.repo.site.SiteServiceImpl.listSites(SiteServiceImpl.java:579)

I tried to create the Sites folder under Company Home in the version 3.0 and to do the update after that but it doesn't work.

If I comment the patches in the file patch-services-context.xml, the rest of them are well installed but I get the exception:


org.springframework.orm.hibernate3.HibernateOptimisticLockingFailureException: Object of class [org.alfresco.repo.domain.hibernate.NodeImpl] with identifier [68859]: optimistic locking failed; nested exception is org.hibernate.StaleObjectStateException: Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect): [org.alfresco.repo.domain.hibernate.NodeImpl#68859]
   at org.springframework.orm.hibernate3.SessionFactoryUtils.convertHibernateAccessException(SessionFactoryUtils.java:672)
   at org.springframework.orm.hibernate3.HibernateAccessor.convertHibernateAccessException(HibernateAccessor.java:412)

I have spent 4 days but I can't find the solucion. I'm a little bit desperated.

Any clue will be really apreciated.

Thank you in advance.
3 REPLIES 3

soriaedu79
Champ in-the-making
Champ in-the-making
The last thing I tried is to do the migration with Alfresco Enterprise 3.3 (Trial version)

It doen't work but the message is a little bit different:


Invocation: ReflectiveMethodInvocation: public abstract org.alfresco.service.cmr.repository.ChildAssociationRef org.alfresco.service.cmr.repository.NodeService.createNode(org.alfresco.service.cmr.repository.NodeRef,org.alfresco.service.namespace.QName,org.alfresco.service.namespace.QName,org.alfresco.service.namespace.QName,java.util.Map) throws org.alfresco.service.cmr.repository.InvalidNodeRefException,org.alfresco.service.cmr.dictionary.InvalidTypeException; target is of class [$Proxy10]
org.alfresco.repo.security.permissions.AccessDeniedException: 05110002 Access Denied.  The system is currently in read-only mode.


Caused by: org.springframework.dao.InvalidDataAccessApiUsageException: Write operations are not allowed in read-only mode (FlushMode.MANUAL): Turn your Session into FlushMode.COMMIT/AUTO or remove 'readOnly' marker from transaction definition.

I tried to modify the file alfresco/domain/transaction.properties but nothing…

ideas?

Thank you

loftux
Star Contributor
Star Contributor
You can not migrate to enterprise if you have not aquired a license. With enterprise you get a 30 day trial, but those 30 days are probably from the day the repository was generated, not when you installed enterprise. After those 30 days it goes into read only mode, and that is what the error message indicates.

Comunity 3.3g is available for download, and you should try that. If that doesn't work going directly from 3.0 to 3.3, try to take it in steps, like 3.0 -> 3.2 -> 3.2r2 -> 3.3.
What exact intermediate versions needed you will have to find out yourself.

soriaedu79
Champ in-the-making
Champ in-the-making
Thank you very much Loftux.

I have solved my problems with patches (it was an issue about the root site folder) and from now on, all of them are correctly executed in 3.3 (and 3.3g) versions.

Anyway, the exception regarding to the Hibernate Optimistic Locking is always there so, by the moment, I'm not able to install the 3.3 version.

On the other hand, I have tested the 3.2r version and it works fine!!.

So, I'm going to migrate to the 3.2r version and I'll wait there for a new path upgrade.

Anyone knows if this Is this a bug of the 3.3 version?

Thank you in advance.

Eduardo