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);
Community moderators have prevented the ability to post new answers.
To me it sounds that the Hibernate session is not set up correctly around the "deepCopyPage" call, but it expects that.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.