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

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.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events