The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Getting StaleObjectStateException and HibernateOptimisticLockingFailureException excpetion

Pratik Sunil Lodha
March 3, 2023

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);

 

 

 

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Aron Gombas _Midori_
Community Champion
March 3, 2023

To me it sounds that the Hibernate session is not set up correctly around the "deepCopyPage" call, but it expects that.

TAGS
AUG Leaders

Atlassian Community Events