I am trying to copy more than 150+ Pages(and CHILD) from one Space to another space by using deepCopyPage (Interface PageManager ) method but getting net.sf.hibernate.StaleObjectStateException and
org.springframework.orm.hibernate.HibernateOptimisticLockingFailureException
exception .
PageCopyOptions pageCopyOptions = PageCopyOptions.builder()
.withCopyAttachment(true)
.withCopyLabel(true)
.withContentProperty(true)
.withCopyPermission(true)
.withUser(currentUser)
.withProgressMeter(new ProgressMeter())
.build();
pageManager.deepCopyPage(pageCopyOptions, originalPage,destinationPage);
To me it sounds that the Hibernate session is not set up correctly around the "deepCopyPage" call, but it expects that.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.