I've got a (Java) web and mobile project with the shared Document Classes in a DO Component. I also have My Document Helper class in the DO Component and used by both the Web and Mobile Apps. That all works fine.
In doing Partial Synchronization for iPad and iPhone (using Caravel and Safari simulator, off-line), I was getting a java exception of class not found for these type of calls to resyncClass:
- Code: Select all
SyncService.resyncClass(UserSetting.className(false))
Note that I did not get these errors when performing the initial full synchronization.
In debugging I found that GetFromDNA would sometimes return "DODocument$UserSetting", and other times return just "UserSetting". To normalize it I changed the GlobalGetFromDNA in My Document Helper to:
Once I did that then Synchronization works with no errors.
Is this a bug, or is there something I should be doing to not have to override the GetFromDNA method?
Thanks...jack