I haven't investigated why yet, but when I modify the lookup method in the NOOPLookupCache class to pick-up the previous version of the user sandbox, the deployment is successful. The changes I made were to lines 62 and 72 (to reference version - 1 instead of version) as follows:
Lookup result = new Lookup(store, store.getName(), version-1);
…
VersionRoot vRoot = AVMDAOs.Instance().fVersionRootDAO.getByVersionID(store, version-1);
The deployment fails without these modifications because line 75 (dir = vRoot.getRoot():smileywink: returns null when the NOOPLookupCache class attempts to pickup the current version as specified by the version variable. I figure this behavior is probably occuring because of a) array index issues OR b) because of transaction-commit issues… the latest version was created and not commited, so it is not available to the NOOPLookupCache.
Alfresco engineers, any insight or do I need to keep digging?